Linux ssh_key 基于KEY安全外壳协议


Linux ssh_key 基于KEY安全外壳协议

1. server
# ssh-keygen -t rsa  (empty for no passphrase)
# scp ~/.ssh/id_rsa.pub [server ip or hostname]:.ssh/authorized_keys (more key _keys2)
# vi /etc/ssh/sshd_config [passwordauthentication no (disable password) or yes]
# service sshd restart

2. client
download ~/.ssh/id_rsa
use puttygen: Load->id_rsa->KeyPassPhrase and Confirm [or empty]->Save private key (.ppk)

use putty
Connection->SSH->Auth-Private Kye file for authentication->Browse (.ppt)
Session->Host Name[or IP address]->SSH->Open

login as: root
Connection.........OK  oh yeh

相关内容