From 8d1d9eb6de37331e872700e9e399a3190cca1242 Mon Sep 17 00:00:00 2001 From: "dtucker@openbsd.org" Date: Fri, 3 Sep 2021 07:27:03 +0000 Subject: upstream: 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@ OpenBSD-Commit-ID: 2282e83b0ff78d2efbe705883b67240745fa5bb2 --- ssh.1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ssh.1 b/ssh.1 index 77502515..2e009b25 100644 --- a/ssh.1 +++ b/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 , -- cgit v1.2.3