[PATCH]: contrib/cygwin/ssh-host-config

Damien Miller djm at mindrot.org
Wed Mar 7 22:45:39 EST 2001

On Wed, 7 Mar 2001, Corinna Vinschen wrote:

> 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?

I think that is correct. You don't need to modify /etc/services to
change ssh's port, so you shouldn't.


| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's
| http://www.mindrot.org          /   distributed filesystem'' - Dan Geer

More information about the openssh-unix-dev mailing list