M
M
Marshall_s2020-10-19 14:15:58
linux
Marshall_s, 2020-10-19 14:15:58

Remote development ssh, what's wrong?

Hello! I recently found out about such a feature in vscode as remote dev, I'm trying to set it up, but it doesn't work.
What is available:
1. Computer A, Linux Ubuntu 18.04
2. Computer B, Windows 10
What I want to do:
Computer A (work PC) has various projects, I want to connect to my work PC from Computer B (laptop) using VS Code when traveling Remote SSH and work with projects, without a project pool on Computer B (I understand that you can install git, pull the repo and work, but I would like not to store files locally on Computer B).
What I did:
1. Installed plugins in VS Code - Remote SSH from microsoft
2. Installed SSH server on Linux
3. Opened port 22 'sudo ufw allow ssh'
4. Created a new Linux user 'sudo adduser worker'
5. Get ip-address of Linux machine 'ip a'
6. Open vscode on Computer B
7. Press F1, select Remote SSH: Connect to host...
8. Enter ssh [email protected][ip-addres] / ssh -p22 [email protected][ip-address]
9. A new vscode window opens, it asks you to select the system of the remote machine, I choose Linux
10. "Opening remote" is on the bottom left on a green background, the notification Setting up is on the right SSH Host [my ip]: ([details](command:opensshremotes.showDetails "Show details")) Initializing VS Code Server
11. Thinks for about a minute, then an error occurs - could not establish connection to [my ip], The process tried to write to a nonexistent pipe
12. In the terminal, the last lines before the error
[16:50:47.749] > ssh: connect to host [my ip] port 22: Connection timed out
>
[16:50:47.759] > The process tried to write to a nonexistent pipe.

What is the problem, how to fix it? I didn’t work with the SSH server before, I tried to describe the course of actions as detailed as possible, I don’t really understand servers and networks, since I work in a slightly different area)

Thank you in advance for your answers on the topic :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question