HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- prevent ssh from login as root
Operating System - Linux
1829428
Members
2889
Online
109991
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-08-2003 11:43 AM
09-08-2003 11:43 AM
Hi all:
Got RedHat versions 7 and above.
Received info on pam/su stuff to prevent non-wheel group members from becoming root. Have setup the securetty file.
I also have ssh 3.5.1p1 installed on the Linux systems and on HPUX 11.00.
I am still able to ssh root@linux from the HP system. I need to stop this from happening. I want to block ssh root@linux and force the users to login as themselves 1st then become root (if a member of wheel).
How can I stop ssh root@linux?
Many thanks!
Got RedHat versions 7 and above.
Received info on pam/su stuff to prevent non-wheel group members from becoming root. Have setup the securetty file.
I also have ssh 3.5.1p1 installed on the Linux systems and on HPUX 11.00.
I am still able to ssh root@linux from the HP system. I need to stop this from happening. I want to block ssh root@linux and force the users to login as themselves 1st then become root (if a member of wheel).
How can I stop ssh root@linux?
Many thanks!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2003 11:57 AM
09-08-2003 11:57 AM
Re: prevent ssh from login as root
My first thought would be to eliminate this direcotry:
$HOME/.ssh
Or just change the permissions to 000
Just do that on any box you want to stop ssh root logins in roots home directory.
I think at that point you will get authentication errors if you try and ssh as root.
If you exchange public keys between the machines, you can safely run ssh between boxes. I'm sure you have a reason for doing this, Secure Shell is safe for root. As far as I know anyway.
SEP
$HOME/.ssh
Or just change the permissions to 000
Just do that on any box you want to stop ssh root logins in roots home directory.
I think at that point you will get authentication errors if you try and ssh as root.
If you exchange public keys between the machines, you can safely run ssh between boxes. I'm sure you have a reason for doing this, Secure Shell is safe for root. As far as I know anyway.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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-08-2003 12:25 PM
09-08-2003 12:25 PM
Re: prevent ssh from login as root
Did some digging, found it.
In the /etc/ssh/sshd_config file is an entry for PermitRootLogin - set this value to no.
In the /etc/ssh/sshd_config file is an entry for PermitRootLogin - set this value to no.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 01:01 AM
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP