http://support.suso.com/supki/SSH_Tutorial_for_Linux
1] make sure sshd is running
# yast -i sshd
# sudo /sbin/yast2 sshd
# chkconfig -l | grep sshd
# service sshd start
2] login using ssh
# ssh messi@localhost
3] generate encryption key (use passphrase)
# ssh-keygen -t dsa {can be rsa type}
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Your identification has been saved in /home/localuser/.ssh/id_dsa.
Your public key has been saved in /home/localuser/.ssh/id_dsa.pub.
The key fingerprint is:
93:58:20:56:72:d7:bd:14:86:9f:42:aa:82:3d:f8:e5 /home/messi/.ssh/id_dsa.pub
4] Put public key into remote location
# scp ~/.ssh/id_dsa.pub messi@localhost: .ssh/authorized_keys
5] Hosts keys are stored in
# /etc/ssh/ ssh_host_key.pub
6] Need to add the key into this file
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment