W
W
wiyod2018-03-03 22:10:53
git
wiyod, 2018-03-03 22:10:53

Why does the git key disappear from ssh-agent?

On the VPS, I generated an SSH key, added it to Github as expected, checked the connection, everything works. I go the next day - there is no connection, because ssh-agent does not see the key. I had to re-add (as many as 3 commands to print). At first I thought that maybe the VPS was rebooting, but no - my application is still running (it would have crashed).
Today it happened for the third time. What it is? Why do I need to add a key to ssh-agent every time and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Shumkin, 2018-03-09
@ashumkin

man ssh-agent
man ssh-add
see switch -t life

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question