Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You shouldn't do that, or explain why you would do this. Getting in as an unprivileged user and using sudo (preferred) or su to get to the root account is "better". For example one could try passwd guessing for the root account. If you think this is bogus, as a test try running John the Ripper on your passwd file with a sufficiently large dictionary.
The sshd_config var btw is "PermitRootLogin".
If you want to have certain users from certain addresses be able to login, you can use TCP Wrappers, if sshd is configured with libwrap, or block addresses in your firewall, or use the (Allow|Deny)(Groups|Users) directives in sshd_config, or add a PAM module like pam_listfile to your PAM ssh stack.
Originally posted by jeucken How can I set that only root kan login to my SSH?
This is a potential security hole like unSpawn pointed it out. A system compromise using SSH as source is a welcomed way these days. Think of the SSH1 attacks, etc!
I'd never allow ANYBODY to login as root over a insecure network such as the internet. Root should be only allowed to login at the console (if at all)! Starting SSH using xinetd is a nice way btw to set up additional protections ...
Last edited by markus1982; 10-19-2002 at 07:35 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.