I've been trying to start an additional sshd process on a remote machine. I've created a working directory with the new sshd config file I'd like to use.
When I try to run sshd using the config file in this directory, it complains it can't find any host keys. I've tried to create missing host keys by running ssh-keygen -A
with the -f
switch to specify the location of my working directory but ssh-keygen continues trying to place the keys in /etc/ssh/
instead of the directory I specified. I don't have access to /etc/ssh, so it fails.
How can I generate these keys without access to this path?