I am trying to connect to my OpenWRT router using SSH. Since Windows 10 comes with a SSH client I decided to use that.
When I try to connect nothing happens when I paste into the password field.
My password is 30+ char with special characters. There seems to be no way to paste the password.
Is this a bug in the Windows SSH client / Terminal?
I have no problem pasting into the terminal. It is only that password field I have issues with. Nothing happens when I paste anything there.
Windows PowerShell 中复制和粘贴的答案( Chris在另一个答案中给出的链接)建议了 5 种不同的粘贴文本的方法。它们都在普通命令行上工作,但其中只有 3 个适用于 ssh 密码(或在 ssh 应用程序中输入任何文本时,例如在成功登录后)。
这五个是:
适用于 ssh 的三个数字是数字 1、2 和 5。(正如其他答案提到的,ssh 登录提示不会回显粘贴的字符,您需要Enter在粘贴后按。)
第 5 号选项的工具提示给出了有关正在发生的情况的提示。
它说“无论输入模式如何”。选项对话框还有一个新的控制台功能链接,其中包含以下内容:
如果您在处理输入模式下运行,则适用以下快捷方式,但在其他模式下,您的应用程序必须处理它们
(其中“下面的快捷方式”包括Ctrl+ V)
所以我认为 ssh 以“已处理输入模式”以外的模式运行(并且本身不以预期方式处理这些快捷方式),这显然是导致方法 3 和 4 不起作用的原因。
它是Linux安全模型中的默认值。当您在 ssh 中输入密码时,密码永远不会在您输入时显示。但如果你粘贴,它就会无形中被粘贴。然后就可以打了ENTER。Windows OpenSSH 客户端也有这种行为。
| 归档时间: |
|
| 查看次数: |
20770 次 |
| 最近记录: |