Skip to content

Commit 2bfa20c

Browse files
authored
Stop generating DSA SSH keys (#414)
They are obsolete and on sufficiently new versions of FreeBSD support for them is compiled out, resulting in an error from ssh-keygen.
1 parent 1494e52 commit 2bfa20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycheribuild/projects/disk_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ def generate_ssh_host_keys(self):
10341034
# -t type Specifies the type of key to create. The possible values are "rsa1" for protocol version 1
10351035
# and "dsa", "ecdsa","ed25519", or "rsa" for protocol version 2.
10361036

1037-
for key_type in ("rsa", "dsa", "ecdsa", "ed25519"):
1037+
for key_type in ("rsa", "ecdsa", "ed25519"):
10381038
# SSH1 protocol uses just /etc/ssh/ssh_host_key without the type
10391039
private_key_name = "ssh_host_key" if key_type == "rsa1" else "ssh_host_" + key_type + "_key"
10401040
private_key = ssh_dir / private_key_name

0 commit comments

Comments
 (0)