ployground / bsdploy

BSDploy is a tool to provision, configure and maintain FreeBSD jails.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rsa1: unknown or unsupported key type

s4ms0n opened this issue · comments

getting the:
unknown or unsupported key type
in line 97:
('ssh_host_key', '-t rsa1 -b 1024'),
of the bootstrap_utils.py file.
Any reason for the ssh key to be rsa1 and not just rsa?
Thanks

I guess newer versions of ssh finally stopped supporting such old keys, I guess we should as well. Can you try to find out what version of ssh (or OpenSSH) you have?

OpenSSH_7.3p1-hpn14v11, OpenSSL 1.0.2k 26 Jan 2017 on client and
OpenSSH_7.2p2, OpenSSL 1.0.2j-freebsd 26 Sep 2016 on server (FreeBSD 11.0)
neither supports rsa1.
i would also suggest dropping the support for rsa1, or at least make it configurable.

on #108 I simply tried changing rsa1 to rsa as suggested by @s4ms0n and while i was at it i increased the key size to a somewhat more modern (but still moderate) value of 2048.

This has worked locally for me, i'll let @fschulze review first and do the merge, though

works for me, closing the issue