sshd_config
From: Ben (l33t_at_hax0r.not.com)
Date: 03/31/04
- Next message: Maarqvs: "Re: Linux easier to use? Yea sure. Installing ATI drivers Windows vs Linux."
- Previous message: bi-weekly: "A new reader? Welcome to alt.os.linux, read this first if you're new here (FAQ)"
- Next in thread: Chris Share: "Re: sshd_config"
- Reply: Chris Share: "Re: sshd_config"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 00:25:03 GMT
I want to specify different ssh ports for different hosts on my network.
After reading the man page for sshd_config I am still not clear precisely
how to do this (testing is difficult as I have no physical access to the
device at the moment and don't want to kill my session).
Basically for local client 10.0.0.10 I want to use port 22.
For remote hosts being NAT'd to a local address 10.0.0.1 I need to use port
222.
You can only specifiy one blanket port to listen on but I would rather not
specify any, as because I am using NAT all hosts appear to be local.
ListenAddress is clearly the option I need to use however, the man page
doesn't say whether I can delete the blanket 'ports' entry in the conf file
or whether these work in conjunction.
e.g.
Ports 22
ListenAddress 10.0.0.1:222
or just
Ports
ListenAddress 10.0.0.1:222
ListenAddress 10.0.0.10:22
- Next message: Maarqvs: "Re: Linux easier to use? Yea sure. Installing ATI drivers Windows vs Linux."
- Previous message: bi-weekly: "A new reader? Welcome to alt.os.linux, read this first if you're new here (FAQ)"
- Next in thread: Chris Share: "Re: sshd_config"
- Reply: Chris Share: "Re: sshd_config"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|