Tiffany Walker asked:
server 1 which dials into server 2
ssh-keygen -t dsa -b 1024 (no password)
scp id_dsa.pub [email protected]:/home/user/.ssh
server2:
[~/.ssh]# cat id_dsa.pub >> ./authorized_keys
But when I do ssh [email protected] I get:
[email protected]'s password:
EDIT:
server1: ssh-keygen -t dsa -b 1024 (no password)
server1: ssh-copy-id -i ~/.ssh/id_dsa [email protected]
server1: ssh [email protected] -- get promoted for a password
How do I get the correct user used so I can login with no password?
My answer:
The permissions on the .ssh
directory and/or the files within it are wrong on the remote server.
You can fix these manually yourself, or just use the ssh-copy-id
utility to copy your public keys over to the server. This will also fix any broken permissions of this type.
ssh-copy-id -i ~/.ssh/id_dsa [email protected]
If you still have trouble, you need to look at sshd
debug logs on the server.
View the full question and any other answers on Server Fault.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.