Bluehost.com Web Hosting $6.95

Re: openssh-agent polling

This is a discussion on Re: openssh-agent polling within the OpenSSH Development forums, part of the Networking and Network Related category; On 09/17/07 00:47, Damien Miller wrote: > On Sun, 16 Sep 2007, Jefferson Ogata wrote: > >&...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2007
Jefferson Ogata
 
Posts: n/a
Default Re: openssh-agent polling

On 09/17/07 00:47, Damien Miller wrote:
> On Sun, 16 Sep 2007, Jefferson Ogata wrote:
>
>> if [ -z "$SSH_AUTH_SOCK" ]
>> then
>> for x in /tmp/ssh*/agent*
>> do
>> if [ -S "$x" -a -O "$x" ]
>> then
>> SSH_AUTH_SOCK="$x" ssh-add -l >/dev/null 2>&1
>> if [ $? -ne 2 ]; then
>> SSH_AUTH_SOCK="$x"
>> export SSH_AUTH_SOCK
>> break
>> fi
>> fi
>> done
>> fi

>
> This might connect you to a hostile ssh-agent that harvests your keys.


That's precisely what the -O "$x" is there to prevent.

--
Jefferson Ogata <Jefferson.Ogata@noaa.gov>
NOAA Computer Incident Response Team (N-CIRT) <ncirt@noaa.gov>
"Never try to retrieve anything from a bear."--National Park Service
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0