xzegga
xzegga

Reputation: 3149

how to download file from cpanel account to another cpanel account

I trying to download a file from SSH of cpanel account that is hosted in another cpanel account, but this file can be downloaded only if I am logged in source cpanel account, I am connecting with SSH on WinCSP client, and run this command but return access denied.

This is the command line:

wget --user myusername --password mypassword http://www.domainname.com:2082/cpsess45379/getbackup/backup-domainname.com-2-23-2016.tar.gz

I am not a linux expert, can you help me telling me what is the problem? this is the response from SSH:

enter image description here

Upvotes: 4

Views: 4431

Answers (3)

Ramesh
Ramesh

Reputation: 1

wget -O test.zip --http-user=cpanelusername --http-password=cpanelpassword 'https://example.com:2083/cpsess3xxx/frontend/vvv/dailybackups/index.live.php?r=operations%2FdownloadResult&guid=14ba2e23-bf42-49c8-9cab-e0906c21b2b4' --auth-no-challenge (test.zip, is the filename you want to give to the downloaded file, enclose the URL in single quotes)

Upvotes: -1

xzegga
xzegga

Reputation: 3149

I finally get archieve this, the way to log in cpanel and download the file is as follows:

wget -O /dev/null --http-user=##UserName## --http-password=##Password## http://www.domainname.com:2082/cpsess345308509/getbackup/backup-yourdomainbackup.com-2-23-2016.tar.gz --auth-no-challenge

With the --auth-no-challenge option I fixes the following issue:

HTTP request sent, awaiting response... 401 Access Denied
Unknown authentication scheme.
Authorization failed.

According wget manual, if this option is given, Wget will send Basic HTTP authentication information (plaintext username and password) for all requests, just like Wget 1.10.2 and prior did by default.

Upvotes: 8

24x7servermanagement
24x7servermanagement

Reputation: 2540

Can you please give a try with the following command.

wget ftp://SERVER-IP/public_html/FILEPATH/FILENAME.tar.gz --ftp-user=cP-USER --ftp-pass=PASSWORD

Upvotes: 0

Related Questions