GnuSys Notes : SshHacks

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
To setup an SSH login to a server without prompting for a password:

Create a personel ssh key(Do not enter a passphrase when prompted otherwise you will have to enter the passphrase to login)

ssh-keygen -t dsa


This will create two new files in your ~/.ssh folder

id_dsa
id_dsa.pub

Now copy the id_dsa.pub file to the remote server

scp ~/.ssh/id_dsa.pub user@:/root/.ssh/server1.key.pub

Now login to the remote server and

cat /root/.ssh/server1.key.pub >> /root/.ssh/authorized_keys2
chmod 600 /root/.ssh/authorized_keys2
/etc/init.d/sshd restart


Now you can login from your system to the remote host without a password!


SSHD CONFIGURATION
http://www.unix.org.ua/orelly/networking_2ndEd/ssh/ch10_03.htm


SSH SOCKS PROXY
http://ubuntu-tutorials.com/2007/06/20/global-network-proxy-socks-over-ssh-ubuntu-704/

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.0682 seconds