Re: How to find config files in /etc/ssh

From: Kevin Calman <codex24_at_**********.***>
Date: Wed Jul 02 2003 - 16:47:40 EDT

OK, I figured this one out, too. Nothing like RTFM'ing
and RTFC'ing (Read The Fine Code) to answer your own
questions. Here's the dope, assuming you already have
a working installation:

 1$ (Download and install the openssh source package)
 2$ cd /usr/src/openssh-3.6p1-1
 3$ cygrunsrv -E sshd
 4$ cygrunsrv -R sshd
 5$ make prefix=/usr uninstallall
 6$ rmdir /var/empty
 7$ ./configure --prefix=/usr --sysconfdir=/etc/ssh
 8$ make prefix=/usr sysconfdir=/etc/ssh clean all
 9$ make prefix=/usr sysconfdir=/etc/ssh install
10$ ssh-host-config -y
11$ cygrunsrv -S sshd
12$ cd ~/.ssh
13$ vi known_hosts (to remove this host)
14$ . keychain -q identity id_rsa id_dsa
15$ ssh $USER@$HOST hostname

While it may be possible to modify configurations to
direct the stock executables to find config data in
/etc/ssh without recompiling, they will still default
to /etc as the compile-time value (try "sshd -h 2>&1 |
grep Configuration" to see). Rebuilding the whole
package ensures that all the necessary values are
specified as defaults.
  The only problem with the instructions above is that
the existing host keys are wiped out and regenerated.
This will cause warnings when clients attempt to
connect. It may be possible to migrate them from /etc
to /etc/ssh, but I did not succeed in this. It would
probably go something like this:

6a$ mkdir /etc/ssh; cp -p /etc/ssh* /etc/ssh/
 9$ make prefix=/usr sysconfdir=/etc/ssh
install-nokeys
13$ (omit this step)

When I tried this the service wouldn't start, so I
just wiped the keys. This is left as an exercize for
the reader.

--- Kevin Calman <codex24@yahoo.com> wrote:
> What do I need to change/configure/recompile to have
> ssh on cygwin recognize its configuration files from
> /etc/ssh rather than /etc? I tried specifying,
>
> ./configure --sysconfdir=/etc/ssh
> make clean all install
>
> but it failed when restarting the sshd service,
> unable to find sshd_configure, which I had moved
> from /etc to /etc/ssh.
> Ideas? Facts? Experience?
>
> =====
> Opinions herein are exclusively my own, unless you
> share them.
> Kevin Calman, codex24 at yahoo dot com, Austin, TX,
> US

=====
Opinions herein are exclusively my own, unless you share them.
Kevin Calman, codex24 at yahoo dot com, Austin, TX, US

--
List Information: http://tech.erdelynet.com/mailman/listinfo/ssh-l/
List Archives:    http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Go to http://tech.erdelynet.com/mailman/listinfo/ssh-l/ and enter your email address at the bottom to "Edit Options". If you don't know your password, have it emailed to you. Then unsubscribe.
Received on Wed Jul 2 16:51:18 2003

This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:56 EDT