Stefan:

Thank you. That did indeed create two files. The instructions asked me to call it: “id_rsa.pub”. It created two files: id_rsa.pub and id_rsa.pub.pub.

You pointing that out lead me to the solution, where when the keygen command asks for a name, just hit enter. it named it id-rsa, and id-rsa.pub.

I put in the .pub version and it worked.

Thanks again.

Jim Oberholtzer
Agile Technology Architects
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of stefan@xxxxxxxxxx <stefan@xxxxxxxxxx>
Date: Thursday, April 16, 2026 at 11:33 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Adding SSH key to GitHub to connect V7R4 system

Something is wrong here - that cmd should create two files:
A private key and
A public key with the extension .pub.
The latter to be installed on the 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@xxxxxxxxxx<mailto:stefan@xxxxxxxxxx>



________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
Sent: Thursday, April 16, 2026 18:16
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Adding SSH key to GitHub to connect V7R4 system

I’m trying to get a V7R4 system to connect with GitHub, in part to use BOB in a prototype project. Following the instructions from the TechExchange “Unlocking Modern Development on IBM i with GitHub”, I generated the ssh key with:

ssh-keygen -t rsa -b 2048 -C “myemail@xxxxxxxxxxx”

That creates a file, which I then copied to the GitHub site and tried to add an SSH key. GitHub issues the following message:

Key is invalid. You must supply a key in OpenSSH public key format

So how do I create a key in OpenSSH public key format if the ssh-keygen command on IBM i does not create it?


--

Jim Oberholtzer
Agile Technology Architects
--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.