Re: Question restricting ssh access for some users only

看板FB_security作者時間21年前 (2004/11/21 22:43), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串19/20 (看更多)
On Thu, 7 Oct 2004, Mark Ogden wrote: Coming.. way late to the discussion.. > groups. We would like to allow root ssh login to our machines but only > from one or two machines. For starters I don't think it is a good idea to allow remote root logins There are several ways to do what you want. A few options If you only need the root users to login, set the firewall to only allow ssh from specific IPs. Set a user that can ssh and either configure sudo or allow user to su. >We like to have root login to be able to run >remote commands to all our machines. That sounds like something you could do with a regular user + sudo. > So is there a way to limit roots > login from one or two machines? Yet another approach, you can turn on to allow connections with keys only. No password authentication. Then enable root.. or better another ID which can su or sudo the commands you need. _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #11eAc300 (FB_security)
討論串 (同標題文章)
文章代碼(AID): #11eAc300 (FB_security)