Bug 2510 - building fail for unsupported key type
Summary: building fail for unsupported key type
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 7.1p1
Hardware: ix86 Linux
: P5 critical
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-28 23:39 AEDT by flavio.gallucci
Modified: 2016-08-02 10:41 AEST (History)
1 user (show)

See Also:


Attachments
building log (198.51 KB, text/x-log)
2015-11-28 23:39 AEDT, flavio.gallucci
no flags Details
building script (492 bytes, application/octet-stream)
2015-12-01 06:09 AEDT, flavio.gallucci
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description flavio.gallucci 2015-11-28 23:39:26 AEDT
Created attachment 2760 [details]
building log

Hi. I have problem with openssl-7.1p1 building. It give me this error 'Saving key "/etc/ssh/ssh_host_key" failed: unknown or unsupported key type'. Any idea? Thanks
Comment 1 flavio.gallucci 2015-11-28 23:49:46 AEDT
I'have no problem with 6.x versions
Comment 2 Jakub Jelen 2015-12-01 00:04:54 AEDT
Openssh-7.x obsoletes SSH 1 protocol, which means it does not know anything about the old key format.

You are probably using some build-script that counts with them and generates them during the build time. This is not a bug in openssh, but in your build script and there is no way to troubleshoot it, when you post only the log, but not the script or things you made to achieve such results.
Comment 3 flavio.gallucci 2015-12-01 06:09:37 AEDT
Created attachment 2762 [details]
building script
Comment 4 flavio.gallucci 2015-12-01 06:23:47 AEDT
After installation I don't do anything. When I'm trying to connect only with password authentication, the server refuse it.
Thanks
Comment 5 flavio.gallucci 2015-12-01 15:22:33 AEDT
http://hastebin.com/yakutehipu.hs

This is the command 'ssh -v 192.168.1.130' results.
Comment 6 Jakub Jelen 2015-12-02 01:26:32 AEDT
I can reproduce your results with openssh-7.1p1, but not with current HEAD. Anyway, it is not a error, but only non-fatal warning since such a key is not useful for anything.

This problem is basically duplicate of bug #2459 and was actually fixed in this commit and will be in the next release:
https://anongit.mindrot.org/openssh.git/commit/?id=cfffbdb10fdf0f02d3f4232232eef7ec3876c383

The non-working authentication is different issue, but to investigate it, you should check for errors in the server log.
Comment 7 flavio.gallucci 2015-12-02 02:45:57 AEDT
Thanks. SOLVED

I run sshd in debug mode (sshd -d). 

Root login with password was enable in 6.x versions.
In 7.x releases I had to set in sshd_config 'PermitRootLogin yes'.

I'm sorry and I thanks for the time.
I'm compiling an S.O. from source and I'm testing the applications from root account too.
Comment 8 Damien Miller 2016-08-02 10:41:43 AEST
Close all resolved bugs after 7.3p1 release