vscode ssh-remote 提示错误信息如下,需要修改id_rsa 文件的权限,具体的要看user信息,提示那些用户的权限too open
也就是说权限放的太开了,被ssh-remote 拒绝了。
[14:04:09.233] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 11403 "192.168.1.100" bash
[14:04:09.234] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[14:04:09.845] > Bad permissions. Try removing permissions for user: UNKNOWN\\UNKNOWN (S-1-5-32-513) on file C:/Users/xiaoming/.ssh/id_rsa.
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Permissions for 'C:\\Users\\xiaoming\\.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\\xiaoming\\.ssh\\id_rsa": bad permissions
> root@192.168.1.100's password:�]0;C:\WINDOWS\System32\cmd.exe�
[14:04:09.846] Got some output, clearing connection timeout
[14:04:09.846] Showing password prompt