diff options
author | Philip Hands <phil@hands.com> | 2024-08-01 14:03:06 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2024-08-17 03:19:28 +0200 |
commit | 674b8f30f0dbacd787eb1e4e7e1ece34b5543d8f (patch) | |
tree | 410045ef0b1902c1cbfb67861e70173d40624ddf /contrib | |
parent | put the -i before -[pP] (matching man pages) (diff) | |
download | openssh-674b8f30f0dbacd787eb1e4e7e1ece34b5543d8f.tar.xz openssh-674b8f30f0dbacd787eb1e4e7e1ece34b5543d8f.zip |
avoid extra space when no arg given to -i option
SSH-Copy-ID-Upstream: feca9e67e6e37c5653445d1c733569d7abb1770e
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ssh-copy-id | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index ac0db7b64..8c84385d3 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id @@ -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 |