小编Sub*_*ash的帖子

从 Linux 到 Windows 的无密码 ssh

在此处输入图片说明在此处输入图片说明

我正在尝试从 Linux 服务器无需密码登录到 Windows。我已经从 GitHub 安装了 OpenSSH,并且可以执行scpssh. 我尝试将 复制authorized_keys到 Windows 位置。但它仍然无法正常工作。该功能应该是没有密码提示,用于从 linux 环境运行 ssh 或 scp 到登录/显示 windows 目录。

我尝试了以下命令:

cat .ssh/id_rsa.pub | ssh edh_win@xxx.xxx.xxx.xxx 'cat >> .ssh/authorized_keys'

ssh edh_win@xxx.xxx.xxx.xxx "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
Run Code Online (Sandbox Code Playgroud)

但得到错误无法理解catchmod

更新错误

'cat' is not recognized as an internal or external command,
operable program or batch file.

'chmod' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)

我需要安装cygwin吗?如果是,请帮助实施。

任何帮助表示赞赏。下面是错误的图像。

错误的图像

windows ssh cygwin

3
推荐指数
2
解决办法
1万
查看次数

标签 统计

cygwin ×1

ssh ×1

windows ×1