|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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 | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |