Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

can't find ssh_host_rsa_key.pub

Hi,

Hi, am running trying to locate ssh host_rsakey.pub is there a way to create it?

LeMarsu



Mac BookPro 2.16GHz Mac OS X (10.4.6)

Mac BookPro 2.16GHz Mac OS X (10.4.6)

Posted on Apr 28, 2006 12:19 PM

Reply
Question marked as Best reply

Posted on Apr 28, 2006 1:16 PM

You can use ssh-keygen to create hostkeys. A host key is nothing special, except perhaps that you would use a long key, keep them very secure and after creating you will need to rename, copy and chmod them.

ssh-keygen -t dsa -b 2048 -f ssh host_rsakey
sudo copy ~/.ssh/ssh host_rsakey /etc/ssh
sudo copy ~/.ssh/ssh host_rsakey.pub /etc/ssh
sudo chmod 400 /etc/ssh/ssh host_rsakey*
rm ~/.ssh/ssh host_rsakey
rm ~/.ssh/ssh host_rsakey.pub


for instance.
1 reply
Question marked as Best reply

Apr 28, 2006 1:16 PM in response to LeMarsu

You can use ssh-keygen to create hostkeys. A host key is nothing special, except perhaps that you would use a long key, keep them very secure and after creating you will need to rename, copy and chmod them.

ssh-keygen -t dsa -b 2048 -f ssh host_rsakey
sudo copy ~/.ssh/ssh host_rsakey /etc/ssh
sudo copy ~/.ssh/ssh host_rsakey.pub /etc/ssh
sudo chmod 400 /etc/ssh/ssh host_rsakey*
rm ~/.ssh/ssh host_rsakey
rm ~/.ssh/ssh host_rsakey.pub


for instance.

can't find ssh_host_rsa_key.pub

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.