【问题标题】:SSH Dosen't accept password in Windows 10 : read_passphrase: can't open /dev/tty: No such file or directorySSH 在 Windows 10 中不接受密码:read_passphrase:无法打开 /dev/tty:没有这样的文件或目录
【发布时间】:2021-06-29 07:20:26
【问题描述】:

我想在 Windows 10 中建立 ssh 连接,但出现以下错误:

debug2: input_userauth_info_req: num_prompts 1 debug3: failed to open file:C:/dev/tty error:3 debug1: read_passphrase: can't open /dev/tty: No such file or directory

【问题讨论】:

    标签: ssh windows-10 openssh


    【解决方案1】:

    thread suggests 这样的错误消息是您的消息中未出现的错误的表现/副作用。

    根本问题是您对在线 ssh 指令的误解。

    我认为authorized_keys 是包含文件id_rsa.pub 的文件夹,而不是包含密钥本身的文件。
    这源于我对 ssh 约定的有限理解。

    因此,请仔细检查您是否将正确的密钥(公共密钥)注册到远程帐户 $HOME/.ssh/authorized_keys 文件。

    【讨论】:

      猜你喜欢
      • 2022-01-12
      • 1970-01-01
      • 2014-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-06
      相关资源
      最近更新 更多