[prev in list] [next in list] [prev in thread] [next in thread]
List: centos
Subject: Re: [CentOS] SFTP - Private/Public Authentication Keysets Beyond The First Set
From: "James B. Byrne via CentOS" <centos () centos ! org>
Date: 2018-12-13 14:49:33
Message-ID: 7fe4701d8ad14a241ca9c48f4bb8db4e.squirrel () webmail ! harte-lyne ! ca
[Download RAW message or body]
On Wed, December 12, 2018 16:40, Gary Braatz wrote:
> Inclusion of the -i flag and the location of the private key solved
> the
> problem.
>
You can also set up a personalised ssh config file in the ~/.ssh
directory of the user employed to establish the sftp/ssh connections:
#BOF
# /home/myuser/.ssh/config
# Host parameter is any arbitrary string.
# sftp remoteuserid@first.site.com ==
Host site1
HostName first.site.com
User remoteuserid
IdentityFile /home/myuser/.ssh/id_rsa
# sftp otheruserid@second.other.com ==
Host site2
HostName second.other.com
User otheruserid
IdentityFile /home/myuser/.ssh/rsa_vendor2
#EOF
Then just run 'sftp site1' or 'sftp site2' to connect as required.
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic