LinuxQuestions.org
Visit Jeremy's Blog.
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 10-30-2004, 09:03 AM   #1
wacko_cracko
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Rep: Reputation: 0
ssh login denied


Hi,

I had this setup before and it worked great but all of a sudden it seems to have stopped working and have no idea why if anyone has seen this beofre then help!

I had my hosts.allow to only allow logins from my local network and my work IP (sub for 1.2.3.4), now for some reason when i try and login using my work ip it gets refused, if I do a sshd: ALL it works again, where am I going wrong as this was working before and I havnt changed anything


/etc/hosts.allow

Quote:
sshd: 127.0.0.1 192.168.51.0/255.255.255.0 1.2.3.4/255.255.255.0

logs

Quote:
refused connect from 1.2.3.4 (1.2.3.4)

Thnks
wc
 
Old 10-30-2004, 09:49 AM   #2
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Try:

sshd: 1.2.3.

Instead of the CIDR 1.2.3.0/255.255.255.0 format. Above, that will allow 1.2.3.* [0-255] in.
 
Old 10-30-2004, 10:05 AM   #3
wacko_cracko
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up

beautiful! works like a charm

any idea why it would just stop respodning? the old method still works fine when I try and login from my local net..

weird!

but thanks

-wc
 
Old 10-30-2004, 10:15 AM   #4
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Look at your maxstartups and logingracetime settings in your /etc/ssh/sshd.conf file. Read the man page for more information about these. If so many unsuccessful attempts occur, you may be experiencing a lockout issue, and a rehup or reinit of sshd might be just resetting a counter. But if it's working for you now, forget about it.
 
  


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
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
SSH Permission Denied Chimney Linux - Security 1 11-10-2005 06:01 PM
SSH login ... access denied (suse 9.1) saxxon1 Linux - Networking 3 09-14-2004 02:34 PM
Workstation login denied klmn1 Linux - Networking 4 04-07-2003 06:59 AM
help! ssh password being denied for ALL acccounts (hacked?) JustinHoMi Linux - Security 4 05-26-2002 05:57 AM

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

All times are GMT -5. The time now is 12:53 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