Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

There's more...

If you want to add the agent start command to a script (say .bashrc), you may want to automatically evaluate the environment variables given to you. ssh-agent assumes you're starting it this way.

In the manual page for ssh-agent, you even get this tip.

"There are two main ways to get an agent set up: The first is that the agent starts a new sub‐command into which some environment variables are exported, eg ssh-agent xterm &. The second is that the agent prints the needed shell commands (either sh(1) or csh(1) syntax can be generated) which can be evaluated in the calling shell, eg eval 'ssh-agent -s' for Bourne-type shells such as sh(1) or ksh(1) and eval 'ssh-agent -c' for csh(1) and derivatives."

In practice, this means ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content