LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-08-2004, 08:35 AM   #1
yull
Member
 
Registered: Dec 2004
Location: Belgium
Distribution: debian
Posts: 48

Rep: Reputation: 15
strange ssh problem


Hi all,

this is my problem:
I can only access to my server via ssh using the root account.
If I try to use another account, it tells me: "Permission denied, please try again."
In the /var/log/auth.log, I've got an "Dec 8 16:08:01 razorback sshd[1663]: Failed password for <myuser> from <my current host ip> port 57305 ssh2"

Of course I've tried with a stupid password.
I've also changed to /etc/ssh/sshd-config file and added the following line:
AllowUser <myuser> root

the idea is to not use root, but only <myuser> of course, but before removing the root account, I'd like to make the <myuser> accoutn working

I'm looking now for many hours on the web, but without success. I'm getting depressed with this..

I'm using a Debian version

The strange about it is that is used to work two months ago, but then I had to shudown the server.

I'ev put the server up again, installed cvs, and the the mess started. I can any way access to cvs using the <myacount> anyway.

thanks
 
Old 12-08-2004, 12:17 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Are you certain your password is right? Are you able to log in to the console using these same credentials?
 
Old 12-08-2004, 05:00 PM   #3
yull
Member
 
Registered: Dec 2004
Location: Belgium
Distribution: debian
Posts: 48

Original Poster
Rep: Reputation: 15
yes I am sure of the password, I especially changed it to something easy

but I gor more strange things now, I just encountered:
when I connect using ftp, I've got the following error:

Code:
Connected to server
530- System bootup in progress - please wait
530 System not available.
Connection closed by remote host.
When I connect in telnet, I have

Code:
Debian GNU/Linux 3.0 razorback.xavier.be
razorback login: yull
System bootup in progress - please wait

Login incorrect
my tomcat server is runnning fine and accessible
I can also access cvs just fine

so maybe it is not a securitty problem, I should move my topic to another forum, sorry, guys
but if you know what's happening to me, I'll pay you a virtual beer if you'd told me;-)))))
 
Old 12-08-2004, 08:57 PM   #4
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
I have never seen that system boot up message before. But taking a wild guess I would point the finger at PAM if it is installed.
 
Old 12-08-2004, 10:21 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Remove /etc/nologin
 
Old 12-09-2004, 03:39 AM   #6
yull
Member
 
Registered: Dec 2004
Location: Belgium
Distribution: debian
Posts: 48

Original Poster
Rep: Reputation: 15
Talking

IT's WORKING!!!

ALELOUIA!!!!

lol;-)

how come? what's that fuc...ng nologin file???
where dos it come from

I'm going to google about it

thanks to you all guys, I was starting loosing my hair about it!!!
 
Old 12-10-2004, 09:46 AM   #7
eozcan
LQ Newbie
 
Registered: Dec 2004
Location: Ankara/Turkey
Distribution: MANDRAKE 10.0
Posts: 3

Rep: Reputation: 0
can you test it

For security reasons, rexec, rsh, and rlogin are not enabled by default. To allow root to use these tools, add the names of the tools you wish to allow to the /etc/securetty. If you wanted to enable root login using rexec, rsh, and rlogin, add the following lines to /etc/securetty:

rexec
rsh
rlogin

To allow root to log in using these tools via telnet (an even worse idea but necessary in some environments), add a few more lines:

pts/0
pts/1
 
Old 12-10-2004, 10:19 AM   #8
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by yull

how come? what's that fuc...ng nologin file???
Code:
NOLOGIN(5)                 Linux Programmer's Manual                NOLOGIN(5)

NAME
       nologin - prevent non-root users from logging into the system

DESCRIPTION
       If  the  file  /etc/nologin  exists, login(1) will allow access only to
       root. Other users will be shown the contents of  this  file  and  their
       logins will be refused.

FILES
       /etc/nologin

SEE ALSO
       login(1), shutdown(8)

Linux                             1992-12-29                        NOLOGIN(5)
Don't enable the 'r' tools, or telnet. SSH is available just about everywhere these days, and there's not really a good reason (that I can think of) not to use it.
 
Old 12-11-2004, 02:58 PM   #9
yull
Member
 
Registered: Dec 2004
Location: Belgium
Distribution: debian
Posts: 48

Original Poster
Rep: Reputation: 15
hi

I found something out here:

As I told, I added a script in the init.d/ to start tomcat.

Now, on system boot, I see actualley the start of tomcat, but it after the booting process of it, it looks like it stays hanging, an the system boot stucks there.

any idea why?

any idea how to avoid it?

thkx
 
  


Reply



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
Strange SSH problem graw Linux - Networking 6 12-15-2004 04:47 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM
strange characters while loggin in through ssh legolin Linux - Networking 3 08-14-2004 02:39 AM
Strange ssh problem Inexactitude *BSD 2 04-05-2004 01:37 PM
Strange! SSH and Telnet login problem McSmooth Linux - General 7 10-03-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:49 AM.

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