LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 08-25-2003, 04:21 PM   #1
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Rep: Reputation: 15
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





 
Old 08-25-2003, 04:35 PM   #2
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
help ?
 
Old 08-25-2003, 04:36 PM   #3
J_Szucs
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: Reputation: 58
Strange question.
 
Old 08-25-2003, 04:36 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You can use sftp (secure FTP) instead.
sftp is a FTP program which performs all operations over an encrypted ssh tunnel.
Code:
sftp username@mysite.com

Last edited by Mathieu; 08-25-2003 at 04:37 PM.
 
Old 08-25-2003, 04:37 PM   #5
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
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
 
Old 08-25-2003, 04:39 PM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
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.
 
Old 08-25-2003, 04:47 PM   #7
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
im trying to remotely download a file. i have ssh to the box i want to download the file to.
 
Old 08-25-2003, 05:01 PM   #8
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
help ?
 
Old 08-25-2003, 05:09 PM   #9
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
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
 
Old 08-25-2003, 05:10 PM   #10
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Ehm, we suggested sftp, try that

instead of ssh what_ever_the_computer_is

do

sftp what_ever_the_computer_is
 
Old 08-25-2003, 05:10 PM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Don't connect with SSH.
Use sftp. It works like any other FTP software.
Code:
sftp UserName@mysite.com

Last edited by Mathieu; 08-25-2003 at 05:11 PM.
 
Old 08-25-2003, 05:25 PM   #12
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
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.
 
Old 08-25-2003, 05:29 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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 .
 
Old 08-25-2003, 05:45 PM   #14
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 08-26-2003, 03:14 AM   #15
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fast Download Site for Linux, enables >4GB Download of single file TigerLinux Linux - Distributions 9 10-29-2005 01:45 PM
how to remote download file by putty SSH? treotan Linux - Newbie 5 08-02-2004 11:47 PM
where to download SSH and Lynx source files mitchb Linux - Newbie 1 06-23-2004 05:48 AM
Konqueror wont download download TAR,ZIP file but preview Velocide Linux - Newbie 0 03-22-2004 07:07 AM
download via ssh? fbfd1338 Linux - Newbie 3 03-14-2004 08:40 PM


All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration