Linux - NewbieThis 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!
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.
I tried today to loggin to my server (FC5) per ssh, and the server kept refusing my password until it finally accepted it, and again refused it by the next try!
I don´ t get it. I must precise, that I´ve never had any ssh problem with my server so far. the passwords that I give in are correct. since today it refuses my passwords most of the time, but sometime accepts them!
I have this problem with my user und with the root user. I tried the connection from 2 computers, it doesn´t change anything. Once I finally managed to logg in, I changed my user´ s password, but then I still couldn´ t login..till I suddenly managed to login again! then again not! and so on!
does anyone understand the cause of the problem? are therr maybe any log files I should looks at?!
hier is what I have in /var/log/Secure:
Quote:
Nov 8 14:11:14 myserver sshd[7259]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=myhost.myworkstation.com user=myuser
Nov 8 14:11:16 myserver sshd[7259]: Failed password for myuser from xxx.xxx.xx.xx port 43399 ssh2
Nov 8 13:11:16 myserver sshd[7260]: Failed password for myuser from xxx.xxx.xx.xx port 43399 ssh2
Nov 8 14:11:23 myserver sshd[7259]: Failed password for myuser from xxx.xxx.xx.xx port 43399 ssh2
Nov 8 13:11:23 myserver sshd[7260]: Failed password for myuser from xxx.xxx.xx.xx port 43399 ssh2
Nov 8 13:12:59 myserver sshd[7260]: Connection closed by xxx.xxx.xx.xx
I do not understand the "pam_unix(sshd:auth)" part. What does it mean?
I would really appreciate any help because the problem is very preoccupying.
I tried from a third computer at home. The 1st time it worked. Then I tried again, and it didn't accept my password anymore. At the third attempt, I got:
That's pretty strange. ssh either works or it doesn't, so I'd suspect a non-ssh issue.
Next time you get on, pref from local keyboard, run top and see if the system is under extreme load.
The other possibility is that it's been rooted/hacked, or it's being attempted to be hacked and if you check /var/log/messages or root email, you'll find thousands of root ssh login attempts from botnets. Very common these days.
It's highly recommended that you disable root ssh access and instead grant your non-root acct full access via 'sudo su -'.
Ideally, also restrict range of IPs ssh will respond to.
Of course, it may be none of the above...
That's pretty strange. ssh either works or it doesn't, so I'd suspect a non-ssh issue.
Next time you get on, pref from local keyboard, run top and see if the system is under extreme load.
The other possibility is that it's been rooted/hacked, or it's being attempted to be hacked and if you check /var/log/messages or root email, you'll find thousands of root ssh login attempts from botnets. Very common these days.
It's highly recommended that you disable root ssh access and instead grant your non-root acct full access via 'sudo su -'.
Ideally, also restrict range of IPs ssh will respond to.
Of course, it may be none of the above...
thank you for your answer. You seem to be pretty right. I tried to loggin from the keyboard. It doens't work either. last night I could once loggin and I created a new user (unfortunatly it doesn't have any root rights). since then it is the only user that doens't have any problem to loggin.
in /var/lg/messages there are indeed thousand attempts to loggin as a root. But I've always seen such attempts, is one supposed to react when seeing such attempts? because there are actually continually happening. Am I suppposed to exclude the IP address (within the firewall) each time?!
As soon as I managed to loggin again I'll do what you adviced me.
But I can I get things back so that I do not have any loggins problems anymore?
How may I prevent this in the future? I actually have configured a firewall.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.