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
Updated by Guilhem Moulin over 4 years ago
- Status changed from New to Closed
Closing this as wontfix, IMHO agent forwarding is madness security-wise (so is X forwarding) and we shouldn't encourage its use. In fact it's been mostly disabled through ssh_config
3 years ago.
Actions