S
S
Sergey Shevchenko2017-09-10 17:13:51
bash
Sergey Shevchenko, 2017-09-10 17:13:51

How to make ssh agent start on terminal startup (without eval $(ssh-agent -s) )?

Hello!
How to make ssh agent start on terminal startup (without eval $(ssh-agent -s) ) ?
To merge to a test server or prod, you constantly have to enter

$ eval $(ssh-agent -s)
$ ssh-add /e/ssh/mykey.ppk

And only then the push can be done.
Previously, this was not the case.
I use the ConEmu + git bash terminal (in the storm one, by the way), Windows I noticed when the key was transferred from ~/.ssh/ mykey.ppk
to /e/ssh/mykey.ppk (it was necessary)
would you constantly not type those 2 commands above?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-09-10
@lancer_serega

register in .bashrc .
although it can be solved without ssh-agent at all , via .ssh/config .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question