Wanted: Developers!

Allow ssh-agent to work when using sudo

We maintain all of our server's /etc directories in subversion repositories and just disabled password logins on our subversion server. So that means you actually need ssh-agent to work when using sudo. This can be done by editting the /etc/sudoers file and adding the following line:

Defaults env_keep="SSH_AUTH_SOCK"

Thanks

Netherlands x 4, Romania x 1, Germany x 1, France x 1

If you found this post useful, funny or whatever, let us know without writing a full comment!

1 Response to “Allow ssh-agent to work when using sudo”

  1. 1 Peter Abrahamsen

    This only works when becoming root, since the SSH_AUTH_SOCK directory is chmod 0700 and owned by the original user.

Comments are closed.

Comments have been closed for this post.