Connections not sending public key

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
harryseldon
Posts: 13
Joined: Thu Apr 19, 2012 1:55 pm

Connections not sending public key

Post by harryseldon »

I very sporatically have an issue when using public key authentication where the public key isn't sent and the private key is:

debug1: Authentications that can continue: publickey,password,keyboard-interactive

debug1: Next authentication method: publickey

debug1: Trying private key: /sftp/.ssh/id_rsa

debug1: Trying private key: /sftp/.ssh/id_dsa

debug2: we did not send a packet, disable method

debug1: No more authentication methods to try.

FOTS1373 Permission denied (publickey,password,keyboard-interactive).

Ý86.716¨ Connection closed
CoZBatchÝI¨: returning rc=exitcode=255

This isn't happening for all jobs. I can't tell a difference between ones that work correctly and ones that don't. We submit the sftp jobs through our mainframe scheduler, Zeke, whose ID has surrogate authority to our service ID to the key pair. Any idea why this happens and how to fix it?
harryseldon
Posts: 13
Joined: Thu Apr 19, 2012 1:55 pm

Re: Connections not sending public key

Post by harryseldon »

Figured it out. The problem was in the job card. When doing surrogate authority the USER= needs to be in the jobcard. The job having issues had that statement in the *MAIN line so the surrogate authority was never getting passed and the Co:Z client was using the scheduler's authority to access the keys, which it doesn't have.
Post Reply