<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: OpenSSH deny or restrict access to users and groups</title> <atom:link href="http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Rashid</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-171311</link> <dc:creator>Rashid</dc:creator> <pubDate>Sat, 14 May 2011 10:06:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-171311</guid> <description>thanks very helpful. i block icmp on my server through this.
thanks</description> <content:encoded><![CDATA[<p>thanks very helpful. i block icmp on my server through this.</p><p>thanks</p> ]]></content:encoded> </item> <item><title>By: suzuki</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-159878</link> <dc:creator>suzuki</dc:creator> <pubDate>Sun, 26 Sep 2010 09:29:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-159878</guid> <description>I tried editing sshd_config with AllowUsers root. but all of users can ssh to configured host. I tried with DenyUsers too, but that is not working too. why?
what i missed?
thanks any help</description> <content:encoded><![CDATA[<p>I tried editing sshd_config with AllowUsers root. but all of users can ssh to configured host. I tried with DenyUsers too, but that is not working too. why?<br
/> what i missed?</p><p>thanks any help</p> ]]></content:encoded> </item> <item><title>By: DarkFader</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-158220</link> <dc:creator>DarkFader</dc:creator> <pubDate>Tue, 20 Jul 2010 23:18:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-158220</guid> <description>Match Address 127.0.0.1
PermitRootLogin without-password
Yes, you can do that. It seems to work somewhat although it still asks for a password from elsewhere.
Now I can have my &quot;alias sshdo=&#039;ssh root@localhost&#039;&quot; combined with ssh-agent :)</description> <content:encoded><![CDATA[<p>Match Address 127.0.0.1<br
/> PermitRootLogin without-password</p><p>Yes, you can do that. It seems to work somewhat although it still asks for a password from elsewhere.<br
/> Now I can have my &#8220;alias sshdo=&#8217;ssh root@localhost&#8217;&#8221; combined with ssh-agent :)</p> ]]></content:encoded> </item> <item><title>By: Andreas</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-156759</link> <dc:creator>Andreas</dc:creator> <pubDate>Tue, 22 Jun 2010 09:27:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-156759</guid> <description>put into sshd_config following line, than you are able to root login with certs, but not with password:
PermitRootLogin without-password</description> <content:encoded><![CDATA[<p>put into sshd_config following line, than you are able to root login with certs, but not with password:</p><p>PermitRootLogin without-password</p> ]]></content:encoded> </item> <item><title>By: sahab</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-152620</link> <dc:creator>sahab</dc:creator> <pubDate>Wed, 30 Dec 2009 17:22:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-152620</guid> <description>Hi All
How can I limit the user one time ssh login in freebsd 7.2, I have added below entry in @username        -       maxlogins       1
This method works with ubuntu linux. Not in Freebsd,
Any idea for resolving</description> <content:encoded><![CDATA[<p>Hi All<br
/> How can I limit the user one time ssh login in freebsd 7.2, I have added below entry in @username        &#8211;       maxlogins       1</p><p>This method works with ubuntu linux. Not in Freebsd,</p><p>Any idea for resolving</p> ]]></content:encoded> </item> <item><title>By: milegrin</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-151968</link> <dc:creator>milegrin</dc:creator> <pubDate>Tue, 01 Dec 2009 21:16:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-151968</guid> <description>sudo is already in place for standard OS &amp; application admins.  Direct root SSH is required for AIX&#039;s CSM or &quot;Cluster Server Manager&quot; which essentially allows me to run a command fromt eh CSM server on all servers or a specific server and I use it extensively for various reporting scripts, security and other functions but it requires root ssh.
I have yet to find a decent working solution that does not rely on multiple instances or external dependencies (eg PAM) but I have it can be done however how is another animal completely.
Thanx again for the advice</description> <content:encoded><![CDATA[<p>sudo is already in place for standard OS &amp; application admins.  Direct root SSH is required for AIX&#8217;s CSM or &#8220;Cluster Server Manager&#8221; which essentially allows me to run a command fromt eh CSM server on all servers or a specific server and I use it extensively for various reporting scripts, security and other functions but it requires root ssh.</p><p>I have yet to find a decent working solution that does not rely on multiple instances or external dependencies (eg PAM) but I have it can be done however how is another animal completely.</p><p>Thanx again for the advice</p> ]]></content:encoded> </item> <item><title>By: Daniel Reinhardt</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-151963</link> <dc:creator>Daniel Reinhardt</dc:creator> <pubDate>Tue, 01 Dec 2009 12:42:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-151963</guid> <description>For those of you who want to enable root access to multiple people then setup SUDO and give people sudo access via sudoers file.  This way you can limit what each sudo user does.</description> <content:encoded><![CDATA[<p>For those of you who want to enable root access to multiple people then setup SUDO and give people sudo access via sudoers file.  This way you can limit what each sudo user does.</p> ]]></content:encoded> </item> <item><title>By: LinuxLuser</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-150379</link> <dc:creator>LinuxLuser</dc:creator> <pubDate>Thu, 27 Aug 2009 04:24:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-150379</guid> <description>eMBee / milegrin,
Your best option may well just be a seperate sshd process that listens on a different port, that only allows root access.  I would combine that with iptables (or other firewall) to only accept incoming connections to your second sshd port from your known/allowed hosts.  Then, just update your automated scrips to connect to your non-standard port.  Not too bad, considering that once you get it set up, it should run forever.  Any localhost root users should be smart enough to accomodate the non-standart port assignment.
Cheers,
LinuxLuser</description> <content:encoded><![CDATA[<p>eMBee / milegrin,</p><p>Your best option may well just be a seperate sshd process that listens on a different port, that only allows root access.  I would combine that with iptables (or other firewall) to only accept incoming connections to your second sshd port from your known/allowed hosts.  Then, just update your automated scrips to connect to your non-standard port.  Not too bad, considering that once you get it set up, it should run forever.  Any localhost root users should be smart enough to accomodate the non-standart port assignment.</p><p>Cheers,<br
/> LinuxLuser</p> ]]></content:encoded> </item> <item><title>By: milegrin</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-150120</link> <dc:creator>milegrin</dc:creator> <pubDate>Fri, 14 Aug 2009 08:34:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-150120</guid> <description>Hi
Like eMBee, I am trying to deny root login from everywhere EXCEPT a specific host which is used to run automated remote tasks as root through ssh using keys.
I have tried combinations AllowUser, DenyUsers to no avail.
sshd_config takes preference over ssh_config so host definitions get overridden by the sshd_config entry &quot;PermitRootLogin no&quot;
Using PAM restrictions is not really an option as this is an AIX box.
Any idea as too how to achieve this would be greatly appreciated!
- Michael</description> <content:encoded><![CDATA[<p>Hi</p><p> Like eMBee, I am trying to deny root login from everywhere EXCEPT a specific host which is used to run automated remote tasks as root through ssh using keys.</p><p> I have tried combinations AllowUser, DenyUsers to no avail.<br
/> sshd_config takes preference over ssh_config so host definitions get overridden by the sshd_config entry &#8220;PermitRootLogin no&#8221;</p><p> Using PAM restrictions is not really an option as this is an AIX box.</p><p> Any idea as too how to achieve this would be greatly appreciated!<br
/> - Michael</p> ]]></content:encoded> </item> <item><title>By: jose antonio</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-145592</link> <dc:creator>jose antonio</dc:creator> <pubDate>Sun, 16 Nov 2008 00:05:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-145592</guid> <description>Thank you very much!</description> <content:encoded><![CDATA[<p>Thank you very much!</p> ]]></content:encoded> </item> <item><title>By: ramsam</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-144378</link> <dc:creator>ramsam</dc:creator> <pubDate>Wed, 16 Jul 2008 16:45:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-144378</guid> <description>OS: uBuntu 7.10
I tried adding AllowUsers and restarting the sshd server but it still allows other users to ssh.
It does not restrict users too... I even tried DenyUsers nothing works.... Need help.
Thank you.
Regards,
Ram</description> <content:encoded><![CDATA[<p>OS: uBuntu 7.10</p><p>I tried adding AllowUsers and restarting the sshd server but it still allows other users to ssh.<br
/> It does not restrict users too&#8230; I even tried DenyUsers nothing works&#8230;. Need help.</p><p>Thank you.<br
/> Regards,<br
/> Ram</p> ]]></content:encoded> </item> <item><title>By: sobas</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-141124</link> <dc:creator>sobas</dc:creator> <pubDate>Mon, 17 Sep 2007 07:23:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-141124</guid> <description>/etc/ssh/sshd_config
PermitRootLogon no
Above denies root to login remotely but is able to login locally on the console.
Use sudo to give access to sys admins.</description> <content:encoded><![CDATA[<p>/etc/ssh/sshd_config<br
/> PermitRootLogon no</p><p>Above denies root to login remotely but is able to login locally on the console.</p><p>Use sudo to give access to sys admins.</p> ]]></content:encoded> </item> <item><title>By: steve</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-140538</link> <dc:creator>steve</dc:creator> <pubDate>Fri, 20 Jul 2007 06:42:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-140538</guid> <description>Dear all,
how can i restrict a user to view others folder except his own folder after login?
thanks
steve</description> <content:encoded><![CDATA[<p>Dear all,</p><p>how can i restrict a user to view others folder except his own folder after login?</p><p>thanks</p><p>steve</p> ]]></content:encoded> </item> <item><title>By: eMBee</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-4016</link> <dc:creator>eMBee</dc:creator> <pubDate>Thu, 03 Aug 2006 00:03:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-4016</guid> <description>LinuxTitli: using the users password for root access is not really good either. if some users account is compromized (because someone managed to get at the users password), then root is automaticly compromized as well.
i look forward to try the suggestions in nixcrafts new article soon.</description> <content:encoded><![CDATA[<p>LinuxTitli: using the users password for root access is not really good either. if some users account is compromized (because someone managed to get at the users password), then root is automaticly compromized as well.</p><p>i look forward to try the suggestions in nixcrafts new article soon.</p> ]]></content:encoded> </item> <item><title>By: eMBee</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-4014</link> <dc:creator>eMBee</dc:creator> <pubDate>Wed, 02 Aug 2006 23:48:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-4014</guid> <description>i did a few quick tests on the interaction of AllowUsers and AllowGroups and it seems that they can&#039;t really be used together. when i set:
AllowUsers: root@localhost
AllowGroups: users
the result was that noone could login, even adding root to the group users didn&#039;t help.</description> <content:encoded><![CDATA[<p>i did a few quick tests on the interaction of AllowUsers and AllowGroups and it seems that they can&#8217;t really be used together. when i set:</p><p>AllowUsers: root@localhost<br
/> AllowGroups: users</p><p>the result was that noone could login, even adding root to the group users didn&#8217;t help.</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3993</link> <dc:creator>nixcraft</dc:creator> <pubDate>Wed, 02 Aug 2006 15:04:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3993</guid> <description>You need to configure PAM login access control tables. These tables will give you desired effect  i.e. allow any users except root from anywhere, and root only from localhost (just like iptables).
There is also a iptables module which attempts to match various characteristics of the packet creator (both INPUT and OUTPUT chain) but it is badly broken and it may not work on SMP system at all.
I will post more info about login access control tables soon. See URL: http://www.cyberciti.biz/tips/openssh-root-user-account-restriction-revisited.html</description> <content:encoded><![CDATA[<p>You need to configure PAM login access control tables. These tables will give you desired effect  i.e. allow any users except root from anywhere, and root only from localhost (just like iptables).</p><p>There is also a iptables module which attempts to match various characteristics of the packet creator (both INPUT and OUTPUT chain) but it is badly broken and it may not work on SMP system at all.</p><p>I will post more info about login access control tables soon. See URL: <a
href="http://www.cyberciti.biz/tips/openssh-root-user-account-restriction-revisited.html" rel="nofollow">http://www.cyberciti.biz/tips/openssh-root-user-account-restriction-revisited.html</a></p> ]]></content:encoded> </item> <item><title>By: LinuxTitli</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3992</link> <dc:creator>LinuxTitli</dc:creator> <pubDate>Wed, 02 Aug 2006 14:58:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3992</guid> <description>Planet Malaysia, follow emBee\&#039;s suggestion or add user to group grant necessary file level permissions</description> <content:encoded><![CDATA[<p>Planet Malaysia, follow emBee\&#8217;s suggestion or add user to group grant necessary file level permissions</p> ]]></content:encoded> </item> <item><title>By: LinuxTitli</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3991</link> <dc:creator>LinuxTitli</dc:creator> <pubDate>Wed, 02 Aug 2006 14:56:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3991</guid> <description>Hmm...
Have you evaluated or considered sudo option? I use sudo extensively here. Although it is not 100% perfect but better than sharing root password. It also log down all failed (or command access) messages. Sudo is your best option, IMPO.
Let me know if you are aware of any other tools or methods....</description> <content:encoded><![CDATA[<p>Hmm&#8230;</p><p>Have you evaluated or considered sudo option? I use sudo extensively here. Although it is not 100% perfect but better than sharing root password. It also log down all failed (or command access) messages. Sudo is your best option, IMPO.</p><p>Let me know if you are aware of any other tools or methods&#8230;.</p> ]]></content:encoded> </item> <item><title>By: eMBee</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3988</link> <dc:creator>eMBee</dc:creator> <pubDate>Wed, 02 Aug 2006 13:38:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3988</guid> <description>Planet Malaysia: for rsync you would want to allow root specificly for the host that you are synchronizing with.</description> <content:encoded><![CDATA[<p>Planet Malaysia: for rsync you would want to allow root specificly for the host that you are synchronizing with.</p> ]]></content:encoded> </item> <item><title>By: eMBee</title><link>http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3987</link> <dc:creator>eMBee</dc:creator> <pubDate>Wed, 02 Aug 2006 13:36:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/openssh-deny-or-restrict-access-to-users-and-groups.html#comment-3987</guid> <description>using su forces the use of a shared password, which is what i want to avoid.
AllowUsers says in the documentation:
&quot;If specified, login is allowed only for user names that match one of the patterns.&quot;
that means ALL OTHER users will be blocked, which is not desired either. i need something that allows me to say: allow any users except root from anywhere, and root only from localhost.
there may be a way to combine AllowUsers and AllowGroups, but the docs say nothing about how those two would interact.</description> <content:encoded><![CDATA[<p>using su forces the use of a shared password, which is what i want to avoid.</p><p>AllowUsers says in the documentation:<br
/> &#8220;If specified, login is allowed only for user names that match one of the patterns.&#8221;</p><p>that means ALL OTHER users will be blocked, which is not desired either. i need something that allows me to say: allow any users except root from anywhere, and root only from localhost.</p><p>there may be a way to combine AllowUsers and AllowGroups, but the docs say nothing about how those two would interact.</p> ]]></content:encoded> </item> </channel> </rss>
