FreeBSD8.2 to FreeBSD9.0 upgrade – ssh key issue

Well in a desperate attempt to get ahead of the curve, I decided to update to FreeBSD 9.0 RELEASE before I put my new mailout servers into production. All has gone well except that on boot I get the following message:

Starting sshd.
Could not load host key: /etc/ssh/ssh_host_ecdsa_key

Why? well that file does not exist and there is no key of type ‘ecdsa’. We just need to create the required key, which os no biggy…

/usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key.
Your public key has been saved in /etc/ssh/
The key fingerprint is:
The key's randomart image is:
+--[ECDSA  256]---+
|     ..   ..... .|
|     ..   o.oE. o|
|      .. o o o.oo|
|       ...+   +.=|
|      . S. . o + |
|       . +    .  |
|          .      |
|                 |
|                 |

Error now gone!

This entry was posted in FreeBSD Administration and tagged , , . Bookmark the permalink.

Leave a Reply