The issue I believe is because openssh-server.postinst doesn't add new
HostKey to an existing sshd_config file. Because of this, newer key
format are not generated in postinst. IMHO, they should always be
generated via ssh-keygen -A and the admin would then be free to
include a HostKey directive
A simple `dpkg-reconfigure openssh-server` also does the trick:
root@host:/# dpkg-reconfigure openssh-server
Creating SSH2 ECDSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.
--
You received this bug notification because you are a member of Ubuntu
Server Team,
I setup a vServer with ubuntu 12.04.02 LTS last week using the image
that my provider has supplied and I get the same error reported from
logwatch.
error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Looking at the /etc/ssh I only see:
ssh_config
sshd_config
ssh_host_dsa_key
Had the same issue here, using also a hosting provider.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1005440
Title:
Could not load host key: /etc/ssh/ssh_host_ecdsa_key when
Michael Nagel are you using a version installed by a hosting provider?
yes, this is the case
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1005440
Title:
Could not load host key:
I was affected by this bug too, using Ubuntu Server 12.04.1 LTS, with
openssh-server 1:5.9p1-5ubuntu1. Using the following command line solved
the issue:
sudo ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
I think it is important to note the following:
-- I did not install Ubuntu
The correct Syntax is as following :
sudo ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ”YourNew
Passphrase
Instead of YourNew Passphrase you can use any word that you like as
long as it has more as 4 charachters.
--
You received this bug notification because you are a member of Ubuntu
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ”
Generating public/private ecdsa key pair.
passphrase too short: have 3 bytes, need 4
Saving the key failed: /etc/ssh/ssh_host_ecdsa_key.
The above mentioned solution doesn't work.
--
You received this bug notification because you are a
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: openssh (Ubuntu)
Status: New = Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
i did now, and it fixes the issue. i think the need to do this manually
is somewhat unfortunate, however.
** Changed in: openssh (Ubuntu)
Status: Incomplete = New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1005440
Title:
Could not load host key: /etc/ssh/ssh_host_ecdsa_key when connecting
To manage notifications about this bug go to:
Have you done the following:
sudo ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ”
Thanks
chuck
** Changed in: openssh (Ubuntu)
Importance: Undecided = Low
** Changed in: openssh (Ubuntu)
Status: New = Incomplete
--
You received this bug notification because you are a
12 matches
Mail list logo