V
V
VicTHOR2019-11-08 15:53:10
Visual Studio Code
VicTHOR, 2019-11-08 15:53:10

How to configure access to the console via SSH?

Actually, I tested several plug-ins for connecting via SSH, they can open a working folder, but they don’t connect to the Linux console ..
Is it possible to organize development completely in VSCode to make a remote connection there and also write commands to the console, in including git? Or go to install it on Linux and download plugins?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VicTHOR, 2019-11-11
@VicTHOR

I will supplement the answer Anatoly Pychev
Indeed, the choice fell on the integrated git bash console, which has the ssh protocol, which can be used regardless of Windows. On windows 10, the protocol can also be opened for cmd. You can find another console on Windows, but I don’t see the need for this.
To connect without entering a password every time, you need to generate a token in the git

ssh-keygen -t rsa -b 4096 -C "КОММЕНТАРИЙ"
// -b 4096 - задание размера, по усмотрению
// -C "КОММЕНТАРИЙ" лучше оставить и в комментарии идентифицировать чей токен, например почту или гит
the command will prompt you to enter the file name and password that is requested when connecting. All skip.
The procedure with the token is well described here , you need to add it to Linux to the connection user in autorized_keys.
I chose Remote FS as the plugin for connecting the workspace , in the settings of this plugin you can refer to the same token file and connect to the working folder without a password, plus the setup is simple and stored in settings.json
There is an option with the Remote-Development plugin via Docker, but it is too it seemed complicated and loaded. It requires a docker daemon, and the daemon required to configure the BIOS ... besides, it won’t work on a weak computer, and docker didn’t even install on my home calculator (not x64)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question