Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't exit sftpserver if fail to read SSH protocol banner #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ochinchina
Copy link

often get the following errors and the sftpserver exit, we don't want the sftpserver exit if SSH protocol banner not received for one connection.

DEBUG:paramiko.transport:starting thread (server mode): 0x38102dd0L
DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_2.4.1
ERROR:paramiko.transport:Exception: Error reading SSH protocol banner
ERROR:paramiko.transport:Traceback (most recent call last):
ERROR:paramiko.transport: File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 1893, in run
ERROR:paramiko.transport: self._check_banner()
ERROR:paramiko.transport: File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 2049, in _check_banner
ERROR:paramiko.transport: 'Error reading SSH protocol banner' + str(e)
ERROR:paramiko.transport:SSHException: Error reading SSH protocol banner
ERROR:paramiko.transport:
Traceback (most recent call last):
File "/usr/bin/sftpserver", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/sftpserver/init.py", line 96, in main
start_server(args.host, args.port, args.keyfile, args.level)
File "/usr/lib/python2.7/site-packages/sftpserver/init.py", line 60, in start_server
transport.start_server(server=server)
File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 614, in start_server
raise e
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant