summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2017-08-22 16:24:48 +0100
committerColin Watson <cjwatson@debian.org>2017-08-22 16:25:18 +0100
commit801bf6e20895d448d4d25327370c039698ebae98 (patch)
treed26a3913cc91c8e9f530511f01e90f081018453a /sshconnect.c
parent270afdb3d148062730276f507055d2163f463d3b (diff)
parentcda04ac1f5c69710187e602043758063479c3c65 (diff)
Quote IP address in suggested "ssh-keygen -f" calls (closes: #872643).
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 120f09458..d9ed5910b 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1084,7 +1084,7 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1084 error("Offending key for IP in %s:%lu", 1084 error("Offending key for IP in %s:%lu",
1085 ip_found->file, ip_found->line); 1085 ip_found->file, ip_found->line);
1086 error(" remove with:"); 1086 error(" remove with:");
1087 error(" ssh-keygen -f \"%s\" -R %s", 1087 error(" ssh-keygen -f \"%s\" -R \"%s\"",
1088 ip_found->file, ip); 1088 ip_found->file, ip);
1089 } 1089 }
1090 } 1090 }
@@ -1095,7 +1095,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
1095 error("Offending %s key in %s:%lu", key_type(host_found->key), 1095 error("Offending %s key in %s:%lu", key_type(host_found->key),
1096 host_found->file, host_found->line); 1096 host_found->file, host_found->line);
1097 error(" remove with:"); 1097 error(" remove with:");
1098 error(" ssh-keygen -f \"%s\" -R %s", host_found->file, host); 1098 error(" ssh-keygen -f \"%s\" -R \"%s\"",
1099 host_found->file, host);
1099 1100
1100 /* 1101 /*
1101 * If strict host key checking is in use, the user will have 1102 * If strict host key checking is in use, the user will have