Project

General

Profile

Actions

Feature #251

closed

document sudo with keeping SSH key

Added by Florian Effenberger about 10 years ago. Updated over 4 years ago.

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

0%

Tags:
Documentation

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 #1

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

Also available in: Atom PDF