[PATCH]: contrib/cygwin/ssh-host-config
Corinna Vinschen
vinschen at redhat.com
Wed Mar 7 22:34:55 EST 2001
On Wed, Mar 07, 2001 at 09:38:32PM +1100, Damien Miller wrote:
> On Wed, 7 Mar 2001, Corinna Vinschen wrote:
>
> > Hi,
> >
> > below is a patch to contrib/cygwin/ssh-host-config and the corresponding
> > README in the same dir. It adds a `--port' option to the config script
> > to allow setting another port than 22 for sshd.
> >
> > Additionally the script used to add `sshd 22/tcp' to the services file
> > while the IANA proposes `ssh 22/tcp' and `ssh 22/udp' as services entries.
> > The new version removes old `sshd' entries from services and inetd.conf
> > and substitutes them with `ssh' entries.
>
> Applied - thanks.
Thanks, too.
This might be OT but I have a question related to the "ssh 22/tcp"
entry in /etc/services. If somebody decides to change the local
sshd port to, say, 22022, would it make sense to change the
ssh-host-config script so that it generates a "ssh 22022/tcp" entry
instead of "ssh 22/tcp"?
I'm asking because I refused to patch my script to do so. My reasoning
was that the services file should always contain the IANA proposed
ports for well known services and that the local defined port should
usually has another name, for example "local_ssh 22022/tcp" which
then should be used in /etc/inetd.conf.
Am I correct or is that too picky?
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com
More information about the openssh-unix-dev
mailing list