SELAMAT DATANG DI BLOG INI

Kalender Hijriyah

Rabu, 17 Maret 2010

SSH Without Password

1. Run the following command on the client
-> ssh-keygen -t dsa
2. File id_dsa and id_dsa.pub will be created inside $HOME/.ssh
3. Copy id_dsa.pub to the server's .ssh directory
-> scp $HOME/.ssh/id_dsa.pub user@server:/home/user/.ssh
4. Change to /root/.ssh and create file authorized_keys containing id_dsa content
-> cd /home/user/.ssh
-> cat id_dsa >> authorized_keys
5. You can try ssh to the server from the client and no password will be needed
-> ssh user@server

0 komentar:

Posting Komentar

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More