Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hi
I install a telnet server, when a login it I is login through a user but it is give a message the connection closed by foregin when i login it through root. then right now I am first login it through a user then using su - command I am entering in root is there is another way to login in root

Hi,
you cannot directly login as root through telnet. This is a part of the protocol itself purely due to security reasons. Otherwise people may run some scripts that will try all combinations of characters as the password until it is able to login and hence retreive your root password. Fortunately, as logging in as root is prohibited through telnet, the scripts written by the crackers have to guess both username as well as password, which is quite tough if not impossible..

Root can login through telnet session, but by default it is disabled. You can enable by appending /etc/securetty file
open /etc/securetty using vi
#vi /etc/securetty
pts/0
pts/1don't remove anything from this /etc/securetty , just append your entries.
Ravindra Solanki
MCA,RHCE
Programmer-cum-Administrator
State Bank Of India, CBD Belapur
Email : ravindra.solanki@sbi.co.in

It is better not to allow telnet login for root(If the machine is exposed to internet). There are thousands of hackers around trying various combinations of username and password. So, better use the ssh for root login from a remote machine.
ctj

All the "hackers" trying username and password combinations on port 23 (telnet) are also probably trying the same combinations for port 22 (SSH) and any other services that may be available. The benefit of running SSH over telnet is that when logging in (as root or any other user) the password is not transmitted in plain text and is therefore much harder to sniff off the network.
I personally disable root login for SSH too in favour of using sudo or su as a regular user as I often get script kiddies hammering on my SSH door trying to login with default usernames (root, administrator, guest etc)

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |