Shared SSH Keys Implementation

Submitted by sklav on Fri, 05/29/2009 - 19:37

Generating Key SSH V.2

> ssh-keygen -t dsa (at password prompt just hit the enter key for no password)
> scp user@192.168.x.x:/path/to/home (on local machine)
> mkdir .ssh (on remote machine if it does not exist)
> cd .ssh/ (on remote machine)
> touch authorized_keys2 (on remote machine)
> chmod 600 authorized_keys2 (on remote machine)
> cat ../ >> authorized_keys2
> cd ..
> rm

Now you should be able to login on the remote machine without a password. Btw please be very careful as this would allow an intruder access to your network if not secured properly.