Mike Leone on 21 Jul 2010 07:00:45 -0700 |
On 7/21/2010 9:45 AM, Kyle R. Burton had this to say: I did this by "ssh-keygen -t rsa". Then I copied the public file to "FileCollector@192.168.1.30" with ssh-copy-id -i id_rsa.pub FileCollector@192.168.1.30One thing that often gets me is to ensure that FileCollector's .ssh directory is 700, and that the files within it are 600. They are. But when I try and test it, I get prompted for a password: vadmin@admnftp002:~/.ssh$ ssh FileCollector@192.168.1.30 uptime FileCollector@192.168.1.30's password:I've found that trying with verbosity turned up, 'ssh -v -v -v...', and watching to see if it considers the ssh-key or not helpful. If I understood it all, I'm sure it would be helpful. :-) I saw this (from a single -v): debug1: Host '192.168.1.30' is known and matches the RSA host key. debug1: Found key in /home/vadmin/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: gssapi-with-mic debug1: An invalid name was supplied Cannot determine realm for numeric host address debug1: An invalid name was supplied Cannot determine realm for numeric host address debug1: An invalid name was supplied debug1: Next authentication method: publickey debug1: Trying private key: /home/vadmin/.ssh/identity debug1: Offering public key: /home/vadmin/.ssh/id_rsadebug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Trying private key: /home/vadmin/.ssh/id_dsa debug1: Next authentication method: passwordAnd then I am prompted for the password. Anybody see anything that tells them anything? :-) ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|