Re: Re[2]: Help with SFTP

"stefan-6HgPSzB/[email protected]" <stefan-6HgPSzB/[email protected]> Tue, 21 Jul 2026 17:25:27 +0000
Newsgroups gmane.comp.hardware.ibm.midrange
Message-ID <DU4PR02MB12080FA4E10D23877A8D29F6CFFC22@DU4PR02MB12080.eurprd02.prod.outlook.com>
You need to transfer the public key ( id_rsa.pub )  to the server you are g=
oing to connect to:
=95 Transfer id_rsa.pub to the server.
Ways to transfer the id_rsa.pub file:
=95 Use traditional FTP.
=95 Use Windows Networking (/QNTC or NetServer)
=95 Use iNav to get the key to your PC, then transfer in E-mail or similar.

Then you need to add the public key to the user's authorized_keys file

=95 Add the contents of id_rsa.pub to the end of the authorized_keys file.
=95 If you are running the server, add id_rsa.pub to that user=92s authoriz=
ed keys file, from within PASE type:
cat /tmp/id_rsa.pub >> /home/user-id/.ssh/authorized_keys

Then test with ssh -T userid@server


Best regards



Stefan



--

No trees were killed in the sending of this message, but a large number of =
electrons were terribly upset.



Stefan Tageson

+46 732 369934

stefan-6HgPSzB/[email protected]<mailto:stefan-6HgPSzB/[email protected]>



________________________________
From: MIDRANGE-L <midrange-l-bounces-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org> on behalf of gio.c=
ot via MIDRANGE-L <[email protected]>
Sent: Tuesday, July 21, 2026 18:42
To: 'Midrange Systems Technical Discussion' <[email protected]>
Cc: gio.cot <[email protected]>
Subject: R: Re[2]: Help with SFTP

Hi Stefan .. be patient
I have re-done the steps sohwed at :
https://www.ibm.com/support/pages/configuring-ibm-i-ssh-sftp-and-scp-clients
-use-public-key-authentication
The olny step that i didn't  do,  was this:  "Send the public key that was
generated in Step 6b to the SSH server administrator" ; it could be this the
problem that cause the error "Permission denied
(publickey,gssapi-keyex,gssapi-with-mic,password)"  ??
Thanks in advance

>>You said you followed this document:
https://www.ibm.com/support/pages/configuring-ibm-i-ssh-sftp-and-scp-clients
-use-public-key-authentication
>>If so, you have generated rsa, ecdsa and ed25519 key pairs.
>>The log output shows that the server tries authentication with an rsa.pub
key. The private key that you need to supply should likely be a key named
id_rsa.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related qu=
estions.

-- =

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related qu=
estions.