Just Looking to log in from a the vmware host to another linux box (as a different user). I done this before plenty of times on Linux boxes before but not sure on the actual VMware host. I have generated public key
/usr/lib/vmware/openssh/bin/ssh-keygen
then copied it over to the server I want to ssh to without password:
cat /etc/ssh/testserver_pub_key.pub | ssh myuser@testserver 'cat >> /home/myuser/.ssh/authorized_keys'
Still can't log in without password.
I ran into this myself yesterday. The issue is that sshd is configured to look for authorized_keys elsewhere (not in user's .ssh folder). I don't remember where and don't have access now but look for the path as configured in the sshd config files under /etc/.
When I found the right authorized_keys in the right place and appended my key there, everything worked.
Did not work for me. Again I want to SSH from my vmware box to a linux box (not VMWARE) as another user on the same internal network without password.
My Steps
ON my Vmware box on esxi
1. create pub key /usr/lib/vmware/openssh/bin/ssh-keygen
I call file server1.pub
2. Copy pub key over to server1
cat /etc/ssh/keys-root/server1.pub | ssh admin@server1 'cat >> /home/admin/.ssh/authorized_keys'
3. When I ssh to admin@server1 I get prompted to enter password (not working)
4. I ssh using -i parameter ssh -i /etc/ssh/keys-root/server1.pub and get prompted for password (not working)
