最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Mac中SecureCRT用SSH私钥登陆远程服务器

Mac crifan 8329浏览 0评论

折腾:

【已解决】生成SSH公钥私钥和用私钥登陆远程服务器

后,对方把我公钥上传到服务器上了。

现在此处Mac中通过SecureCRT去用私钥登陆服务器。

搜:

securecrt ssh 密钥登录

SecureCRT通过密钥登录 – 酷喃|coolnull|

SecureCRT 使用密钥登录Linux SSH服务器(操作笔记)-渐渐的就变老了~-51CTO博客

windows上通过secureCRT和putty创建密钥登录 – CSDN博客

好像就只是,登录时选择Publickey(不要勾选其他的Password等)

如果点击取消,不输入用户名的话,还是无法登录。

输入之前

/Users/crifan/.ssh/id_rsa.pub

最末尾的,看似用户名:

结果弹出要选择的id_rsa.pub,选择对应的pub:

结果还是出错:

The server has disconnected with an error.  Server message reads:

A protocol error occurred. Change of username or service not allowed: (crifan,ssh-connection) -> ([email protected]l,ssh-connection)

SecureCRT通过ssh密钥登录 Linux服务器 – 老季博客

再重新试试

【总结】

(Mac)SecureCRT新建连接时,填上:

  • Protocol:SSH2
  • Hostname:主机IP
  • Port:22
  • Firewall:None
  • Username:root
  • Authentication方式只勾选PublickKey
    • (取消勾选 Password,Keyboard Interactive,GSSAPI)

再点击Property,在Public Key Properties中:

  • (默认已选择)Use global public key settings
    • Use identity or certificate file,选择之前的公钥:
      • /Users/xxx/.ssh/id_rsa.pub
      • 选择id_rsa.pub后,下面的Fingerprint(MD5)会自动计算出来
      • 点击OK即可。

转载请注明:在路上 » 【已解决】Mac中SecureCRT用SSH私钥登陆远程服务器

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.194 seconds, using 22.08MB memory