Thursday, February 3, 2011

Passwordless SSH between Solaris & Linux

The steps to be done for passwordless SSH

 $cd /home/user/.ssh    
$ssh-keygen -t rsa
$cat id_rsa.pub | ssh user@remotemachine "cat - >> .ssh/authorized_keys"
$ssh root@remotemachine

If you try to SSH theserver from remote machine and its not working, then check the permissions on the user's home directory.The permissions must be
  755 for home directory 
  700 for /home/user/.ssh
  644 for /home/user/.ssh/<all files>

No comments:

Post a Comment