I declare not so stupid unix tricks thread open

Marc Spitzer mspitzer at gmail.com
Fri Mar 14 11:29:38 EDT 2014

We need to share our not so stupid unix tricks.  Here is one:

ssh key access audit script:
for i in $(seq 254) ; do x="192.168.49.$i"; echo -n "$x: " ; ssh -o
PasswordAuthentication=no -o NumberOfPasswordPrompts=0 $x hostname  ;

this will give you one of 3 things:
1: hostname
2: failed login
3: unreachable error

Easy way to find out where your keys work, who's next?

Freedom is nothing but a chance to be better.
--Albert Camus

The inherent vice of capitalism is the unequal sharing of blessings; the
inherent virtue of socialism is the equal sharing of miseries.
-- Winston Churchill

Do the arithmetic or be doomed to talk nonsense.
--John McCarthy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org/pipermail/talk/attachments/20140314/c33e90be/attachment.html>

More information about the talk mailing list