Always k|

Undefined443

园龄:2年11个月粉丝:13关注:3

Windows SSH 免密登陆 Linux

上传公钥

使用下面这条命令上传公钥:

Get-Content $env:USERPROFILE\.ssh\id_rsa.pub | ssh USER@HOST "cat >> .ssh/authorized_keys"

Troubleshooting

Bad Permissions

$ ssh USER@HOST
Bad permissions. Try removing permissions for user: Domain\\User2 (S-1-5-21-479362186-2444553748-1039381088-1003) on file C:/Users/user/.ssh/id_rsa.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\\Users\\user/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "C:\\Users\\user/.ssh/id_rsa": bad permissions

解决方法:windows 10, 自带的 OpenSSH, key 权限问题, 文件权限问题 | CSDN

本文作者:Undefined443

本文链接:https://www.cnblogs.com/Undefined443/p/18146421

版权声明:本作品采用署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。

posted @   Undefined443  阅读(66)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起