Em 22-05-2013 19:08, Bruce Dubbs escreveu: > Baho Utot wrote: >> In the section for openssh the following should be added to the >> instructions for running sshd >> >> ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa >> ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa >> ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa >> >> This generates the keys for sshd and it will then not throw an >> error/warning message when sshd is started from the start up scripts. > > According to my log, these are done automatically with make install: > > Generating public/private rsa1 key pair. > Your identification has been saved in /etc/ssh/ssh_host_key. > Your public key has been saved in /etc/ssh/ssh_host_key.pub. > ... > > Generating public/private dsa key pair. > Your identification has been saved in /etc/ssh/ssh_host_dsa_key. > Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub. > ... > > Generating public/private rsa key pair. > Your identification has been saved in /etc/ssh/ssh_host_rsa_key. > Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub. > > -- Bruce >
I remember in every new system A I build to move out the new generated keys (actually, the /etc/ssh directory), and put in place the one of the system B (system used to to build A, and which will be trashed afterwards, usually). -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page