]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
avoid extra space when no arg given to -i option
authorPhilip Hands <phil@hands.com>
Thu, 1 Aug 2024 12:03:06 +0000 (14:03 +0200)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 17 Aug 2024 01:19:28 +0000 (11:19 +1000)
SSH-Copy-ID-Upstream: feca9e67e6e37c5653445d1c733569d7abb1770e

contrib/ssh-copy-id

index ac0db7b6414f1a335f7e0ea04afc24f71092652b..8c84385d36af1affa36fdeddbcea670a2447ddb6 100644 (file)
@@ -379,7 +379,7 @@ else
 
        Number of key(s) added: $ADDED
 
-       Now try logging into the machine, with: "${SFTP:-ssh}${SEEN_OPT_I:+ -i $PRIV_ID_FILE}${SSH_PORT:+ -${PORT_OPT:-p} $SSH_PORT} ${OPTS_USER_HOST}"
+       Now try logging into the machine, with: "${SFTP:-ssh} ${SEEN_OPT_I:+-i${PRIV_ID_FILE:+ $PRIV_ID_FILE} }${SSH_PORT:+-${PORT_OPT:-p} $SSH_PORT }${OPTS_USER_HOST}"
        and check to make sure that only the key(s) you wanted were added.
 
        EOF