...hopefully some useful VMware related stuff

Remote ssh on a reinstalled host

23/09/2009 10:01

After rebuilding a host, existing hosts can no longer connect to it as the key in the known hosts file is for the old host.

Edit the following file with vi as follows.

Once logged in as a admin user

vi ~/.ssh/known_hosts

Move down to the host which has been rebuilt and type:

dd

then type:

:wq!

You can now exit and should be able to ssh to the rebuilt host.

This can be tested from the command line with:

ssh username@hostname

You may be prompted to type yes

NOTE: The ssh client must be enabled in the firewall for this to work, this can be acheived:

esxcfg-firewall -e sshClient

 

Search site