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/
As an Amazon Associate we earn from qualifying purchases.