Secure Shell (SSH) in HP Systems Insight Manager 5.1 and 5.2

27
iii.
Log into the remote system and change to the user name’s home dir
ectory (as
specified in the
passwd
file.
iv.
If not present, create an .
ssh
directory.
v.
Copy the
authorized_keys2
file from the CMS into the .
ssh
directory
b.
On Linux and HP
-
UX
similar process as above, except as noted:
i.
Login as root on the CMS platform
ii.
Create
an
authorized_keys2
file for copying to other systems by entering the
command:
cp /etc/opt/mx/config/sshtools/.dtfSshkey.pub /<user’s
home directory>/.ssh/authorized_keys2
iii.
The above file is now manually copied to other systems into the
$HOME/.ssh
direct
ory.
Verify that the permissions on the
$HOME
,
$HOME/.ssh
directory, and the
authorized_keys2
file are owner write only and there are no write permissions
for group or everyone.
As a work
-
around to public key authentication you can try password authenticat
ion.
Configure the CMS with the password for this user:
CMS> mxnodesecurity
-
a
-
p ssh
-
n blade08
-
c myadmin:mypwd
Credential added for node: "blade08"
8.
Run an SSH task on the target system to verify correct operation:
CMS> mxexec
-
t dir
-
A .
-
n blade08
Run
ning tool dir with job id 2286.
Task Name :defRunNowTaskId_1121366433279_3
Job ID :2286
Tool Name :dir
Job State :Complete
User Name :mydomain
\
bdh
Execute As User :myadmin
Start Time :Thursday, July 14, 2005 11:40:33 A
M PDT
End Time :Thursday, July 14, 2005 11:40:34 AM PDT
Elapsed Time :1 second 407 milliseconds
Node :blade08
Status :Complete
Exit Code :0
STDOUT :
Volume in drive C has no label.
Volume Serial Number is FC11
-
1248
Directory of C:
\
Documents and Settings
\
Administrator
07/09/2005 07:53p <DIR> .
07/09/2005 07:53p <DIR> ..
05/10/2005 05:53p <DIR> .java
05/10/2005 05:53p <DIR> .jpi_cache
05/10/2005 06:0
6p 1,516 .plugin141_04.trace
07/12/2005 05:48p <DIR> .ssh
07/09/2005 07:51p <DIR> Desktop
04/07/2005 10:59a <DIR> Favorites
06/22/2005 02:16p <DIR> My Documents
05/10/2004 06:07p
<DIR> Start Menu
1 File(s) 1,516 bytes
9 Dir(s) 50,392,518,656 bytes free