sshtools / maverick-synergy

Next Generation Java SSH API
https://jadaptive.com
GNU Lesser General Public License v3.0
96 stars 26 forks source link

SFTP subsystem hangs on OpenSSH command line client 'exit' command #26

Closed thorntech closed 3 years ago

thorntech commented 3 years ago

When connecting to SFTP using the OpenSSH command line client, the client hangs indefinitely after issuing the "exit" command. This affects many production scripts that automate file transfers.

Jeffs-MacBook-Pro:myfiles jthorn$ ssh -V
OpenSSH_7.9p1, LibreSSL 2.7.3
Jeffs-MacBook-Pro:myfiles jthorn$ sftp jeff@xxx.xxx.xxx.xxx
Connected to jeff@xxx.xxx.xxx.xxx.
sftp> exit

The client never returns after the exit command.

ludup commented 3 years ago

A fix for this has been committed and will be available in the maven repositories shortly in RC8-SNAPSHOT.

dandalf commented 3 years ago

The fix works well! Thanks @ludup