Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-11-2009
Registered User
 

Join Date: Feb 2009
Location: India
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
  #2  
Old 03-12-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 

Join Date: Sep 2007
Location: Germany
Posts: 3,502
Thanks: 14
Thanked 76 Times in 74 Posts
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
Registered User
 

Join Date: Feb 2009
Location: India
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
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
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 

Join Date: Sep 2007
Location: Germany
Posts: 3,502
Thanks: 14
Thanked 76 Times in 74 Posts
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
Registered User
 

Join Date: Feb 2009
Location: India
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
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
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 

Join Date: Sep 2007
Location: Germany
Posts: 3,502
Thanks: 14
Thanked 76 Times in 74 Posts
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 Leaving them out like in your second try is ok too.
  #7  
Old 03-13-2009
Registered User
 

Join Date: Feb 2009
Location: India
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
locate command doubt !!! nsharath Shell Programming and Scripting 5 01-19-2009 10:03 PM
doubt in banner command !!! nsharath Shell Programming and Scripting 4 01-17-2009 09:26 AM
doubt in tr command risshanth UNIX for Dummies Questions & Answers 2 02-25-2008 09:20 AM
Doubt in SED command gksenthilkumar UNIX for Advanced & Expert Users 1 02-19-2008 01:20 PM
doubt in cal command sumi AIX 9 03-03-2006 11:33 AM



All times are GMT -4. The time now is 02:31 AM.