- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- root account can ssh, but can't telnet, why ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:39 AM
08-20-2004 05:39 AM
Now I can use ssh to login to Redhat with root account, but when I try to telnet, it failed:
# telnet host1
Trying...
Connected to host1
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON
Red Hat Enterprise Linux ES release 3 (Taroon Update 2)
Kernel 2.4.21-15.0.3.ELsmp on an i686
login: root
Password:
Login incorrect
I have setup telnetd properly.
And I can login the system with "oracle", both ssh and telnet.
Why just "root" doesn't work ?
Thanks !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 06:58 AM
08-20-2004 06:58 AM
Re: root account can ssh, but can't telnet, why ?
For ssh this config is set through the sshd_config file abd you can say NO to PERMIT ROOT LOGINS
For the telnet, check the /etc/securetty file and see if root logins are on console only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 04:29 PM
08-20-2004 04:29 PM
SolutionIf it contains an entry as,
console
It will deny to login as root on telnet login service.
You can knew it more on login man page.
HTH.
+muthu+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2004 01:02 AM
08-21-2004 01:02 AM
Re: root account can ssh, but can't telnet, why ?
pts/0
pts/1
pst/2
pts/3
and so on ...
untill at least
pts/20
to /etc/securetty
remember though that this is very unsecure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2004 05:59 AM
08-21-2004 05:59 AM
Re: root account can ssh, but can't telnet, why ?
telnet, as it channels everything through clear, exposes any passwords sent over it to snooping. root password + exposed in clear = very bad things
SSH encrypts everything. so it doesn't have this issue.
i think you'll need to do one of the following:
1) telnet as some other normal user and su (recomended)
2) do as the last post states and change the secure tty behavior (not recomended).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2004 09:24 AM
08-21-2004 09:24 AM
Re: root account can ssh, but can't telnet, why ?
as everybody mentioned the problem is with /etc/securetty file only. but considering the security factor don't put pseudo terminal types in /etc/securetty file. it is always recomended to login as a normal user and then do a su - (switch user) from there.
regards
uk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2004 05:19 AM
08-22-2004 05:19 AM
Re: root account can ssh, but can't telnet, why ?
if this is an internet facing host, using telnet is asking to be hacked.
most versions of redhat (and all other secure by default systems) ship with telnet disabled. SSH is MUCH MUCH (repeat, ad infinitum) MUCH better.
infact, most secure by default installs don't even trust the TTYs, as they're unencypted and can be snooped also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 05:15 PM
08-26-2004 05:15 PM
Re: root account can ssh, but can't telnet, why ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 04:07 AM
09-21-2004 04:07 AM
Re: root account can ssh, but can't telnet, why ?
Securing SSH
In the /etc/ssh/sshd_config file change the following lines (if it is commented out, remove
the #):
Protocol 2
PermitRootLogin no
PermitEmptyPasswords no
Reboot your system (you installed a new kernel when you updated the installation, and
changed the SSH config, so a reboot is necessary).
By default Linux does have a /etc/securetty file, if this file exist root cannot telnet, if the file exists telnet is allowed:
I don't recommend connection via root either way, especially if system is exposed to the world. SSH can be root compromised, as can telnet. Why risk it?
If you must use root, be on the console OR
su -
It's plain lazy to not do that. And can jeopardize your livelihood.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 08:16 AM
09-21-2004 08:16 AM
Re: root account can ssh, but can't telnet, why ?
Not disabling root ssh is not. Secure Shell transmits passwords in encrypted format. If they are sniffed they are useless to whoever gets them.
For more security you can exchange public keys with the document I'm attaching as a courtesy.
The bottom line is root needs shell access between systems. It is not laziness to allow that.
I suggest if the author doesn't want this thread popped to the top again since its obviously got a solution in it that he or she close it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 08:30 AM
09-21-2004 08:30 AM
Re: root account can ssh, but can't telnet, why ?
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:46 PM
10-06-2004 06:46 PM
Re: root account can ssh, but can't telnet, why ?
1) # mv /etc/securetty /etc/securetty.ORIG
2) In file /etc/xinetd.d/krb5-telnet
replace disable = yes with disable = no
3) And than reload xinetd on command prompt:
# service xinetd reload
I hope this will help!
Regards,
Sergej