visual studio 2019 fails to ssh into wsl ubuntu 18.04 #5949
Replies: 4 comments 2 replies
-
I didn't manage to add a connection through visual studio IDE so I used the ConnectionManager.exe tool . at first I got an error because the date was in Arabic but after I changed the date the connection was added successfully . |
Beta Was this translation helpful? Give feedback.
-
Make the |
Beta Was this translation helpful? Give feedback.
-
visual studio 2019 sucks |
Beta Was this translation helpful? Give feedback.
-
Have the same with vs2022 |
Beta Was this translation helpful? Give feedback.
-
I'm having some problems connecting to wsl from visual studio 2019 via ssh for c++ development . Windows Version : 10.0.18362 Build 18362 . ubuntu version on wsl : Ubuntu 18.04.4 LTS .
steps I followed to setup an ssh connection :
1- installed the ssh server sudo apt install openssh-server
2- edited the config file at /etc/ssh/sshd_config . my config is :
3- started the ssh server on wsl sudo service ssh start
4- tested the connection with putty and bitvise ssh and all work very well, I can ssh into ubuntu and have a terminal and sftp session . also I made sure that the server is running via powershell netstat -an
5- went to visual studio Tools -> Options -> Cross Platform -> Connection Manager -> Add
I entered the same host, port, user and password I used in putty and bitvise ssh but I got some delay and nothing happens and no errors are shown, then I click on connect again and get an error at host and port fields saying: Connectivity failure. Please make sure host name and port number are correct . after that all tries result in the same error even if I used wrong user or password
I tried to use wrong user or password at the first try and I got some delay and an error was shown for user and password fields saying that the are incorrect . after I enter the correct credentials I get the first behavior again : delay and nothing happens then host and port errors .
EDIT: I enabled the connection logs and I got :
Beta Was this translation helpful? Give feedback.
All reactions