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:
f0:32:61:16:ce:f9:e6:77:29:30:19:f8:ef:3e:50:5d 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:
75:ef:4d:e1:9e:42:bb:eb:9e:14:36:eb:c8:c4:d5:c7 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:
97:e1:c1:bc:1d:04:38:18:e8:ce:07:bd:7c:52:72:37 root@(none)


~~~
Please read our Terms of Use
The Mountain Climbing Journal filesystem has borrowed heavily from various pieces of Linux From Scratch.

Copyright 2006-2008 NoNIC.org

Created by:
MCJ
MCJ CMS