Saturday, February 18, 2012

Configuring SSH: Always Forwarding Your Agent

Configure you ssh agent to always forward and while your at it reuse existing connections to the same server.
  1. Open up your ssh config for editing. (ie. vim ~/.ssh/config)
  2. Add the following entries:
ForwardAgent yes
ControlPath /tmp/m-%l-%r@%h:%p
ControlMaster yes
ControlPersist yes


No comments:

Post a Comment