From 9cc9a491a8709a8242ee77cdc798aa01783f70dd Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 18 Sep 2013 20:53:54 -0700 Subject: [PATCH] Avoid reverse DNS lookup --- examples/baresshd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/baresshd.py b/examples/baresshd.py index 081a812..6831617 100755 --- a/examples/baresshd.py +++ b/examples/baresshd.py @@ -28,7 +28,7 @@ f.write( 'Welcome to %s at %s\n' % ( h1.name, h1.IP() ) ) f.close() print "*** Running sshd" -cmd = '/usr/sbin/sshd -o "Banner /tmp/%s.banner"' % h1.name +cmd = '/usr/sbin/sshd -o UseDNS=no -u0 -o "Banner /tmp/%s.banner"' % h1.name # add arguments from the command line if len( sys.argv ) > 1: cmd += ' ' + ' '.join( sys.argv[ 1: ] )