A
A
Artem Prokhorov2021-09-28 13:37:59
Visual Studio Code
Artem Prokhorov, 2021-09-28 13:37:59

How to auto connect to SSH connection?

At the moment it requires you to enter a password every time. Saved the connection as a desktop shortcut.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Prokhorov, 2021-09-28
@kotcich

Detailed solution to this problem. Everything worked for me.

L
lagudal, 2021-09-28
@lagudal

It is necessary to unlearn passwords and connect with keys.
After that, it is best to write the config in the .ssh folder, for example

Host test
        HostName test.site
        User ubuntu
        IdentityFile ~/.ssh/id_rsa
Host test2
.....

and that's it, ssh test and you are under the right user where you need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question