Linux generates SSH public key password-free login to remote host and Xshell cross-board Login

Source: Internet
Author: User
Tags ssh port

# #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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.