From ab3cb2e9c40c1c8623fb419743f32cb388610f15 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 7 Jul 2020 20:26:05 +0200 Subject: ssh: Use RSA keys because JSch for android is outdated --- ssh/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssh') diff --git a/ssh/server.c b/ssh/server.c index cdc3dbd..96fc09e 100644 --- a/ssh/server.c +++ b/ssh/server.c @@ -406,9 +406,9 @@ cleanup: static void generate_key(const char *outfile) { ssh_key host_key; - int ret = ssh_pki_generate(SSH_KEYTYPE_ED25519, 0, &host_key); + int ret = ssh_pki_generate(SSH_KEYTYPE_RSA, 4096, &host_key); if (ret != SSH_OK) { - fprintf(stderr, "Key generation failed (ed25519)!\n"); + fprintf(stderr, "Key generation failed (RSA4096)!\n"); exit(1); } @@ -423,7 +423,7 @@ static void generate_key(const char *outfile) { exit(1); } - printf("ed25519 host key generated and written to '%s'.\n", outfile); + printf("RSA4096 host key generated and written to '%s'.\n", outfile); } static void usage(const char *argv0) { -- cgit v1.2.3-70-g09d2