diff --git a/connect.py b/connect.py index 7a9328a79..4735a172c 100755 --- a/connect.py +++ b/connect.py @@ -129,7 +129,7 @@ def connect(username, password, host, port): posix_shell(channel, username, host) # shutdown channel socket - channel.shutdown() + ssh.close() if __name__ == '__main__':