【问题标题】:How to connect to a remote server using putty generated key如何使用 putty 生成的密钥连接到远程服务器
【发布时间】:2021-11-06 03:01:52
【问题描述】:

我正在尝试使用 VSCode 中的 Remote Explorer 扩展程序连接到远程服务器,但是当我使用 putty 生成私钥 private.ppk 时出现错误 p>

无法与

建立连接

当我阅读错误日志时,它试图加载密钥“C:\Users\user.ssh\private.ppk”它说 Invalid Format

如何使用putty格式的key进行连接?下面是我的 config 的样子

Host ###.##.##.###
  HostName ###.##.##.###
  User <user>
  Port 22
  IdentityFile C:\Users\user\.ssh\private.ppk

【问题讨论】:

    标签: visual-studio-code putty remote-server ssh-keys


    【解决方案1】:

    .ppk 是 PuTTY 的专有密钥格式。大多数其他工具不支持它。

    您可能必须将密钥转换为 OpenSSH 格式。为此使用 PuTTYgen。加载密钥并转到 Conversions > Export OpenSSH key。

    【讨论】:

      猜你喜欢
      • 2012-11-26
      • 1970-01-01
      • 1970-01-01
      • 2014-05-30
      • 1970-01-01
      • 2017-11-06
      • 2017-12-29
      • 2022-07-11
      • 2014-12-09
      相关资源
      最近更新 更多