Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot telnet and ftp but ssh can

Shattia Moorthi
Frequent Advisor

Cannot telnet and ftp but ssh can

hello friends,
I using rx2660 server os hpux 11i v3.
can ping to the server but cannot telnet and ftp.
but we not yet install patches. is that course any problem

please help us
9 REPLIES
Kapil Jha
Honored Contributor

Re: Cannot telnet and ftp but ssh can

normally telnet and ftp are disabled on the server becoause of potential security issues.

So it seems to be OK, to check you should log in server using ssh and check in inetd.conf file telnet and ftp services should be marked as #

BR,
Kapil+
I am in this small bowl, I wane see the real world......
njia_1
Trusted Contributor

Re: Cannot telnet and ftp but ssh can

Hi

can you check /etc/inetd.conf to see if you have these two lines

ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

also do a
netstat -a | grep ftp and can you see anything ?

that is on my system
[mmx4e /etc]# netstat -a | grep ftp
tcp 0 0 *.ftp *.* LISTEN
udp 0 0 *.tftp
*.*

[mmx4e /etc]# netstat -a | grep telnet
tcp 0 0 *.telnet *.* LISTEN
Shattia Moorthi
Frequent Advisor

Re: Cannot telnet and ftp but ssh can

ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
this as marked #

when netstat -a |grep ftp it appear like :-
tcp 0 0 *.ftp *.* listen only this

Kapil Jha
Honored Contributor

Re: Cannot telnet and ftp but ssh can

well there should not be this line,
is ur ftp line commented out

what does
telnet servername 21
telnet servername 23

says are they listening, check with your team if it has to run or not.

if not just mark it hash and run
#inetd -c

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Steven Schweda
Honored Contributor

Re: Cannot telnet and ftp but ssh can

> [...] cannot telnet and ftp. [...]

Not a useful problem description. As usual,
showing actual commands with their actual
output can be more useful than vague
descriptions or interpretations.
Wilfred Chau_1
Respected Contributor

Re: Cannot telnet and ftp but ssh can

is there a firewall sitting in front of this server and blocking ftp & telnet?
Suraj K Sankari
Honored Contributor

Re: Cannot telnet and ftp but ssh can

Hi,
>>ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
this as marked #


This means your ftp and telnet are stoped.

Suraj
Deeos
Regular Advisor

Re: Cannot telnet and ftp but ssh can

Hi,



use the following :

#vi /etc/inetd.conf

and then remove # character at the start of lines:
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

save and exit from the file.

#inetd -C

#/sbin/init.d/net stop
#/sbin/init.d/net start


also check port number through /etc/services

# vi /etc/services
ftp 21/tcp # File Transfer Protocol (Control)
telnet 23/tcp # Virtual Terminal Protocol



it should like as un commented.





Regards
Deeos


when netstat -a |grep ftp it appear like :-
tcp 0 0 *.ftp *.* listen only this
Deepak
Shattia Moorthi
Frequent Advisor

Re: Cannot telnet and ftp but ssh can

dear thanks for yor help