It appears the SCP service from Juniper devices does not support some of the command switches that are passed on default.
Is there a way to control the parameters without re-compiling the application?
When the SCP command is sent using PSCP this is what is present:
command=scp -f ns_sys_config
2012-12-05 10:03:44 system notif 00026 SCP: Admin user transferred file 'ns_sys_config' from device to host xxx.xxx.xxx.xxx.
When sent with the library ScpClient the following is sent:
command=scp -qf "ns_sys_config"
2012-12-05 10:35:04 system warn 00528 SCP: Admin at host xxx.xxx.xxx.xxx executed invalid scp command: 'scp -qf "ns_sys_config"'.
I'm not completely sure what the -q flag does, but its pretty evident that these devices don't support it.
Side note - this is my first post in the community but I want to give a shout out on the awesome work done on this library. It has really been helpful.