]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Show identity file in 'ssh' command
authorShreyas Mahangade <smahanga@redhat.com>
Mon, 29 Jul 2024 11:25:28 +0000 (16:55 +0530)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 17 Aug 2024 01:19:24 +0000 (11:19 +1000)
- Previously no identity file is shown in "ssh" command output on the line "Now try logging into the..."
- This commit makes sure whenever "ssh-copy-id" with "-i" is invoked, it also reflects in "ssh" command

SSH-Copy-ID-Upstream: 58e022ec26cb2315eb3be581d01e0ba787082428

contrib/ssh-copy-id

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