服务器远程免密登录

1. 生成本地密钥
ssh-keygen
2. 将密钥上传到服务器
ssh-copy-id -p port [email protected]
3. 创建登录脚本
ssh -p port [email protected]

猜你喜欢

转载自www.cnblogs.com/yeran/p/11348045.html