»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-02-2004, 10:53 AM   #1 (permalink)
Registered User
 
hav0c's Avatar
 
Join Date: Oct 2001
Location: TN, USA
Posts: 233
hav0c is on a distinguished road
Questions about sshd

Ok I was looking at the sshd_config file and trying to see how to make it a little more secure.. I changed the port from 22 to a non-standard port. I was wondering if anyone has any suggestions as to some other changes I could make to this file to make things more secure? Also is there any way to allow connections only from certain IP addresses?

I'm using FreeBSD 4.9 btw.

hav0c is offline   Reply With Quote
Old 04-02-2004, 12:09 PM   #2 (permalink)
Registered User
 
krohnjw's Avatar
 
Join Date: Oct 2001
Location: ~/
Posts: 2,567
krohnjw is on a distinguished road
Send a message via AIM to krohnjw
You can edit hosts.deny to implicitly deny all hosts for sshd and then use hosts.allow to allow from only a certain subnet or ipaddress.

You might also want to disable remote root login (if it is not off by default)
krohnjw is offline   Reply With Quote
Old 04-10-2004, 01:42 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2002
Posts: 63
soulware is on a distinguished road
disable protocol version 1
turn off X11Forwarding
turn on PrintLastLog
change LogLevel to verbose
turn off PasswordAuthentication
turn off ChallengeResponseAuthentication
add an AllowUsers line

add a tcp wrappers line like khronjw said
Code:
sshd : address/subnet : allow
and turn off PermitRootLogin if it's not already off
soulware is offline   Reply With Quote
Old 04-10-2004, 01:43 PM   #4 (permalink)
Registered User
 
Join Date: Aug 2002
Posts: 63
soulware is on a distinguished road
oh that's assuming you had a default deny stance on the tcp wrappers
soulware is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 03:47 PM.