- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- login works via ssh but not via telnet
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
Discussions
Discussions
Forums
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
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
тАО06-16-2009 05:30 AM
тАО06-16-2009 05:30 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:40 AM
тАО06-16-2009 05:40 AM
Re: login works via ssh but not via telnet
Check your /etc/inetd.conf file and look for telnet option i think it has # mark.
Also check /var/adm/inetd.sec file and look any telnet deny is there or not
Hope this help.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:42 AM
тАО06-16-2009 05:42 AM
Re: login works via ssh but not via telnet
Usually now a days sysadmins disable all the traditional insecure services to secure the system.
sunny has given all the correct steps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:43 AM
тАО06-16-2009 05:43 AM
Re: login works via ssh but not via telnet
follow Sunny's steps and also there should be entries in the /etc/services file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:46 AM
тАО06-16-2009 05:46 AM
Re: login works via ssh but not via telnet
Check inetd.conf
Probably telnet is disabled.
netstat -an | grep ":23 "
See if telnet is listening.
If it is, see if inetd.sec is blocking telnet or TCP wrappers configuration is interfering.
Check logs /var/adm/syslog/syslog.log
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
тАО06-16-2009 05:52 AM
тАО06-16-2009 05:52 AM
Re: login works via ssh but not via telnet
I can also telnet to other non-root users without a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:55 AM
тАО06-16-2009 05:55 AM
Re: login works via ssh but not via telnet
> I can also telnet to other non-root users without a problem.
Look for your '/etc/securetty' file. It undoubtedly exists and has a line with the word "console" in it. The presence of this file inhibits root logins to the listed devices.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:55 AM
тАО06-16-2009 05:55 AM
Re: login works via ssh but not via telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 05:59 AM
тАО06-16-2009 05:59 AM
Re: login works via ssh but not via telnet
Shouldn't that entry in /etc/securetty also disable root login via ssh? I can login to the root account via ssh. The console entry is in /etc/securetty, but doesn't stop login from ssh. I also commented it out and still the same results.
That also doesn't really explain why I can login via telnet to some non-root users, but can't with others.
This is also a system that I just inherited, so I didn't set it up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2009 06:08 AM
тАО06-16-2009 06:08 AM
Solution> Shouldn't that entry in /etc/securetty also disable root login via ssh? I can login to the root account via ssh.
No, 'ssh' uses 'PermitRootLogin' in '/opt/ssh/etc/sshd_config'. Change it to "no" (and remove the comment mark) and restart the 'sshd' daemon.
Regards!
...JRF...