sshd doesn't accept -c option

Ludek Hlavacek ludek.h at
Thu Mar 3 10:57:19 EST 2011

I was testing host key signing when I came across problem with adding
certificates using command line.


/usr/sbin/sshd -c certfile


sshd: illegal option -- c
OpenSSH_5.8p1-hpn13v10, OpenSSL 1.0.0d 8 Feb 2011
usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file]
            [-f config_file] [-g login_grace_time] [-h host_key_file]
            [-k key_gen_time] [-o option] [-p port] [-u len]

In cvs log I found, that certificate support was introduced to sshd.c
in revision 1.373 but the optstring argument of getopt function was not
changed accordingly.


More information about the openssh-unix-dev mailing list