HMC access over ssh tunneling(putty)

Call IBM, get the root password for 24 hours...

On a box that you want to access the HMC from do the following disco dance:

ssh-keygen -t dsa(press enter twice to give a blank password)
cd
cd .ssh
vi .config

Press "i" to enter insert mode on the (six) command and copy this into the file:

Host remotehost
User remoteuser
Compression yes
Protocol 2
RSAAuthentication yes
StrictHostKeyChecking no
ForwardAgent yes
ForwardX11 yes
IdentityFile /root/.ssh/id_remotehost_dsa

Do NOT change the last line - it is supposed to say remotehost (not an actual host name).

Now,


vi id_dsa.pub

It should look like this:


ssh-dss AAAA..............v root@hmcbox
...

where there is lots of random crap where the dots are. Select it all and copy it.

Tip: To copy from putty on windows select the text from within vi and pres Ctrl + Shift. To paste text enter insert mode and press the right mouse button.

ON the HMC...

cd
vi .ssh/authorized_keys

Enter insert mode (press i) and paste the key, again ensuring that there are no spare newlines or spaces. Save the file and exit vi (press :wq then return, as above)

You can also:

scp authorized_keys root@hmc:/root/.ssh/

If one does not exist...

all set, root for life.

Comentarios