Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: Regenerate your host keys   Print


Base Nav: first previous next last All Tab 2 spacerspacer
The private keys that are included with the distribution should be regenerated for use.

Run these commands:

/bin/rm /etc/ssh/ssh_host_* &&
/usr/bin/ssh-keygen -t rsa1 -b 1024 -f /etc/ssh/ssh_host_key -N '' &&
/usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' &&
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''


The output should look something like this:

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.
The key fingerprint is:
39:c4:0c:3f:4f:c8:67:4e:f9:c4:a0:30:c6:bc:45:c2 root@(none)
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.
The key fingerprint is:
c0:80:d6:a0:e4:65:df:c0:f0:bd:2b:0a:aa:fe:ea:fe root@(none)
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.
The key fingerprint is:
46:5a:c6:24:fa:e8:07:8b:28:f9:f5:50:4b:cd:b8:e7 root@(none)


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS