其他分享
首页 > 其他分享> > 使用密钥登陆SSH

使用密钥登陆SSH

作者:互联网

  1. 在用户目录创建.ssh/authorized_keys
    如:登录命令为ssh user@host,就创建/home/user/.ssh/authorized_keys
  2. 将公钥添加到.ssh/authorized_keys
  3. 使用私钥登录
ssh -i C:\私钥 user@host

标签:私钥,密钥,keys,authorized,host,SSH,user,ssh,登陆
来源: https://www.cnblogs.com/randybsk/p/16286878.html