Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 7 Mar 2001 10:29:20 +0100 From: Corinna Vinschen To: cygwin Subject: Re: ssh-host-config change request Message-ID: <20010307102920.B21275@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <010601c0a37f$e2f7d240$1d1587a8 AT deluxe DOT com> <20010304230213 DOT B1398 AT cygbert DOT vinschen DOT de> <000c01c0a531$5f64dc80$0164a8c0 AT mn DOT mediaone DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000c01c0a531$5f64dc80$0164a8c0@mn.mediaone.net>; from CyberZombie@mediaone.net on Sun, Mar 04, 2001 at 11:01:43PM -0600 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:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple