LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   ftp client (http://www.linuxquestions.org/questions/linux-server-73/ftp-client-847125/)

maheshp86 11-28-2010 11:25 PM

ftp client
 
Hi all


i am trying to access my ftp server through command line , but it throws the following error

[root@node2 ~]# ftp a1@node1.ping.com
ftp: a1@node1.ping.com: unknown host
ftp>
ftp> by
[root@node2 ~]#
[root@node2 ~]#
[root@node2 ~]# ftp a1@10.10.40.211
ftp: a1@10.10.40.211: unknown host
ftp>
ftp> by
[root@node2 ~]#


but i can able to log into ftp server through
following

[root@node2 ~]# ftp 10.10.40.211
Connected to 10.10.40.211.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (10.10.40.211:root): a1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>



why it is like this ??

pls guide me...

j-ray 11-29-2010 02:05 AM

usage: ftp host-name [port]

That's the synopsis of ftp program. I guess you have to contact the authors of ftp to ask them why. It is not parsing further arguments.

If you use lftp instead you can give some more arguments, i.e. the user...

davinders 11-29-2010 02:15 AM

Pls give the entry in /etc/hosts file of your server....it will work.

x-nc 11-29-2010 07:24 AM

Quote:

Originally Posted by maheshp86 (Post 4174208)
[root@node2 ~]# ftp a1@node1.ping.com
ftp: a1@node1.ping.com: unknown host

but i can able to log into ftp server through
following

[root@node2 ~]# ftp 10.10.40.211
Connected to 10.10.40.211.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (10.10.40.211:root): a1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

why it is like this ??

pls guide me...

The standard ftp client does not accept a username prepended to the address. If you want to log onto a server like this use lftp or ncftp. Or better still, sftp.


All times are GMT -5. The time now is 04:41 AM.