Skip to content

Stop generating DSA SSH keys #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pycheribuild/projects/disk_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def generate_ssh_host_keys(self):
# -t type Specifies the type of key to create. The possible values are "rsa1" for protocol version 1
# and "dsa", "ecdsa","ed25519", or "rsa" for protocol version 2.

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