Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote ssh connection #5343

Closed
ddoron9 opened this issue Jul 18, 2021 · 2 comments
Closed

remote ssh connection #5343

ddoron9 opened this issue Jul 18, 2021 · 2 comments
Labels
ssh Issue in vscode-remote SSH

Comments

@ddoron9
Copy link

ddoron9 commented Jul 18, 2021

Hi I'm using m1 mac mini. I wanted to connect remote-ssh to linux server and it shows could not establish...
but server with different port works fine on vscode remote-ssh. also the error showing port can be accessed by mac terminal ssh command. I can't even get any clue why this error is happening.

here is my vscode version

Version: 1.58.2 (Universal)
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:09:06.581Z (3 days ago)
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Darwin arm64 20.4.0

[12:38:28.751] Log Level: 2
[12:38:28.752] [email protected]
[12:38:28.752] darwin arm64
[12:38:28.752] SSH Resolver called for "ssh-remote+ ", attempt 1
[12:38:28.753] "remote.SSH.useLocalServer": true
[12:38:28.753] "remote.SSH.path": undefined
[12:38:28.753] "remote.SSH.configFile": undefined
[12:38:28.753] "remote.SSH.useFlock": true
[12:38:28.753] "remote.SSH.lockfilesInTmp": false
[12:38:28.753] "remote.SSH.localServerDownload": auto
[12:38:28.753] "remote.SSH.remoteServerListenOnSocket": false
[12:38:28.753] "remote.SSH.showLoginTerminal": false
[12:38:28.753] "remote.SSH.defaultExtensions": []
[12:38:28.753] "remote.SSH.loglevel": 2
[12:38:28.753] SSH Resolver called for host:  
[12:38:28.753] Setting up SSH remote " "
[12:38:28.755] Acquiring local install lock: /var/folders/h8/bc724dnn3xv5l736jlfcc_d00000gn/T/vscode-remote-ssh- -install.lock
[12:38:28.763] Looking for existing server data file at /Users//Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host- -c3f126316369cd610563c75b1b1725e0679adfb3-0.65.7/data.json
[12:38:28.763] Using commit id "c3f126316369cd610563c75b1b1725e0679adfb3" and quality "stable" for server
[12:38:28.765] Install and start server if needed
[12:38:28.767] PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[12:38:28.767] Checking ssh with "ssh -V"
[12:38:28.771] > OpenSSH_8.1p1, LibreSSL 2.7.3

[12:38:28.772] askpass server listening on /var/folders/h8/bc724dnn3xv5l736jlfcc_d00000gn/T/vscode-ssh-askpass-7c3b1ff0ef859be0ec85adf731b3ac502cead21e.sock
[12:38:28.772] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/h8/bc724dnn3xv5l736jlfcc_d00000gn/T/vscode-ssh-askpass-4371f6f190f35978baba9fbd8d0353e2d895a902.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51175","-o","ConnectTimeout=15"," "],"dataFilePath":"/Users/ /Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host- -c3f126316369cd610563c75b1b1725e0679adfb3-0.65.7/data.json"}
[12:38:28.772] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/ /.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.7/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/private/var/folders/h8/bc724dnn3xv5l736jlfcc_d00000gn/T/AppTranslocation/43768F61-072D-4E9B-9C25-9C43E92AD46D/d/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)","VSCODE_SSH_ASKPASS_MAIN":"/Users//.vscode/extensions/ms-vscode-remote.remote-ssh-0.65.7/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/h8/bc724dnn3xv5l736jlfcc_d00000gn/T/vscode-ssh-askpass-7c3b1ff0ef859be0ec85adf731b3ac502cead21e.sock"}
[12:38:28.773] Spawned 2372
[12:38:28.829] > local-server-1> Spawned ssh, pid=2374
[12:38:28.830] stderr> OpenSSH_8.1p1, LibreSSL 2.7.3
[12:38:28.932] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:PTyr+JvZR9Urp2sQasAxpY1yUd92ce0nrX6donUqKOE
[12:38:29.068] Got askpass request:  
[12:38:29.068] Showing password prompt
[12:38:29.087] Listening for interwindow password on /var/folders/h8/bc724dnn3xv5l736jlfcc_d00000gn/T/vscode-ssh-askpass-dabf45def2a1722e63b49d6008a04f8b40523c45.sock
[12:38:29.087] Writing password prompt to globalState

expecting help...

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Jul 18, 2021
@bamurtaugh
Copy link
Member

I think this may be dependent on #4069?

@roblourens
Copy link
Member

The log doesn't show a failure to connect. Did you miss the end of the log? Can reopen if it's still an issue

@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants