hardening SSH



I use ssh (on my own machines, personal use). My primary box (for ssh, it's the my daemon) is on dsl. The only machine that I log in from (client?) is on the same ISP, and is on a dial-up line.

I'd like to allow only those IPs that I might dynamically get. How would
this be accomplished? I checked my secure log file (on the daemon box), and have examples of IPs that I was assigned. Nota bene: It seems like only the first and second parts are consistant. So, how can I specify a range thus: 200.100.x.x ? Would I use a zero, or 'x', or ...?

I checked out the openssh website - only man pages. I read the man page,
but didn't see anything related to this. I used Google's linux search - nothing this specific.

I figure that I could use either sshd_config's ListenAddress or
/etc/hosts.allow or hosts.deny.

Btw, I figured out how to set up iptables to use a non-default port, and
I use AllowUsers in the sshd_config (on the machine I log into).

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • SUMMARY : SSH installation on Solaris 8
    ... Part of the installation sequence is the following: ... I have follwed below document and able to install the ssh long back ... All of the required packages of this tutorial is available from ... Create a startup script for the ssh daemon. ...
    (SunManagers)
  • RE: ssh login protection
    ... Then allow SSH from that server to yours. ... I often ssh into two mail servers from dialup(thus dynamic ... I specify which IPs that can ssh into the two ...
    (Security-Basics)
  • Re: securing SSH, FBSD systems
    ... 2- Every time I see script kiddies I black hole their IPs. ... I black hole them not only because of ssh, but because, just as they tried ... Besides ssh I also look for machines trying to attack the web server.. ...
    (freebsd-questions)
  • PIX 515E Changing from DSL to Cable ISP
    ... Aside from the changes in the IPs and how they affect static routes, ... static tcp 11.16.146.91 ssh 10.6.18.10 ssh netmask ... access-list inbound permit tcp any host 205.213.231.200 eq ssh ...
    (comp.dcom.sys.cisco)
  • Remote SSH commands
    ... Tipically If you run a remote command using SSH the behavior is the ... What about if instead of ls I want to execute a daemon and leave the ...
    (comp.os.linux.networking)