Kevin, 
Thank you very much for your help. 
We are now back in business. 
Very much appreciated, 
Jim 
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Kevin Adler
Sent: Saturday, February 23, 2019 6:06 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: RE: sftp partner has new public key
   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/
--
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.