LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   let an distant server download something from another server (https://www.linuxquestions.org/questions/linux-software-2/let-an-distant-server-download-something-from-another-server-87355/)

amnesiac 08-30-2003 11:00 AM

ftp downloading on a distant server
 
hello,

i am kind of a n00b when it comes to linux so i hope you guys can help me.

I have a box where i go tno phisical acces, only a ssh prompt. and i want the box to download something from another box (don't have any acces there). the files must be downloaded trough ftp. I also want the files to be stored at a place of my choosing.

if anybody can help me with this i am verry happy.

thnx in advance

jalal 08-30-2003 11:34 AM

do you have an FTP account on the other server ?

if so, you can do something like this:

from the SSH host:

cd to the place of your choosing

ftp (other-host)
(put username and password)
cd (path to file)
bin (if it is a binary file)
hash (if you want to see the progress)
get (filename)
bye (to end connection)

amnesiac 08-30-2003 12:11 PM

thnx jalal for the help but........it doesnt seem to work:S:S
i type this at my shell once i have logged in:

ftp [enter]
the other box's ip [enter]

after this i get an error message, can someone help me out here?

kev82 08-30-2003 12:15 PM

ftp [other machine address] [enter]

amnesiac 08-30-2003 01:19 PM

does it matter that i dont have a hostname, only an ip adress. becouse when i type it in my shell it doesnt respond afterwards i can type ect but it just doesn't respont to command's :S but how do i connect to another port becouse the box listens to port 6969

trickykid 08-30-2003 01:28 PM

ftp IP-of-host 6969

amnesiac 08-30-2003 01:35 PM

never mind, i am connected now thnx for the replies.

so i am connected now but i want to change to directory with a space "site backup" but when i type cd site backup it says
"/site no such file or directory"

i hope you can help me(again :)) with this last question

jalal 08-30-2003 09:18 PM

cd "site backup"

or

cd site\ backup


All times are GMT -5. The time now is 03:17 PM.