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
This commit is contained in:
dtucker@openbsd.org 2021-09-03 07:27:03 +00:00 committed by Darren Tucker
parent eb4362e5e3
commit 8d1d9eb6de
1 changed files with 6 additions and 2 deletions

8
ssh.1
View File

@ -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 ,