用 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] remote-ssh@0.55.0
[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] > Administrator@0.0.0.0's password:
[16:48:06.224] >
>
[16:48:08.095] > Permission denied, please try again.
> Administrator@0.0.0.0's password:
[16:48:09.978] >
>
[16:48:11.563] > Permission denied, please try again.
> Administrator@0.0.0.0's password:
[16:48:13.094] >
>
[16:48:15.465] > Administrator@0.0.0.0: 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,都没用、、
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.