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.
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.
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.
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??
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.
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??
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.
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
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
Sorry my fault - yast2-tftp-server-2.13.4-0.11 is no ftp-server in the way you expect. Maybe you get/install one of these servers:
ftpd
proftpd
vsftpd
wu-ftpd
Lukemftp is a ftp client.