Hello,

is there a way to receive warning messages when using the SCPClient class?
In case an error occurs (exit status > 1) an ScpException is thrown, but
with exit status 1 (ScpHelper.WARNING) there is only a log written.
In case the upload fails with missing permissions I see it only in the log:

WARNING: readAck(ScpHelper[ClientSessionImpl
[xxx@glekry1/10.64.198.60:22]])[EOF=false] - Received warning:
scp: /root/test4.txt: Permission denied

So from the call of the upload method I cannot decide if the upload really
succeeded and why it failed. Are there other mechanics to do so?

Reply via email to