Need help using Webmin to tell SSH to allow logins
Hello everyone.
I'm having a slight problem that I can't wrap my mind around today. I've built myself a server running Mandrake 9 and set the security level to 'Paranoid'. This effectively closed my box from the outside world, which is great. and it actually listened to me when I told it I wanted to use FTP, HTTP and Samba SWAT and Webmin publicly through the firewall. Except for SSHd. this lil' bugger won't let me connect to it, it will simply disconnect without warning. So I need help using Webmin to alter the SSH server settings so it -will- allow users to log in remotely (Except root ofcourse.) Thanks for your time. |
Greetings
Is SSHd allowing login initially then booting you off or is it refusing the connection altogether? |
SSHd is started at boot, but it does not allow connections from the outside.
Here's a sample terminal from the box itself: Code:
[xander@Xolo xander]$ ssh localhost get anything, the terminal just disconnects. (Using PuTTY with default settings) Basicly I think my error lies in the fact that users aren't authorised to log in (need a public key first?) and that SSHd doesn't present me with a login prompt but rather tries to determine who is attempting a login and then simply disconnects when it doesn't see a valid username (and possibly an accompanying key). |
Greetings
Looks like root login in not allowed. That's actually a smarting to do security-wise. Look at your .conf file and see who is in the valid users list as well. |
Indeed Root isn't allowed to use SSH, nor is he allowed to log into the system directly ;)
However when I look at Webmin's page for SSH's Access Control, the part where it says 'Only allow users' the check is set to 'All'. that leads me to think all users are allowed to log into SSH, but it doesn't appear to work that way. Code:
Network and login access control options Edit: I forgot to mention that i've tried to alter these settings in a previous install, to: Code:
Network and login access control options |
Clean start, reinstalled the entire machine from scratch.
Still need to get SSH working for my users. SSHd is running, but does not allow login. default settings so far, but could use a hint or two for Webmin.. ;) i'll try some stuff later when I have free time, since i'm at the office right now. |
okay I assume to have direct access to this machine? if yes then do this and then try to ssh to the box
iptables -A INPUT -p tcp --dport 22 -j ACCEPT if stll not working then poke into sshd.conf file. |
I did enable SSH access in the firewall but I will re-check it anyway against what you told me to use when I get home.
|
Well, checked the firewall and it's in there alright... but it doesn't work. It's SSHd itself that is disconnecting me when I try to log in.
Here's a bit out of iptables -L: Code:
Chain net2fw (1 references) I've tried ssh -v localhost to get some verbose output, maybe it's of use: Code:
[root@Xolo bin]# ssh -v localhost |
Here's my sshd_config, by the way [edited for user privacy]:
Code:
# $OpenBSD: sshd_config,v 1.56 2002/06/20 23:37:12 markus Exp $ And my ssh_config file: Code:
# $OpenBSD: ssh_config,v 1.15 2002/06/20 20:03:34 stevesk Exp $ I can't really tell if there is an error in there anywhere. I did not edit either file by hand, any non-default lines were created through Webmin's control panel for SSH Server. |
All times are GMT -5. The time now is 11:11 AM. |