Actions
Feature #251
closeddocument sudo with keeping SSH key
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
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
Actions