diff --git a/examples/test/test_baresshd.py b/examples/test/test_baresshd.py index 7888e74..251b75d 100755 --- a/examples/test/test_baresshd.py +++ b/examples/test/test_baresshd.py @@ -59,7 +59,7 @@ class testBareSSHD( unittest.TestCase ): def tearDown( self ): # kill the ssh process - sh( "ps aux | grep 'ssh.*Banner' | awk '{ print $2 }' | xargs kill" ) + sh( "ps aux | grep ssh |grep Banner| awk '{ print $2 }' | xargs kill" ) cleanup() # remove public key pair sh( 'rm -rf /tmp/ssh' )