sshlib
sshlib copied to clipboard
SCP: Authentication fails when server outputs 'extra' text
Connecting to a server with extra security modules enabled (e.g. TOTP tokens) and a public key authentication fails.
e.g. getting: IOException: Remote scp sent illegal error code.
On a server whose .bashrc has a cat /root/README | fold -w70 -s
I don't use this part of code with ConnectBot so it's been neglected. There are also no tests for SCP.
If anyone would like to add tests and fix this issue, that would be appreciated.