Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-25-2003, 03:21 PM
|
#1
|
Member
Registered: Apr 2003
Posts: 78
Rep:
|
Ssh , Download File
Hey,
Im wondering if you guys could tell me how i would download a file from a ftp or http thru ssh.
I have ssh but i dont knwo the command to download a file, if sum1 could help me / post an example i would be over the moon

|
|
|
08-25-2003, 03:35 PM
|
#2
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
help ?
|
|
|
08-25-2003, 03:36 PM
|
#3
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
Strange question.
|
|
|
08-25-2003, 03:36 PM
|
#4
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
You can use sftp (secure FTP) instead.
sftp is a FTP program which performs all operations over an encrypted ssh tunnel.
Last edited by Mathieu; 08-25-2003 at 03:37 PM.
|
|
|
08-25-2003, 03:37 PM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
If you mean you've been connecting to an ssh server and working on it remotely through ssh then you could try using the sftp command to connect to it giving ftp functionality
|
|
|
08-25-2003, 03:39 PM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
i dont really understand what you mean.
are you saying you have a machine running an ssh server and want to download files from it? in this case you want scp/sftp in linux and pscp/psftp in windows
or are you asking how to download from a site using ssh, you can only do this if the site supports it like https:// for secure http
i dont mind bumping but please dont do it after 15 minutes, give it a few days.
|
|
|
08-25-2003, 03:47 PM
|
#7
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
im trying to remotely download a file. i have ssh to the box i want to download the file to.
|
|
|
08-25-2003, 04:01 PM
|
#8
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
help ?
|
|
|
08-25-2003, 04:09 PM
|
#9
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
Quote:
i dont mind bumping but please dont do it after 15 minutes, give it a few days.
|
nor 14 minutes.
Mathieu's suggestion should work but you can use scp instead if you like
scp username@host:/path/to/file /path/to/dest
|
|
|
08-25-2003, 04:10 PM
|
#10
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Ehm, we suggested sftp, try that
instead of ssh what_ever_the_computer_is
do
sftp what_ever_the_computer_is
|
|
|
08-25-2003, 04:10 PM
|
#11
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Don't connect with SSH.
Use sftp. It works like any other FTP software.
Last edited by Mathieu; 08-25-2003 at 04:11 PM.
|
|
|
08-25-2003, 04:25 PM
|
#12
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
Oh im still confused i just want to get a file from an anonymous ftp can some1 please give me an example to a file.
All i know is how to connect to the ssh. And get the prompt up.

|
|
|
08-25-2003, 04:29 PM
|
#13
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you want to get one file currently on a remote server to a local machine via the ssh protocol? easy... just use sftp or scp.
sftp user@mysite.com
scp user@mysite.com:/home/user/blah .
|
|
|
08-25-2003, 04:45 PM
|
#14
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
So to download a file to my box in the telehouse thru ssh i would ?
say i wanted to get a file from downlaod.com or summit
|
|
|
08-26-2003, 02:14 AM
|
#15
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
Bah,
I have ssh to a box in the telehouse, i want to use ssh to download a file to the box using its connection, how would i got about it?
|
|
|
All times are GMT -5. The time now is 02:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|