Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Having some trouble on a Fedora 1 system today. Here's what was going on... I tried to SSH to a system to check some things, and each time I tried to log in, the window just closed on me. No errors, just closed. Weird. So I went directly to the system and checked it out. Things all seemed ok. I re-entered the password to make sure it was right, made sure things we all updated, etc. Still couldn't SSH to it though. Ok, I've seen Linux systems get weird if something had been updated or hadn't closed properly, so I thought I'd reboot the machine. Did that, and it came up fine, up to the login screen. Now, when I try to log in as root (only user set up so far), the screen goes dark for a second, then brings back the login screen like nothing ever happened. SSH still does the same thing too. So now, I'm seemingly locked out of this machine. I'm wondering if anyone has any ideas or suggestions on why the system goes dark for a second, then brings the login screen back up without any errors. I'm at a bit of a loss...
Also, this system was being used as a Free Radius system for the past few months. Could Radius have anything to do with the login issues?
Usually by default root login to ssh is disabled, which is a good thing. You should always setup sudo or just su, but never directly login with root on any system over a network, etc.
I'd say you'll need to boot with a rescue disk or cd to change your root's password, it might have gotten corrupt, etc.
That's really weird, because I use SSH on a lot of systems on our network (only available from inside the network). Might Redhat have enabled root access by default for SSH?
I'll look into using a rescue disk. I don't know that the password was corrupt though, as I changed it a couple of times before I reset the system. Even after changing it, SSH still just booted me out when I put the correct password in. If I used the wrong password, it locked me out (and still does). It's only when the correct password is entered that it either kills the SSH session right away, or resets the login page if I'm trying to login directly to the machine.
I think I may have had a similar problem with both SSH from a Linux remote box as well as SSH from a Win remote box (PuTTY). It stopped happening today. No explanation...
As far as remote login with root. I believe remote login with root was automatically enabled on FC1. You have to go to the conf file and change it, I believe. I don't know why this is the default, but I seem to recall being able to login remotely as root, although now I can't. I'm pretty sure I remember changing the conf file.
About a 1/3rd of the way down /etc/ssh/sshd_config, you should see "PermitRootLogin = <value>" where <value> should be set to 'no' if you don't want to allow root to login remotely. I mean, really, all you need to do is adduser then you can remotely login as user and just -su. Much safer...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.