SSH keys problem
Hi. im having a problem with ssh keys, its redhat 9, ive tried dsa and rsa keys and get the same problem, if I upload the public key to a root user on another machine I can do a passwordless login no problem, if I upload it to a normal user it doesnt work.
[mkeen mkeen]$ ssh-keygen -t dsa -f .ssh/id_dsa
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in .ssh/id_dsa.
Your public key has been saved in .ssh/id_dsa.pub.
The key fingerprint is:
55:**:**:**:**:**:**:**:**:**:**:**:1d:ab:51:fa mkeen@hosting.***.com
[mkeen mkeen]$ cd .ssh/
[mkeen .ssh]$ ls
id_dsa id_dsa.pub
[mkeen .ssh]$ scp id_dsa.pub user@82.138.247.**:~/.ssh/id_dsa.pub
server2@82.138.247.**'s password:
id_dsa.pub 100% 615 0.0KB/s 00:00
[mkeen .ssh]$ ssh user@82.138.247.**
user@82.138.247.**'s password:
[user@server10 server2]$ ls
[user@server10 server2]$ cd .ssh/
[user@server10 .ssh]$ cat id_dsa.pub >> authorized_keys
[user@server10 .ssh]$ chmod 640 authorized_keys
[user@server10 .ssh]$ rm id_dsa.pub
[user@server10 .ssh]$ exit
logout
Connection to 82.138.247.** closed.
[mkeen .ssh]$ ssh user@82.138.247.**
user@82.138.247.**'s password:I have done the exact same thing on a machine with fedora core 2 on and it works fine.
Thanks in advance
Matthew Keen
|