# #Linux生成ssh公钥免密码登录远程主机:
1:SSH-KEYGEN-T RSA
#生成密钥
2:ssh-copy-id-i ~/.ssh/id_rsa.pub [email protected]
#把本机的公钥追到远程主机172.16.205.117 (login account HEJM) in ~/.ssh/authorized_keys
Note: If the SSH port is not 22, the available parameter p specifies the corresponding port
Ssh-copy-id-i ~/.ssh/id_rsa.pub-p [email protected]
or append the public key to the target host account's Authorized_keys (Append write) via Vim editor
# #XShell使用Xagent代理执行登录脚本 (SSH) automatic cross-hop connection login to remote host (password-free login)
Xshell the account password of the login board can take the way that the session saves the account password. Xshell>tools>launch xagent,Manage keys generates a corresponding key (requires key management to enter a password, The password can be empty)
Add the corresponding key to the ~/.ssh/authorized_keys of the target login remote host
Xshell>file>open>sessions Management, configure the corresponding sessions, configure the corresponding Springboard machine account password, while
Login scripts Enter execute login script ssh [email protected]
SSH edit entry enables use XAgent and launch xagent automatically
Linux generates SSH public key password-free login to remote host and Xshell cross-board Login