× 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.



It's a Host key they sent out to all partners.

I see the command to remove previous key.
Don't I need a command to store the new key?

This sftp is embedded within a large batch process - I could (if need to) piece together the script to do it interactively.

Jim



-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Kevin Adler
Sent: Saturday, February 23, 2019 4:31 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Re: sftp partner has new public key

What type of key is it? Host key or user key?

If it's a host key (you're connecting to them), you can use the following
command to remove their entries from the current user's known_hosts file:

ssh-keygen -R remote-hostname.example.com

Once that is done, the next time you connect it will ask you to validate
the remote key.


If it's a user key (they're connecting to you), they (or you) will need to
add their public key to the remote user's authorized_keys file. ie
$HOME/.ssh/authorized_keys

It's merely a copy/paste operation, however there are caveats: it must be
done in ASCII mode *and* must have Unix line endings.


----- Original message -----
From: "midrange" <franz9000@xxxxxxxxx>
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>
To: <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc:
Subject: sftp partner has new public key
Date: Sat, Feb 23, 2019 3:17 PM

Set up sftp years ago with public/private key authentication.

Partner has new public key.

When I read various IBM docs, it only seems to start from scratch.

Is there a command (Pase I assume) to just update a partner's public
key?

V7R3

Jim

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [1]https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [2]https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: [3]https://amazon.midrange.com




References

Visible links
1. https://lists.midrange.com/mailman/listinfo/midrange-l
2. https://archive.midrange.com/midrange-l
3. https://amazon.midrange.com/
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.