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:
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.