Re: able to login as root via ssh :-(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Vian wrote:
On Mon, 2006-08-07 at 17:33 -0700, Don Russell wrote:
FC5
openssh-4.3p2-4

I was surprised to find that I can log in as root via ssh from my Windows machine to my FC5 box.

I've always used ssh to log in as a user then 'su -' ....

I don't see anything in /etc/ssh/sshd_config to prevent that, or enable it for that matter?

What do I need to change so root can't be logged in via ssh? Or is it letting me because it recognizes a key?

1. Change the line that reads
        PermitRootLogin yes
        to
        PermitRootLogin no

When it's pointed out mt like that it's embarrassing. :-) I have yet to learn how to do case-insensitive searches in vim :-(

2. You can also add a bit more restriction by adding

        AllowUsers your_user

which will allow ONLY those listed on that line to have ssh access to
the system.


Thanks... I like that .... I'm the only one that really needs remote access anyway.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux