其他设备ssh连接windows
解决可能是Windows与Mac换行符不同导致的ssh-copy-id命令使用无效的问题
- 生成密钥:
ssh-keygen - 在windows的
user_name\.ssh新建一个名为authorized_keys的文件,将访问设备的公钥,即id_xxxxxx.pub文件内的内容复制其中 - 打开windows中
ProgramData\ssh\ssh_config - 将34、38、51行取消注释,将87、88(最后两行)注释
- 重启
OpenSSH SSH Server服务
其他设备ssh连接windows
http://example.com/2025/10/14/其他设备ssh连接windows/