× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Gerald,

When I have a need of using multiple keys for a user ( that seems to happen over time quite frequently ) I normally create a streamfile named config in the user's .ssh directory. Use CCSID 819.
Be careful to only give the user *rw authority to the file, otherwise issues might occur.
In the file you can put entries like:

Host host1
Hostname sftp.filetransfer.company.com
Identityfile ~/.ssh/nameofprivatekey
User remoteuser

Host host2
Hostname 123.123.123.123
Port 33333
Identityfile ~/.ssh/nameofanotherprivatekey
User remoteuser2

And so on........

Your commandline will then be as easy as

sftp host1

Also notice Jacks remark about naming the key-files when you execute the ssh-keygen command.
But it's a good safety routine to backup/rename current key-pair before creating a new pair.

Best regards

Stefan


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.