Clean up sshd.py and its test so it works on VirtualBox

This commit is contained in:
Bob Lantz
2013-09-18 20:48:22 -07:00
parent 568f6424e5
commit 76a8a1637f
2 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class testSSHD( unittest.TestCase ):
sh( 'cat /tmp/ssh/test_rsa.pub >> /tmp/ssh/authorized_keys' )
cmd = ( 'python -m mininet.examples.sshd -D '
'-o AuthorizedKeysFile=/tmp/ssh/authorized_keys '
'-o StrictModes=no' )
'-o StrictModes=no -o UseDNS=no -u0' )
# run example with custom sshd args
self.net = pexpect.spawn( cmd )
self.net.expect( 'mininet>' )