It is difficult to script things when scp requires the brackets but ssh forbids them. --- ssh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssh.c b/ssh.c index 70631c24..7abfe51a 100644 --- a/ssh.c +++ b/ssh.c @@ -942,6 +942,9 @@ main(int ac, char **av) if (!host) usage(); + /* Allow [brackets] around IPv6 addresses for consistency with scp. */ + host = cleanhostname(host); + host_arg = xstrdup(host); #ifdef WITH_OPENSSL -- 2.13.0 _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev