1570a
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello all, I am having a problem with the lastest production release(7.1). When logging in through ssh, I am able to do it for the first few times, but then after that, my login keeps getting rejected with this error.
Code:
sshd[852]:error:pam:authentication error for illegal user |
|
#2
|
||||
|
||||
|
Have you changed default password encryption algorithm (/etc/auth.conf and /etc/login.conf) recently? (i had some problems with pam in past, i think it was due to my hardening, but i'm not sure)
---- I use public key authentication... works great btw. http://forums.freebsd.org/showthread.php?t=1508 |
|
#3
|
|||
|
|||
|
Nope, everything is default from a fresh install. It worked once or twice, then it just stopped
|
|
#4
|
||||
|
||||
|
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
I logged in like 3 times since the install, then it started and still does deny my login with the response to my client "Access Denied". I am using Putty as my client. The exact message I am getting from the auth.log is:
Code:
Invalid user bob from 192.168.1.50 error:PAM:authentication for illegal-user bob from windows-machine-name Failed keyboard-interactive/pam for invalid user from 192.168.1.50 port 2982 ssh2 |
|
#6
|
||||
|
||||
|
I'd be curious to see the output from a couple commands:
# egrep -i 'allow|deny' /etc/ssh/sshd_config # grep 'bob' /etc/passwd (I am also assuming you've reloaded or restarted sshd following and config file changes.) |
|
#7
|
|||
|
|||
|
Agreed. An invalid user is an invalid user. Here are some SSH hammer attempts from my auth.log:
Code:
Feb 5 21:41:27 Invalid user james from 208.96.162.136 Feb 5 21:41:28 Invalid user austin from 208.96.162.136 Feb 5 21:41:29 Invalid user jackson from 208.96.162.136 Feb 5 21:41:30 Invalid user justin from 208.96.162.136 Feb 5 21:41:31 Invalid user brandon from 208.96.162.136 Feb 5 21:41:32 Invalid user john from 208.96.162.136 Last edited by DutchDaemon; February 12th, 2012 at 14:59. |
|
#8
|
|||
|
|||
|
Absolutely right. I ran the command and found out the user was bob1 and I had added bob to the AllowUsers. Thanks for the help and sorry for wasting everyone's time with my noob mistake.
|
|
#9
|
||||
|
||||
|
small things make big difference
|
|
#10
|
|||
|
|||
|
Quote:
|
|
#11
|
|||
|
|||
|
Yeah, big thanks to Anomie, those statements wrapped it up pretty quick. Great work. I am going to still checkout that guide for using keys, thanks to killasmurf86 as well.
|
|
#12
|
|||
|
|||
|
[ Warning: bad and unsafe advice follows. -- Mod. ]
To enable SSH on FreeBSD # vi /etc/ssh/sshd_configCode:
PermitRootLogin no----> yes :wq # /etc/rc.d/sshd restart
Last edited by DutchDaemon; February 12th, 2012 at 14:59. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#13
|
|||
|
|||
|
1) You're replying to a 3 year old thread
2) Your advice is dangerous unless your network is properly isolated from the hostile internet, do not enable ssh root login unless there's a good reason to. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] SSH + LDAP + Public key authentication - can it be done? | dvdmandt | Web & Network Services | 5 | February 17th, 2011 09:09 |
| How do get SSH login to work with authentication through OpenLDAP? | olav | Web & Network Services | 2 | December 15th, 2010 23:37 |
| [Solved] SSH situation and authentication. | dragos240 | Installing & Upgrading | 4 | September 23rd, 2010 03:10 |
| [Solved] [XFCE] can“t login as root. Only as (standar) user can login. | rokpa92 | Other Window Managers | 17 | September 11th, 2009 13:13 |
| Authentication with SSH keys | dennylin93 | Web & Network Services | 3 | July 30th, 2009 13:56 |