I would like to setup SSH key between HNAS and linux host
Problem is that we are unable to execute commands from SMU against hnas without dealing with some prompt or shell discrepancy.
Steps:
- 1) We setup ssh keys between Linux VM and SMU
- 2) Issue command: ssh manager@pmta-nas-cl100-mgmt-r
script_admin@vxpip-hsstna01 ~]$ ssh manager@pmta-nas-cl100-mgmt-r
Last login: Mon Jun 1 14:54:42 2015 from vxpip-hsstna01.lmig.com
Available servers:
==================
1) 192.0.2.2 PMTA-CL100-1
Please choose a server, or type 'q' to exit to a bash shell.
Server:
HDS NAS OS Console
MAC ID : 39-B5-F8-3B-FE-A0
PMTA-CL100-1:$ filesystem-list
Instance name Dev On span State EVS Cap/GiB Confined Flag
----------------- ---- ----------------- ----- --- ------- -------- ----
Filesystem HNAS-PMTA-VIP01-4hr-FS01:
HNAS-PM..4hr-FS01 1027 n1-sp1 Mount 11 18 1024
Filesystem HNAS-PMTA-VIP02-4hr-FS01:
HNAS-PM..4hr-FS01 1028 n2-sp1 Mount 12 18 1024
Filesystem hnas-pmta-aip01-fs01:
hnas-pm..p01-fs01 1025 n1-sp1 Mount 9 719 1024
Filesystem hnas-pmta-aip02-fs01:
hnas-pm..p02-fs01 1026 n2-sp1 Mount 10 18 1024
n1-sp1-fs1 1024 n1-sp1 Mount 1 18 1024
PMTA-CL100-1:$
Available servers:
==================
1) 192.0.2.2 PMTA-CL100-1
Please choose a server, or type 'q' to exit to a bash shell.
Server: q
[manager@PMTA-NAS-CL100-MGMT ~]$ ssh manager@192.0.2.200 filesystem-list
manager@192.0.2.200's password:
bash: filesystem-list: command not found
[manager@PMTA-NAS-CL100-MGMT ~]$ ssh manager@192.0.2.2 filesystem-list
manager@192.0.2.2's password:
bash: filesystem-list: command not found
[manager@PMTA-NAS-CL100-MGMT ~]$
I was able to find workaround but it has its own issue
ssh manager@pmta-nas-cl100-mgmt-r 'ssh manager@192.0.2.2 ssc localhost filesystem-list'
The problem is that the ‘authorized_keys’ file on manager@PMTA-CL100-1 deletes daily and we aren’t sure why. This means that to enable automation… we’d have to recreate this configuration daily. Please advise, thank you.