- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable telnet enable ssh
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
07-29-2004 10:44 PM
07-29-2004 10:44 PM
i am currently using hp-ux 11.00 and have this set-back.
i would like to enquire about
1)how do i enable ssh to allow only users to access the system and not the root account to enter the system?
2)how can i disable telnet function on the HP-UX 11.00 system and enable ssh instead?
Regards,
Calvin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:00 PM
07-29-2004 11:00 PM
Re: Disable telnet enable ssh
To avoid that users can not do "su - root" from system prompt, add in the /etc/defaul/security file the following line:
SU_ROOT_GROUP=
Where
Other way could be the /etc/securetty file, where indicate the valid devices (tty's or console) to allow root's logings.
Telnet is a service, and ssh is a command interpreter, both of them are complementary and not excluding. You could change a standar command interpreter by secure shell (ssh), but all of them always needs telnet services, at least on LAN environments.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:10 PM
07-29-2004 11:10 PM
Re: Disable telnet enable ssh
In the /etc/inetd.conf you can disable the telnet line ( # in front of it ).
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:17 PM
07-29-2004 11:17 PM
Re: Disable telnet enable ssh
In any case, if you need restric the telnet service you can configure the /var/adm/inetd.sec file. For detail pls "man inetd.sec". Also other services like ftp, rmsh/rcp can be restricted by this file.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:20 PM
07-29-2004 11:20 PM
Re: Disable telnet enable ssh
in order to disable telnet you have to comment out the line of telnet service in /etc/inetd.conf:
# telnet stream tcp nowait root /usr/lbin/telnetd telnetd
About ssh: you should be able to use it just after the installation of the ssh package. Sincerely I don't know if it is possible to deny root access and permit other users.
I think /var/adm/inetd.sec wher you can deny ssh service by IP address/hostnames but it is not possible by usernames.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:21 PM
07-29-2004 11:21 PM
Solution2) you can disable the telnet function by putting the following line in /var/adm/inetd.sec:
telnet deny
Enabling ssh is part of the installation process whereby you need to authenticate each each remote host on the local server and copy the authorized_keys file into the .ssh directory of each remote host. The product should come with full installation guides I think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:30 PM
07-29-2004 11:30 PM
Re: Disable telnet enable ssh
So why do not you try to block the users to use telnet with inetd.sec file. Give ip-address or hostname in that file and block them to use telnet.
To make the users to use with user accounts to login only, create a file as
echo "console" > /etc/securetty
login security will be in effect now.
See login man page to know securetty more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:39 PM
07-29-2004 11:39 PM
Re: Disable telnet enable ssh
to disable telnet comment following line in
/etc/inetd.conf
telnet stream tcp nowait root usr/lbin/telnetd telnetd
and
restart inetd by inetd -c
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:39 PM
07-29-2004 11:39 PM
Re: Disable telnet enable ssh
And more SU_ROOT_GROUP parameter will not be helpful to stop the root logins. It will be used to stop the users to use su to promote as users.
To block root logins using ssh, tune
PermitRootLogin=0 on sshd_config file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 11:43 PM
07-29-2004 11:43 PM
Re: Disable telnet enable ssh
Modify /etc/inetd.conf. Put a # infront of the line that starts with telnet.
If implementing ssh you may also want to disable the r-commands (rlogin, remsh, etc) since ssh is a replacement for these as well. The valid lines are login (for rlogin), shell (for remsh), and exec.
FTP as well though this may be more difficult if you use ftp from a PC which does not support sftp or scp.
Once you make these changes, you need to have inetd re-read it's configuration file.
Send it a SIGHUP command or issue the command inetd -c to get it to reread it's configuration.
To prevent direct login via ssh, you need to modify the /opt/ssh/etc/sshd_config script. Make sure there is a line that says PermitRootLogin no is not commented. You will need to restart ssh (/sbin/init.d/secsh stop, /sbin/init.d/secsh start)