黑马程序员57(SSH高级—免密码登录设置步骤)

免密码登录:

步骤

  • 配置公钥:执行ssh-keygen即可生成SSH钥匙,一路回车即可

  • 上传公钥到服务器:执行 ssh-copy-id -p port user@remote,可以让远程服务器记住我们的公钥

猜你喜欢

转载自blog.csdn.net/weixin_42681308/article/details/81260112