So ... since you mention SSH, clearly you're talking about your SSH public key.

To use your SSH key pair for signing on to a target system, add your public key to ~/.ssh/authorized_keys. You'll need to get signed on at least the first time using other means (such as password) OR you will need to have someone on the target system with privileges add your public key to that file. In all cases, simply append your public key to your authorized_keys file. It's just that easy.

WARNING:
The advent of "file tagging" (my term if not the official term) in USS means that your ~/.ssh/authorized_keys file might be in the wrong character set for SSHD. I struggled with this at some length until I realized what was happening. In the end, I tagged authorized_keys as "plain" (or untagged) and then was able to append my public key (as EBCDIC in the USS shell).

Newer versions of SSH/SSHD might have the musical character set capability, but the release available to me did not. They surely added that capability for to help people, but the law of unintended consequences reigns.


-- R; <><



On 3/4/26 2:27 PM, Ituriel do Neto wrote:
Hi all,

I have a question and would really appreciate your help.
If a public key is generated on Linux, is there a way to send it to z/OS to 
establish an SSH connection between z/OS and an SFTP server on Linux?

Thanks in advance.

Best Regards

Ituriel do Nascimento Neto
z/OS System Programmer

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email [email protected] with the message: INFO IBM-MAIN

--
-- R; <><

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to