How to ftp from linux

Hi,

I have ftp address like below

ftp://user:password@ee.com

I want to upload one file from my linux machine to above ftp site. How can I login, change mode to binary and upload file to this site?

Thanks.
James BondSoftware ProfessionalAsked:
Who is Participating?
 
Garry GlendownConsulting and Network/Security SpecialistCommented:
$ ftp ee.com
Name: user    <- from the URL
Password: password    <- from the URL
ftp> bin
ftp> cd DESTINATINDIRECTORY
ftp> put FILENAME_TO_TRANSFER
ftp> quit

Open in new window


(depending on the server and your link, you might need something like "passive off" after logging in)
0
 
James BondSoftware ProfessionalAuthor Commented:
ftp://user:password@ee.com is just a site for example and not a real site. Thanks.
0
 
James BondSoftware ProfessionalAuthor Commented:
I get this error

ftp: Name or service not known
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Garry GlendownConsulting and Network/Security SpecialistCommented:
Either you have the wrong destination address ("ee.com" in this case) which doesn't exist, or your name resolver/DNS lookup doesn't work ... I assume doing "ping ee.com" (or whatever the server address is that you have) doesn't work and results in something like "ping: unknown host ee.com" ... try some well-known address, e.g. "ping cnn.com" ... if that also results in the "unknown host", your lookup/DNS is broken or unconfigured ... if that works, the address you have is wrong ...
0
 
wvuser1Commented:
You could try enter this command:
sudo apt-get install ftp

Open in new window

To install ftp client, and then follow Garry's recomendation..
(Hope the linux distro is the one i imagined ^^)
0
 
Garry GlendownConsulting and Network/Security SpecialistCommented:
Actually I guess FTP client is already installed, otherwise he would have gotten something like "-bash: ftp: command not found
" ... ;)
0
 
wvuser1Commented:
ahh, right; my bad ^^
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Try connecting to a known site like the McAfee FTP site, using name and ip:
ftp ftp.mcafee.com
Connected to ftp.mcafee.com.
220 ProFTPD 1.3.3 Server ready.
...

Open in new window

or:
ftp 32.58.157.237
Connected to 32.58.157.237.
220 ProFTPD 1.3.3 Server ready.
...

Open in new window

Can you connect?
0
 
James BondSoftware ProfessionalAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.