actually they can login any time to the server without known the root password!!!
by using RSA or DSA private key to login.
On Server Side:
-------------------
- copy the public key "/etc/ssh/ssh_host_dsa_key.pub " to "~/.ssh/authorized_keys" with chmod 600
#cp /etc/ssh/ssh_host_dsa_key.pub ~/.ssh/authorized_keys
#chmod 600 ~/.ssh/authorized_keys
On Client Side:
------------------
- save the private key "/etc/ssh/ssh_host_dsa_key" to your machine with chmod 600
- use it with SSH option "-i" to login without password.
#chmod 600 ssh_host_dsa_key
#ssh root@192.168.1.2 -i ssh_host_dsa_key
For Windows Users:
---------------------
- copy the private key "/etc/ssh/ssh_host_dsa_key" content to window notepad
- load it in puttygen.exe and save it again with .ppk extension
- select the key from putty>connection>SSH>Auth
and enjoy login without password ;)
1 comments:
تفكير نقي والله الطريق رائعة
عضو في sec-r1z
M0µ34d
Post a Comment