Doubt with ftp command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Doubt with ftp command
# 1  
Old 03-12-2009
Doubt with ftp command

Hi linux experts,

I am using ftp command as :

ftp hostname

but it says unable to connect,
if i am using the same in sftp it is working :

sftp hostname
it works.


so please help me how should i use ftp command.
# 2  
Old 03-12-2009
Seems as your target has a ssh-demon up and ftp maybe disabled. Your syntax for ftp to connect is correct. Check your target or ask the admin of your target if ftp is available at all or if ftp is assigned to another port.
ftp is not encrypted, so many tend to use ssh/scp/sftp instead since it is encrypted.
# 3  
Old 03-12-2009
Thanks zaxxon thanks alot.

I think you are right ftp server is not installed because i tried :

rpm -qa|grep -i "*ftp*"

i didn't get any output.

But still my doubt is if ftp is refused connection then how sftp works??
# 4  
Old 03-12-2009
Either a ftp demon runs on it's own or is usually being managed by a superdemon like inetd or xinetd and their according config files you could check, whichever you use of these 2.

ssh, scp and sftp run against a sshd. Usually you can see it running permanently with "ps -ef| grep sshd" for example.
sftp is just a ftp like frontend for scp afaik.
So if sshd is up and running, maybe just kick the sftp idea overboard and use scp which might be easier.
# 5  
Old 03-13-2009
One last doubt sir,

When i used : rpm -qa| grep -i "*ftp*"
I didn't get any output then i thought ftp server has not installed, but now i have used : rpm -qa|grep ftp and the output i got is -

lukemftp- 1.5-598.2
yast2-tftp-server-2.13.4-0.11

so, with this output Can you say that FTP is installed in my OS??
# 6  
Old 03-13-2009
Yes, you seem to have a ftp client and server installed.

When using grep, dont use just "*" for any or none character, but ".*". This is the correct syntax. This is not DOS Smilie Leaving them out like in your second try is ok too.
# 7  
Old 03-13-2009
But Sir, I have checked that in:

lukemftp- 1.5-598.2
yast2-tftp-server-2.13.4-0.11


lukemftp & yast2-tftp are not exactly ftp command, lukemftp
is enchnced ftp on other hand tftp is trivial file transfer protocol.


so, if my output was:




rpm -qa|grep ftp and the output i got is -

lukemftp- 1.5-598.2
yast2-tftp-server-2.13.4-0.11

Now i am confuse with all those sir,and still ftp command shows:
refuse connection.

please enlighten me if yast2 is tftp server and lukemftp both are different from ftp , it means my OS has not installed with ftp server??

please make me confusion free
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Doubt in ls command

dear users and experts, i am stuck withis command and i am unable to understand what is it doing?? ls -d * (7 Replies)
Discussion started by: seshank
7 Replies

2. Shell Programming and Scripting

Doubt in .netrc file for ftp login

Hi, i have a doubt. i am using .netrc file for login to a ftp server. ftp abc.ftp.com suppose i have 2 userid and password for the same server as shown below. which one is it going to read from the .netrc file? cat .netrc machine abc.ftp.com login admin1 password pass1 machine... (13 Replies)
Discussion started by: Little
13 Replies

3. Shell Programming and Scripting

Doubt in xargs command

Hi, What is the difference in capitalizing the option 'i' of xargs command, (i.e) xargs -i and xargs -I? Also, what is the difference between the below 2 commands? output_from_cmd | xargs -I {} grep '{}' file output_from_cmd | xargs -I grep '{}' file Any efficiency or performance... (4 Replies)
Discussion started by: royalibrahim
4 Replies

4. Shell Programming and Scripting

sed command doubt

i have input files like this SFE_DOC_DATE (SFE_DOC_DATE:UniChar.:): "04/18/20" SFE_PSTNG_DATE (SFE_PSTNG_DATE:UniChar.:): "04/18/20" SFE_CREATEDON (SFE_CREATEDON:UniChar.:): "05/31/20" SFE_CLEAR_DATE (SFE_CLEAR_DATE:UniChar.:): "(NULL)" SFE_CLR_DOC_NO... (3 Replies)
Discussion started by: Gopal_Engg
3 Replies

5. Shell Programming and Scripting

doubt in banner command !!!

hello, I am using banner command in my shell.I used :- The problem is that the output is printed in 3 separate lines.I want to display it in a single line.If the size is not enough then at least 2 words should come in the same line. Can you tell me what is the option in banner that would help... (4 Replies)
Discussion started by: nsharath
4 Replies

6. Shell Programming and Scripting

doubt in grep command

Hello i am new shell scripting. I have a file like this, $ cat myfile ;/abc/abc.cpp@@/main/1;xyz ;/abc/abc.cpp@@/main/2;usr2 ;/abc/abc.cpp@@/main/1;abc ;/abc/abc.cpp@@/main/2;usr2 ;/abc/abc.cpp@@/main/1;usr1 when i grep the file. $ grep "abc" myfile... (8 Replies)
Discussion started by: tsaravanan
8 Replies

7. UNIX for Dummies Questions & Answers

doubt in tr command

Hi, I am trying to understand a script and found a line as follows: tr '\211\233\240' '\040' < $IN_FILE | tr -cd '\11\12\15\40-\176' > $TEMP_FILE Can any one explain the above line .. What are they trying to translate using the tr command.. I have not used tr command.. so feeling little bit... (2 Replies)
Discussion started by: risshanth
2 Replies

8. UNIX for Advanced & Expert Users

Doubt in SED command

PLEASE EXPLANIN ME... sed 's~\(.*\)\(<name>\)\(.*\)\(</name>\)\(.*\)~\2\3\4~' this is the format <start><name>123<\name><addr>BAC<\addr><loc>sfo<\loc></start> (1 Reply)
Discussion started by: gksenthilkumar
1 Replies

9. AIX

doubt in cal command

I am new to unix... How to get all the saturdays of a specific year? for a specific month, i tried as below.. cal 02 2006 | awk '{print $7}' but it is not giving all saturdays.... can anyone help me with this? Thanks in advance, Sumi (9 Replies)
Discussion started by: sumi
9 Replies

10. Shell Programming and Scripting

ftp doubt

Will the file permissions change when a file is ftp'd from a diferent server to my box. (eg). In the vendor site, the file has 666 permissions and i just get the file. I dont change the permission in the ftp process. my directory has the follwoing permissions - drwxrwsr-x. Will there be any... (0 Replies)
Discussion started by: ranj@chn
0 Replies
Login or Register to Ask a Question