Hello,
I am not quite clear, looking at man pages for ssh/sshd config files:
1) ssh-keygen per my understanding is used a client side to generate
'identity' and 'identity.pub' file, where latter is copied to
server side user's home directory/.ssh/authorized_keys file.
Ques: Is ssh-keygen also used on server side ? If so, how are
the server's public and private keys used by client ?
2) How is "ssh_known_hosts" is used by server-side(sshd)
and does client (ssh)
need this one ? If so, how does client use this and is it okay for
client if this file does not exist ?
3) "ssh_host_key" file is used by server only. Is this true ?
4) Is there command-line option or what is the source code change needed
to specify different path and file names for "
(a) "ssh_config" and "sshd_config" ?
(b) "/etc/ssh_known_hosts" and "$HOME/.ssh/known_hosts" ?
In a nutshell, how are
(i) "ssh_host_key" used by server and client (are they MUST for both
sides) ?
(ii) "authorized_keys" used by server and client (are they MUST for both
sides) ?
(iii) "known_hosts" used by server and client (are they MUST for both
sides) ?
And how to specify different path/file names to each of above either
by commandline or changing source code ?
Any pointers is appreciated.
Thank you.
Sunil.