Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-15-2007, 12:51 AM   #1
Registered: Mar 2006
Distribution: FC4
Posts: 184

Rep: Reputation: 31
machine not allowing login thru virtual console, only thru ssh

I was recently faced with a strange situation with my RHEL3 machine.

The machine would not allow me to login from any of the virtual consoles, when I was physically present with the machine, but it allowed me to login through ssh over the network. When I tried logging in through root, using the virtual console, after asking for the password, an error of 'permission denied' would flash for a second before going back to the login console.

Can anyone tell me why was this happening?


Last edited by dsids; 01-15-2007 at 12:53 AM.
Old 01-15-2007, 07:45 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
See if the console names are listed in /etc/securetty. This file lists console names from which root is allowed to log in. Allowing at least one local physical console is a good idea...and IMHO it is also a good idea to disallow remote root logins using ssh (log in as user and then use su or sudo to gain root privileges).

Refer to securetty(5) for more information.

Old 01-15-2007, 11:46 AM   #3
Registered: Mar 2006
Distribution: FC4
Posts: 184

Original Poster
Rep: Reputation: 31
I uninstalld openssl and its devel package because I was trying to build apache. But then unfortunately using
#scp @hostname

gave me an error no such file or directory..

so I restarted the sshd, but I lost the shell as soon as it stopped..Ever since Iv not been able to log in thru ssh..

#ssh @hostname: connection closed



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH remote login fails after moving virtual machine novice_mage Linux - Networking 7 12-31-2006 06:53 AM
SSH back to virtual machine 07mackenzie Linux - General 1 12-13-2006 10:17 AM
Allowing root login to ssh only on LAN monkeyfoo Linux - Security 6 07-17-2006 09:42 PM
Can only log through ssh, not login console. narc Linux - Software 1 09-05-2005 11:23 PM
can't login to a Slack machine using a NIS account through ssh nIMBVS Slackware 2 07-15-2004 02:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration