Don't generate dsa key for server-demo

This commit is contained in:
Wildan M 2025-12-31 16:44:43 +07:00
parent 6eb4618c82
commit 34e9d4494d
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -248,8 +248,7 @@ path = "/root/keygen.sh"
data = """
#!/usr/bin/env bash
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""