首页 > 其他分享> > 使用密钥登陆SSH 使用密钥登陆SSH 2022-05-19 00:01:39 作者:互联网 在用户目录创建.ssh/authorized_keys 如:登录命令为ssh user@host,就创建/home/user/.ssh/authorized_keys 将公钥添加到.ssh/authorized_keys中 使用私钥登录 ssh -i C:\私钥 user@host 标签:私钥,密钥,keys,authorized,host,SSH,user,ssh,登陆 来源: https://www.cnblogs.com/randybsk/p/16286878.html