This article vinkn, reprint please indicate the source http://www.cnblogs.com/Vinkn/
First, Introduction
Server deployment After the general configuration of the firewall, generally also open ssh, you can directly log on to the remote server, for security reasons, after the server deployment will use public key to log on to the server, this article mainly simple introduction securecrt, FileZilla how to use SSH Public key Login server, just as the basis of the explanation, if there are questions or suggestions, please comment, enhanced configuration can be traced: http://os.51cto.com/art/200803/68174_all.htm
Second, key and public key
1. Connect to server using SSH
2, generate key and public key key (can default file name)
1024
3. Copy content and set permissions (Authorized_keys file name is related to SSH configuration)
Cat ~/. ssh/id_dsa.pub >>/root/. ssh/authorized_keys~/. Ssh/authorized_keys
4, ID_DSA, id_dsa.pub and download to local, delete two files on the server
Third, configure SSH
1. Modify the configuration file
vi/etc/ssh/sshd_config// allow only SSH2// Enable PublicKey authentication 5 authorizedkeysfile. publickey file path // Prohibit password Authentication login
2. Restart the SSH service
1 ssh restart
Iv. using public key in SECURECRT
1. Create a new session
2, input hostname and username, do not open directly after completion, select the session right click Properties
3, choose left SSH2, right reserved PublicKey, configure properties
4, directly into the
V. Use public key in FileZilla
1. Select Edit > Set >sftp
2. Add the key file, select the generated key file
3, the prompt key format is not supported, select "Yes", and then enter the password to save as a "PPK" file (Note: Although PPK is generated but be sure to add the PPK file again)
4. Add the generated PPK file to the key file
5, open the Site Manager, select the protocol for SFTP, login type is normal, enter the user name, password is empty
6, can be connected to the server
SECURECRT, FileZilla Log on to Linux with the public certificate