OPENSSH - 无法通过 SSH 连接本地窗口



我使用以下网址安装了openssh服务器,

https://howtech.tv/basics/how-to-install-openssh-to-windows/

它在我的本地机器上成功安装,即 Windows 8.1,我的登录名是域登录。但是当我尝试连接到ssh服务器时,它抛出错误说"权限被拒绝",并且在三次尝试后它从ssh中出来。

ssh username@myhostname

它要求输入密码但不连接。

username@myhostname's password:
Permission denied, please try again.
username@myhostname's password:
Permission denied, please try again.
username@myhostname's password:
Authentication failed.
C:Usersusername>

请帮助解决此问题。

谢谢

在sourceforge上sshwindows的程序非常古老,似乎没有得到维护。我强烈反对使用它。

此外,Windows 8.1已经不支持一年多了。您应该考虑迁移到Windows 10,该版本已经包含Microsoft支持的SSH的(测试版(版本。

WinSCP 站点提供了有关如何从 github 安装 Microsoft 版本的说明: https://winscp.net/eng/docs/guide_windows_openssh_server 和Microsoft有关于另一种安装方式的文档:https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

从以下位置安装 Windows 8 或 7 的 OpenSSH: https://github.com/PowerShell/Win32-OpenSSH/releases

OpenSSH-Win64.zip 或 OpenSSH-Win32.zip

在任何路径上提取它。 复制文件"sshd_config_default"并将其重命名为sshd_config。 编辑此文件并取消注释"侦听地址 0.0.0.0"行并保存文件。 使用管理员角色运行cmd,转到上面的文件夹路径并键入以下内容以将OpenSSH安装为服务:"sc create sshservice binpath=sshd.exe" 它将显示已成功安装的服务。 请确保在路径环境变量中添加此文件夹。 现在从services.msc启动这个sshservice服务。

最新更新