vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Can't connect to remote servers via Remote SSH

Open photuris5 opened this issue 6 years ago • 16 comments

Issue Type: Bug

After the latest update 1.50.1 update I can not connect to our remote servers. I enter my password and then a few seconds later it wants my password again. Does not connect.

Extension version: 0.55.0 VS Code version: Code 1.50.1 (d2e414d9e4239a252d1ab117bd7067f125afd80a, 2020-10-13T14:53:05.704Z) OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.47GB free)
Process Argv --crash-reporter-id f702a929-f00f-4df2-b2e5-fd2a2d98cdd6
Screen Reader no
VM 0%

photuris5 avatar Oct 15 '20 20:10 photuris5

Reverted back to version 1.49 and remote ssh works again.

photuris5 avatar Oct 15 '20 22:10 photuris5

I managed to get it working on 1.50.1 by disabling Remote.SSH: Remote Server Listen On Socket and running the command Kill VS Code Server on Host.

Clem- avatar Oct 16 '20 08:10 Clem-

same here. cant connect with remote ssh development to my raspberry after 1.50.1 update.

ulvido avatar Oct 16 '20 08:10 ulvido

I encountered the same problem, this is my solution: Remove all the log files in the folder ".vscode-server" on your remote server. Then run vscode client, connect to the remote server , it works again.

imxxw avatar Oct 17 '20 02:10 imxxw

I encountered the same problem, this is my solution: Remove all the log files in the folder ".vscode-server" on your remote server. Then run vscode client, connect to the remote server , it works again.

unfortunately it doesn't for me :(

ulvido avatar Oct 17 '20 07:10 ulvido

Same issue here, running VS Code on Win10, connecting to remote Linux server. This was working fine until the upgrade to 1.50, after which starting the remote VSCode server failed and extension repeatedly asked for password.

Solution suggested by @imxxw worked for me, I deleted all the .log files in the .vscode-server folder, AND also everything in the .vscode-server/data/logs/. After that remote connection worked.

m-kratochvil avatar Oct 18 '20 13:10 m-kratochvil

Same issue. Win 10 to remote Ubuntu 20 server. Deleting the logs only did not work for me. I deleted the entire .vscode-server directory before VS Code would remote to the server. Then later in the day could not reconnect again and again deleting the directory allows me access.

chrismjones avatar Oct 19 '20 23:10 chrismjones

Same issue. Win 10 to remote Ubuntu 20 server. Deleting the logs only did not work for me. I deleted the entire .vscode-server directory before VS Code would remote to the server. Then later in the day could not reconnect again and again deleting the directory allows me access.

this works. deleting all files in ".vscode-server" folder and after that making a connection attemt makes remote machine redownload the server files. this fixes the problem for me.

ulvido avatar Oct 21 '20 06:10 ulvido

I cannot remove the vscode-server folder because it states that the device or resource is busy. This is now not working on 1.49 version or 1.50.1. Any ideas?

photuris5 avatar Oct 22 '20 21:10 photuris5

I cannot remove the vscode-server folder because it states that the device or resource is busy. This is now not working on 1.49 version or 1.50.1. Any ideas?

not the folder itself. try to remove all the things inside?

ulvido avatar Oct 22 '20 21:10 ulvido

I cannot remove the vscode-server folder because it states that the device or resource is busy. This is now not working on 1.49 version or 1.50.1. Any ideas?

not the folder itself. try to remove all the things inside?

I went into the .vscode-server/data/logs/ and there are 2 folders that will not delete because they are in use. Thanks for any help.

photuris5 avatar Oct 22 '20 21:10 photuris5

I cannot remove the vscode-server folder because it states that the device or resource is busy. This is now not working on 1.49 version or 1.50.1. Any ideas?

not the folder itself. try to remove all the things inside?

I went into the .vscode-server/data/logs/ and there are 2 folders that will not delete because they are in use. Thanks for any help.

I now get an error: The VS Code Server failed to start.

photuris5 avatar Oct 22 '20 21:10 photuris5

both sides needs to be latest version?

23 Eki 2020 Cum 00:41 tarihinde Gina Wilson [email protected] şunu yazdı:

I cannot remove the vscode-server folder because it states that the device or resource is busy. This is now not working on 1.49 version or 1.50.1. Any ideas?

not the folder itself. try to remove all the things inside?

I went into the .vscode-server/data/logs/ and there are 2 folders that will not delete because they are in use. Thanks for any help.

I now get an error: The VS Code Server failed to start.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-remote-release/issues/3856#issuecomment-714778443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGTQEIRY2A2WHR6DBS7YLCTSMCRJHANCNFSM4SSO6E3Q .

ulvido avatar Oct 22 '20 21:10 ulvido

Okay everyone, try this. In the VS Code Command Palette, run "kill VS Code Server on Host". Once I did that, I was able to connect using 1.50.1 with no issues. Fingers crossed Thank you @ulvido for your assistance!

photuris5 avatar Oct 22 '20 21:10 photuris5

Please try again and share the full log from the Remote-SSH output channel after running the "kill" command

roblourens avatar Nov 06 '20 19:11 roblourens

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

github-actions[bot] avatar Nov 14 '20 12:11 github-actions[bot]