Wednesday, August 6, 2008

Passwordless ssh[ssh tunneling]

ssh-keygen -d
[hit enter three times]
[Replacing "username" and "ipaddress" with yours,
copy&paste/type:]
ssh username@ipaddress 'test -d .ssh || mkdir -m 0700 .ssh ;
cat >> .ssh/authorized_keys && chmod 0600 .ssh/*' < ~/.ssh/id_dsa.pub

No comments: