
Search the Knowledge Base: |
Search the Knowledge Base: |
Solution:
cd /etc/ssh
vi ssh_config
BatchMode yes
service sshd restart
ssh-keygen -t dsa
This command outputs the following. Retain the default locations, and do not use a passphrase:
[root@hostname root]$ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/root/.ssh/id_dsa. Your public key has been saved in /home/root/.ssh/id_dsa.pub. The key fingerprint is: 7b:ab:75:32:9e:b6:6c:4b:29:dc:2a:2b:8c:2f:4e:37 root@hostnameYour keys are stored in /root/.ssh.
cd /root/.ssh
cat id_dsa.pub >> authorized_keys chmod 600 authorized_keys