Web Hosting Talk







View Full Version : RaQ3. Download file using SSH?


horoscopes2000
05-24-2002, 09:54 PM
Hi, when I'm wandering about SU'd as root, sometimes I want to save a file to my local computer. If I try to FTP I frequently end up with permission problems.

So, is there a command I can use to save , for instance, /var/log/maillog.1.gz to my PC ?

Also, is 1.gz replaced by 2.gz, or does 1.gz simply get written over?

Reg
05-24-2002, 11:14 PM
The easiest thing to do would be to copy the file to a web directory and download it versus trying to remote copy through SSH (the reason is because you would have to download some extra features to SSH).

To do this, just type:

cp -Rf /var/log/maillog.1.gz /path/to/domain

cbtrussell
05-24-2002, 11:33 PM
you could also use PINE as admin,

and attach whatever file you wanted to an email.

Brandon

hosting_ie
05-27-2002, 04:30 AM
To get around the ftp permission problems, copy the file to /home/sites/home/users/adminand chown admin.admin them.

That way, yu can ftp in as admin, and the files will be in the default directory, with correct permissions for download.

(or you can open a browser to server.com/~admin/filename and download over http,

HTH,
Steve

horoscopes2000
05-27-2002, 04:10 PM
Thanks Steve, I'll give that a try. :o)