1, login to the host and enter ssh-keygen-t RSA
Prompt for enter file in which to save the key (/ROOT/.SSH/ID_RSA):
Input/root/.ssh/sea_rsa
Enter the relevant pathname and filename as prompted and generate two files (followed by two options to return directly)
2, put that did not. pub file copy out with Puttygen to generate Windows Putty available key (here refers to Sea_rsa, select Puttygen Conversions Import key (here refers to Sea_rsa, Then click Save Private Key)
3, the file with. Pub is renamed Authorized_keys and put into/root/.ssh/
4, start putty, set a good session of the parameters, and then choose from the left "Ssh->auth", click the Browse button, select the key file. Then select the session from the left and click the Save button to save the changes. Then click the Open button to sign in.
If the above operation is not a problem, then should be automatically logged in, just enter the user name without entering a password.
If you add a username to the data in connection, you don't have to enter the username.
Note: If you only use the SSH2 protocol, you need to modify the/etc/ssh/sshd_config file and add (or change): Protocol 2
Ls-l ' which ssh ' if it's ssh2.
Need to modify:
cd/root/.ssh2/
Touch Authorization (corresponds to Authorized_keys)
Content is:
Copy Code code as follows:
# Local Public key
Key id_rsa_1024_a.pub
The other steps are the same