I am trying to use Jsch to transfer files using SFTP.
All works fine until I connect through a SOCKS4 proxy. Looking at the
bytes read in it appears that the proxy is prepending two bytes to the
input stream which means that the handshake no longer works as it is
expecting to read SSH ( I can fix this but subsequent calls to the buffer
cause similar problems).
Has anyone else come across this problem when using a SOCKS4 proxy or have
an idea to get round the problem?