Setup passless ssh linux centos 5.x/4.x
Posted by admin - 18/09/09 at 11:09:46 pmOn your client machine, execute:
#ssh-keygen -t dsa -P ” -f ~/.ssh/id_dsa
This will create a file called id_dsa.pub in ~/.ssh/
Copy that file to your destination host under ~/.ssh/
#cat ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
This will append the content of id_dsa.pub to authorized_keys; you can now access your host without the password prompt.
September 18, 2009 | In system administration | 1 Comment
Disable or Enable root login linux centos 5.x/4.x
Posted by admin - 18/09/09 at 11:09:33 pmYou can disable password authentication completely by adding the following setting to your /etc/ssh/sshd_config file:
+Disable password authentication forcing use of keys
PasswordAuthentication no
+restart
#/etc/init.d/sshd restart
September 18, 2009 | In system administration | 3 Comments
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.