--sysconfdir configuration option doesn't work.
sshd always try to open its config files from
/usr/local/etc/ :
pochini at orione:/home/pochini/openssh-2.9p2# sshd --help
sshd: invalid option -- -
sshd version OpenSSH_2.9p2
Usage: sshd [options]
Options:
-f file Configuration file (default /etc/ssh/sshd_config)
[...]
-h file File from which to read host key (default: /etc/ssh/ssh_host_key)
[...]
pochini at orione:/home/pochini/openssh-2.9p2# sshd
Could not load host key: /usr/local/etc/ssh_host_key
Could not load host key: /usr/local/etc/ssh_host_rsa_key
Could not load host key: /usr/local/etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
pochini at orione:/home/pochini/openssh-2.9p2#
Bye.
Giuliano Pochini ->)|(<- Shiny Network {AS6665} ->)|(<-
Giuliano Pochini <pochini at shiny.it> writes:> --sysconfdir configuration option doesn't work.Yes, it does.> sshd always try to open its config files from > /usr/local/etc: > ... > Could not load host key: /usr/local/etc/ssh_host_key > Could not load host key: /usr/local/etc/ssh_host_rsa_key > Could not load host key: /usr/local/etc/ssh_host_dsa_key > Disabling protocol version 1. Could not load host key > Disabling protocol version 2. Could not load host keyJust fix the HostKey paths in your sshd_config file. "make install" does not overwrite existing configuration files. - Richard