This can mean two things: You are not supplying the correct (or any) key from the client (Mainframe) side OR the client's (Mainframe) public key that you generated hasn't been set up for the user on the remote system.
Can you try running ssh -v <user>@<host> (where <user> is the user on the remote server that you are trying to SFTP to and <host> is the remote host IP/FQDN). -v will print a bunch of debug output. Strip out anything that you think is confidential (like IPs) and paste it here. It will tell you whether your key has been offered to the remote host and it declined. (Note: We are using the SSH command and not SFTP. However, this isn't a problem because SFTP would use the same mechanic as SSH.) Cheers - David ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
