Hi,

I've just found the time to look into it.

On Sun, Mar 04, 2001 at 11:01:43PM -0600, CyberZombie wrote:
> > Looks nice. Could you please send me a diff -up? It's way easier
> > to read and apply.
> 
> I made one more update to also put the requested port into ssh_config.  One
> thing -- should the generation of ssh_config be part of ssh-user-config
> rather than ssh-host-config?

Nope. /etc/ssh_config is a host wide setting while ssh-user-config
should be called for each user. It wouldn't make sense to (re)generate
/etc/ssh_config always when a new user creates his/her own files.

Another problem is that your patch to the /etc/ssh_config gen code
changes the global(!) port option for ssh clients. I'm not sure
if that is really what you wanted. If a user on your system has no
own config file, the client ssh would try to connect to all foreign
systems by using the new port number... which would result in a
`connection refused' on most systems. Since your local sshd uses
that port number it would only make sense to add the following to
/etc/ssh_config:

        Host localhost
          Port $port_number

I'm not sure if I could explain that clearly but I hope you know
what I mean. I have patched your patch to add the `Host localhost'
line.

> --- /bin/ssh-host-config Thu Mar  1 02:28:30 2001
> +++ /home/root/ssh-newhost-config Sun Mar  4 22:53:30 2001
> @@ -16,6 +16,7 @@ OLDSYSCONFDIR=${OLDPREFIX}/etc
> [...]

 I have not applied the patch to the services file for two reasons.

First of all, inserting `sshd' is wrong (my fault). The correct
entry should be `ssh' according to IANA. I have changed ssh-host-config
so that old sshd entries in the services file and in /etc/inetd.conf
will be substituted by ssh entries.

The port number 22 is the official port number for ssh as assigned
by IANA. See http://www.isi.edu/in-notes/iana/assignments/port-numbers
The services file should reflect the IANA numbers at least for the
well known ports. If you want to use another port for your local
system you should add an entry which is named different to the
services and to the inetd.conf file, IMO.

However, thanks for patch. I will send it to the OpenSSH maintainer
today.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to