aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-07 20:26:05 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-07 20:26:05 +0200
commitab3cb2e9c40c1c8623fb419743f32cb388610f15 (patch)
tree701089cfa313c13646a13defab72c3e05d273128
parentca2e59be92ff7767e5c30f4d4d3035da522cce42 (diff)
ssh: Use RSA keys because JSch for android is outdated
-rw-r--r--ssh/server.c6
1 files changed, 3 insertions, 3 deletions
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) {