This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: disparity between ssh-config script and sshd_config file


>When ssh-config runs under the new cygwin, it places the public/private
host
>key pair in /etc.  Yet when it generates sshd_config, it sets the HostKey
>path to /usr/local/etc/ssh_host_key, as opposed to /etc/ssh_host_key.  I
>usually just go and manually edit sshd_config after running ssh-config, but
>i wondered if this was intentional.

I went to go look at the source for OpenSSH, but it looks like this was
fixed somewhere along the line, maybe in ssh.h?

#ifndef ETCDIR
#define ETCDIR			"/etc"
define SSH_SYSTEM_HOSTFILE	ETCDIR "/ssh_known_hosts"
#define SSH_SYSTEM_HOSTFILE2	ETCDIR "/ssh_known_hosts2"

(I don't have the old ssh.h to see if this is where the problem was).  I
just used the new OpenSSH and it properly sets HostKey to
/etc/ssh_known_hosts instead of /usr/local/etc/ssh_known_hosts in
sshd_config.  Thanks to whoever fixed this!

John


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]