Updated sshserver.py

pull/12/merge
Sheng 2018-04-27 14:41:08 +08:00
parent 330145484d
commit c70117e590
1 changed files with 3 additions and 0 deletions

View File

@ -115,7 +115,10 @@ def run_ssh_server(port=2200, running=True):
chan.send('\r\n\r\nWelcome!\r\n\r\n')
if username == 'bar':
print(chan.recv(1024))
chan.close()
t.close()
client.close()
try:
sock.close()