From dd52c3059268878b9c5ce56b6e2e83f6649f48e0 Mon Sep 17 00:00:00 2001 From: dtucker Date: Fri, 3 Sep 2021 07:27:03 +0000 Subject: [PATCH] Mention using ssh -i for specifying the public key file in the case where the private key is loaded into ssh-agent but is not present locally. Based on patch from rafork via github PR#215, ok jmc@ --- usr.bin/ssh/ssh.1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/ssh.1 b/usr.bin/ssh/ssh.1 index 77502515b6a..2e009b25653 100644 --- a/usr.bin/ssh/ssh.1 +++ b/usr.bin/ssh/ssh.1 @@ -33,8 +33,8 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: ssh.1,v 1.425 2021/07/28 05:57:42 jmc Exp $ -.Dd $Mdocdate: July 28 2021 $ +.\" $OpenBSD: ssh.1,v 1.426 2021/09/03 07:27:03 dtucker Exp $ +.Dd $Mdocdate: September 3 2021 $ .Dt SSH 1 .Os .Sh NAME @@ -288,6 +288,10 @@ authentication. .It Fl i Ar identity_file Selects a file from which the identity (private key) for public key authentication is read. +You can also specify a public key file to use the corresponding +private key that is loaded in +.Xr ssh-agent 1 +when the private key file is not present locally. The default is .Pa ~/.ssh/id_dsa , .Pa ~/.ssh/id_ecdsa , -- 2.20.1