用 remote ssh 通过用户名密码方式连接树莓派,试了两台电脑( win7,win10 )均没有成功,是不能用密码登录还是不支持树莓派呢? 设置好 Port 和 User 后,在命令行里面用的是电脑的用户名( administrator ),结果就是一直 Permission denied,三次后报错。
ssh 配置文件
Host 0.0.0.0
HostName 0.0.0.0
Port 42212
User pi
报错日志
[16:47:46.856] Log Level: 2
[16:47:46.861] [email protected]
[16:47:46.861] win32 x64
[16:47:46.865] SSH Resolver called for "ssh-remote+0.0.0.0", attempt 1
[16:47:46.866] SSH Resolver called for host: 0.0.0.0
[16:47:46.866] Setting up SSH remote "0.0.0.0"
[16:47:46.903] Using commit id "d2e414d9e4239a252d1ab117bd7067f125afd80a" and quality "stable" for server
[16:47:46.906] Install and start server if needed
[16:47:49.085] Checking ssh with "ssh -V"
[16:47:49.193] > OpenSSH_8.3p1, OpenSSL 1.1.1f 31 Mar 2020
[16:47:49.202] Running script with connection command: ssh -T -D 60935 45.253.67.78 bash
[16:47:49.206] Terminal shell path: C:\Windows\System32\cmd.exe
[16:47:49.478] >
[16:47:49.479] Got some output, clearing connection timeout
[16:47:54.765] > [email protected]'s password:
[16:48:06.224] >
>
[16:48:08.095] > Permission denied, please try again.
> [email protected]'s password:
[16:48:09.978] >
>
[16:48:11.563] > Permission denied, please try again.
> [email protected]'s password:
[16:48:13.094] >
>
[16:48:15.465] > [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
> 过程试图写入的管道不存在。
>
[16:48:16.254] "install" terminal command done
[16:48:16.255] Install terminal quit with output: 过程试图写入的管道不存在。
[16:48:16.255] Received install output: 过程试图写入的管道不存在。
[16:48:16.256] Stopped parsing output early. Remaining text: 过程试图写入的管道不存在。
[16:48:16.256] Failed to parse remote port from server output
[16:48:16.264] Resolver error: Error:
at Function.Create (c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:1:130564)
at Object.t.handleInstallOutput (c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:1:127671)
at I (c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:106775)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:104774
at async Object.t.withShowDetailsEvent (c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:109845)
at async Object.t.resolve (c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:107960)
at async c:\Users\Administrator\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:141955
[16:48:16.269] ------
我尝试了更改.ssh 等文件权限以及升级 OpenSSH,都没用、、
1
L00kback 2020-10-21 17:03:58 +08:00
命令行能登陆不,看起来不是 vscode 的问题啊
|
2
liuxey 2020-10-21 17:04:27 +08:00 via Android
不支持密码远程,要预先设置好 sshkey
|
4
weeevv 2020-10-21 17:59:54 +08:00 via Android
公司的服务器,在 ubuntu 下没问题,在 wondows 下也会出现这种错误。
|
5
imsunyh 2020-10-21 19:17:43 +08:00
你这 0.0.0.0 什么 IP ?
|
6
zhangneww 2020-10-21 19:22:20 +08:00
你这 ssh 配置文件 能用?远程机器 ip 是 0.0.0.0 ?
|
7
ljpCN 2020-10-22 02:02:06 +08:00 via Android
IP 错了
|
8
labulaka521 2020-10-22 09:46:12 +08:00 via iPhone
|
10
eternitym31 2020-10-22 13:49:24 +08:00
我也是“试图写入的管道不存在”,先连接跳板机再连接开发机,Google 上查找的方法都试了,每一个能用的。
|
11
shukim 2020-10-22 15:31:51 +08:00
原来遇到个类似的问题,是 win10 自带的 ssh 的原因,环境变量配成了 git-bash 解决的
|
12
imsunyh 2020-10-22 17:15:18 +08:00
看一下服务器的 SSH-CONFIG 有没有改 里面有几个参数要把 NO 改成 YES
|
13
marclam 2021-12-07 21:34:50 +08:00 via Android
目前好像是不支持树莓派的 armhf?我也试过类似平台,remote ssh 首次连过去会有一个下载安装的过程,最后没有成功,不知道是因为空间不够还是不支持架构
|
14
lysS 2021-12-22 19:54:17 +08:00
Running script with connection command: ssh -T -D 60935 45.253.67.78 bash
它没有指定用户,cmd 运行这个命令也是同样的报错 |