1.生成秘钥对并指定秘钥对名称:sql
ssh-keygen -t rsa -f other -C "for other"
2.将other.pub公钥添加至要免密登陆的服务器服务器
3.使用指定other私钥登陆远程服务器:ssh
ssh -i ~/.ssh/other 124.202.149.13 -p36000
4.指定私钥远程scpblog
scp -P36000 -i ~/.ssh/other jiradb-2019-05-20.sql 124.202.149.13:/data/backup/jira/