View Full Version : telnet command dose not work !!
aymandb2002
Hi all ,
i have 2 pc's connected toghter by cross patch cable trough ethernt cards of course. every thing working properly in this small network like ping , ssh ..ftp..etc except telnet command dos not work .
more details :
first pc :
hostname : roombase1
ip address: 192.168.20.1
netmask : 255.255.255.0
broadcast : 192.168.20.255
second pc:
hostname : roombase2
ip address: 192.168.20.25
netmask : 255.255.255.0
broadcast : 192.168.20.255
so if i typed the command the following from the shell :
roombase1:# telnet roombase2
it return me the following message:
telnet : unable to connect to remote host : connection refused
so i do not know what is the problem.
best regards,,
ayman amin
hicham
What distribution are you using, and what is the output of:
netstat -ta
?
Hicham
habdin
Salamo 3alaikom,
Telnet needs a client and a server as far as I know. Is the server running on the destination machine you are trying to connect to?
Salam.
RedHat
telnet : unable to connect to remote host : connection refused
Thats mean the machine you are trying to telnet to does not have the TELENET SERVER running and then connection will be refused.
Make sure that you installed TELNET SERVER first :
rpm -qa | grep telnet
You should see the RPM for telenet-server installed.
Telnet is managed through xinitd where the last one use the tcpwrapper for access control (off topic this anyway). Do something like:
chkconfig telnet on
service xinitd restart
Then you should have the telnet server responding to connection coming in.
aymandb2002
hi all,
my distro is debian woody ver 3.0. also i have typed the command netstat -ta and returns me some results of the the active internet protocols like ssh ..but not inculded the telnet .
also i have tried the command chkconfig telnet on
but it dos not work with me . so how can i install the telnet server on my machine .
best regards,,
ayman amin
mohamed
Why you want telnet ?
I am not trying to limit your options.
But if you don't really want it for specific reasons, cosniders ssh instead.
Regards
uniball
apt-get install telnetd
aymandb2002
hi ,
thanks the telnet server working properly now.thank you for your supporting .
best regards,,
ayman amin
angoranimi
Telnet baaaaaaaaaaaad. Telnet not good for you. Bad bad.
Everything travels in plain-text, among other issues. As mohamed told you, you should really consider installing OpenSSH instead. If you need to access the box from a windows machine just use any of the free SSH clients out there (PuTTY, for example).
aymandb2002
hi ,
ok , i am not using telnet to access linux os from windows or for file transfer but i am using telnet to access linux os from another linux so in this case i can use telnet or ssh the same function .but regarding to try to access linux from windows i am using putty program as you mentioned and also there is another program called netterm and it is a very good progam .
best regards,,
ayman amin
habdin
Salamo 3alaikom,
Telnet is bad as mentioned before Mr. Ayman. The passwords aren't encrypted while travelling from a machine to another be it a Windows machine or a linux one or any machine. The encryption or its lack via telnet is the problem. It is not the OS that is the difference inhere, it is the program itself. SSH is a secure replacement for Telnet. SSH decryption is scarce if not rare and the transmission of passwords over it is secure for you. So be insecure and use telnet.
Salam.
aymandb2002
ok ,
for the time being , iam still using both the ssh and the telnet , but as i have seen that that you do not like for the mentioned reason , i am going to stop working with telnet and just working with the ssh .
best regards,,
ayman amin
habdin
Salamo 3alaikom,
It is up to you to decide to ssh or to telnet. Our role is to give sincere advise.
Salam.
vBulletin v3.0.1, Copyright ©2000-2004, Jelsoft Enterprises Ltd.