user2915882
user2915882

Reputation: 69

Is it possible to wget using credentials?

Suppose I want to wget s file from a site but that site requires me to login first to download file. So is it possible to login on that server/site using SSH and wgeting that file from that logged user account? Or is it insane?

Upvotes: 0

Views: 828

Answers (1)

user2152081
user2152081

Reputation: 866

I don't believe it is possible/easy to use wget to do what you ask. I imagine what you're looking for Secure Copy (SCP). You can use SCP as follows:

scp user@host:/path/to/file /destination/file.

Source: http://en.wikipedia.org/wiki/Secure_copy or http://linux.die.net/man/1/scp

Upvotes: 1

Related Questions