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
1 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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.