What's new

Curl to download logfile (syslog.txt)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

That won't work because the router does not use HTTP Basic Auth, but a custom token-based authentication.
 
I believe curl supports scp and sftp.

Code:
# curl -u admin:password scp://192.168.1.1/tmp/syslog.log -O
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  212k  100  212k    0     0   948k      0 --:--:-- --:--:-- --:--:--  948k
100  212k  100  212k    0     0   943k      0 --:--:-- --:--:-- --:--:--  943k
 
Last edited:
We have liftoff:
Code:
curl -k --user user:pass scp://10.10.333.111:22/tmp/syslog.log -o syslog.log
Or for port 443
curl -k --user user:pass scp://10.10.333.111:443/tmp/syslog.log -o syslog.log
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top