The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What are the configeration need to done to enable sftp connection to Windows m/c GIC1986 SUN Solaris 15 09-10-2008 04:40 AM
How to Enable TELNET for root user sakthi_13 Linux 3 09-09-2007 02:34 AM
Sun ONE Web Server 6.1 - enable SSL? AJD SUN Solaris 1 05-28-2004 08:42 AM
new office - no network connection! colesy IP Networking 1 03-27-2003 10:55 AM
How to Enable locked root account Syed_45 UNIX for Dummies Questions & Answers 2 10-04-2002 10:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-31-2009
cpolikowsky cpolikowsky is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 8
Enable SSH for root over certain network connection of a server...is it possible?

Hi - I have a SUSE Enterprise Linux Server V9 that I have an issue with. Policy says that root connectivity via ssh needs to be disabled. So, to do that, I made the following change in the sshd_config section:

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6

The issue is that a utility that the vendor uses uses root to connect via ssh across the two servers in our configuration to collect logging and reporting information. when I disable root login in sshd_config, it breaks their utility. I asked why they would have it run as root and not as some privledged account...but I have not received an answer yet. In our configuration, we have 3 networks (2 are private networks and 1 is connectivity to the corporate network.) My question, is it possible to disable root Login via ssh for some network segments but not others?
  #2 (permalink)  
Old 03-31-2009
geekosaur geekosaur is offline
Registered User
  
 

Join Date: Oct 2008
Location: Pittsburgh, PA, USA
Posts: 20
Only by running separate sshds on all network interfaces.

The better way to do this is AllowRootLogin without-password or AllowRootLogin forced-commands-only, then generate a public/private keypair for the vendor and restrict what they can do with the "command" option in ~root/.ssh/authorized_keys.
  #3 (permalink)  
Old 03-31-2009
laurentv laurentv is offline
Registered User
  
 

Join Date: Mar 2009
Location: Montreal, Canada
Posts: 33
The best solution are usualy the simpler ones:
Have the vendor use a different id than root.
if not possible use ssh key as mentioned by geekosaur.
you can even restrict that key usage to the specific script that need to be run

-Laurent
  #4 (permalink)  
Old 03-31-2009
geekosaur geekosaur is offline
Registered User
  
 

Join Date: Oct 2008
Location: Pittsburgh, PA, USA
Posts: 20
Oh, and another alternative is to give the vendor a non-root account and have them use sudo with restrictions in /etc/sudoers. The vendor might not be willing to play along with this, though.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0