K
K
kitcart2019-09-14 15:38:58
linux
kitcart, 2019-09-14 15:38:58

Constantly requires a passphrase for SSH, how to solve?

Good afternoon.
The computer has Win10, it has a subsystem ubuntu linux 18
To work in the terminal, respectively.
When connecting via ssh, it always requires you to enter a secret phrase (it doesn't matter if it's a server, git, or somewhere else).
This does not create any special problems, well, I introduced it once and for all. While the session is holding, you can work.
However, this creates huge problems when deploying and other things that work with ssh. There, the request goes once a second for each sneeze and it is not realistic to enter a phrase all the time.
Tried
$ eval `ssh-agent -s`

$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /home/user/.ssh/id_rsa:
Identity added: /home/user/.ssh/id_rsa
(/home/user/.ssh/id_rsa_key)

It also works for one session.
Actually the question is: how not to constantly enter the phrase when connecting via ssh?
Thank you.
PS
key generated, ssh-copy-id for all required servers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-09-14
@kitcart

use ssh agent forwarding .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question