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



If they have given you the key, you can just add it to the batch user's
.ssh/known_hosts by editing the file (or making a copy, editing that, and
replacing the old one with the edited copy). You can also use ssh-keyscan
to get the remote system's key automatically.
 
eg. if you want to blindly trust the server's keys:
 
ssh-keyscan remote-system.example.com >> ~user2/.ssh/known_hosts
 

----- Original message -----
From: "midrange" <franz9000@xxxxxxxxx>
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxxxxxxxx>
Cc:
Subject: RE: sftp partner has new public key
Date: Sat, Feb 23, 2019 3:44 PM
 
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 [[1]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][2]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][3]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][4]https://amazon.midrange.com
      

    

References

   Visible links
   1. [5]https://lists.midrange.com/mailman/listinfo/midrange-l
   2. [6]https://archive.midrange.com/midrange-l
   3. [7]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: [8]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
[9]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: [10]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: [11]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 [12]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: [13]https://amazon.midrange.com
 

 

References

Visible links
1. mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx
2. https://lists.midrange.com/mailman/listinfo/midrange-l
3. https://archive.midrange.com/midrange-l
4. https://amazon.midrange.com/
5. https://lists.midrange.com/mailman/listinfo/midrange-l
6. https://archive.midrange.com/midrange-l
7. https://amazon.midrange.com/
8. https://lists.midrange.com/mailman/listinfo/midrange-l
9. https://archive.midrange.com/midrange-l
10. https://amazon.midrange.com/
11. https://lists.midrange.com/mailman/listinfo/midrange-l
12. https://archive.midrange.com/midrange-l
13. https://amazon.midrange.com/

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.