I want to screw ssh-agent.I use eval `ssh-agent -s`.
The problem is that export does not work the way we want.
If in the same tab after eval `ssh-agent -s` set set | grep ssh _, then the set variables are output.
I open a new window - there are no variables.

What to do?

1 Answers 1

if in a simple way, there is no way: export works within the current shell(and its descendants), and different tabs=different/independent shells.

as an option - to write these variables to a file that is included in the profile/RC file.
  • hmm..Preskorbno ..
    Although there is an idea to push the ssh-agent exhaust into any file, and then upload it via source in .bashrc
    – Mystery43 Aug 30 '17 at 04:08
  • Mystery43: so I wrote about this in the last sentence) – Transvestite61 Aug 30 '17 at 04:10
  • Transvestite61: it's just that the entire answer was not displayed in the letter.So I answered only the first part :) – Mystery43 Aug 30 '17 at 04:21
  • Transvestite61: anyway, thanks for the help – Mystery43 Aug 30 '17 at 04:22
  • Mystery43: please) – Transvestite61 Aug 30 '17 at 05:05