Project

General

Profile

Feature #251

document sudo with keeping SSH key

Added by Florian Effenberger almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Tags:
Documentation
URL:

Description

In order to keep your SSH agent forwarding when becoming root, this rather weird command line works

sudo su -l -c "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK; bash"

It should be documented somewhere

Also available in: Atom PDF