Midrange News for the IBM i Community


Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
Copying the public key to Windows?
has no ratings.
Published: 27 Jul 2012
Revised: 23 Jan 2013 - 4111 days ago
Last viewed on: 26 Apr 2024 (5609 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Copying the public key to Windows? Published by: Chris Proctor on 27 Jul 2012 view comments(11)

Hello. I've created my private/public keys for SSH and I'm trying to copy it to windows so I can send it to the vendor, but whenever I copy it, it is 0 bytes. It's the id_rsa.pub file I'm trying to copy. Can anyone tell me what I'm doing wrong?

Thanks!

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 29 days 17 hours 35 minutes ago

Copy it to Windows from IBM i?

Is it on the iFS? Is its CCSID correct? Does the transport process do CCSID conversion? (You using FTP?) Is it plain ASCII or binary data?

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 29 days 17 hours 15 minutes ago

Wow. Not sure I can answer all your questions, Bob. I generated the public key using ssh key-gen. It's on the IFS in my .ssh folder. It looks like it's CCSID 819, whatever that means. I'm trying to get it to windows and zip it so that I won't have an issue trying to email it. According to the documentation I found, I should just be able to copy the file down.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 29 days 17 hours 12 minutes ago

CCSID(819) is PC ASCII so it should be fine. How are you "copying it down"?

Sometimes FTP or Client Access or non-iSeries centric apps could convert it to ASCII--meaning it thinks its in EBCDIC and it tries to convert it. But it is already in ASCII so make sure if there is an option for "no conversion" or "binary" you use that option.

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 29 days 17 hours 1 minutes ago

Within iNav, just right clicked, copy and paste to my desktop.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 29 days 13 hours 11 minutes ago

And can you see it if you look at it with something like WRKLNK from the Command line in IBM i?

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 26 days 22 hours 33 minutes ago

Hi Bob. Yes, I see it with wrklnk. It looks like this:

OBJECT LINK TYPE

id_rsa.pub STMF

 

 

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 26 days 22 hours 28 minutes ago

Can you actually see it? What happens when you DSPF (option 5 from WRKLNK)? Is there anything in it?

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 26 days 22 hours 24 minutes ago
Edited: Mon, 30 Jul, 2012 at 10:19:10 (4288 days ago)

Hi Dale. Yes, there is something in it, but in iNav when I copy and paste to windows, nothing.... I tried a CPYFRMSTMF and it said it's not an obj type in qsys.lib, so that didn't help.

 

Any ideas? I just need to get this key to the bank.

Thanks!

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 26 days 22 hours 10 minutes ago

Try FTP'ing the file to your PC. I use FileZilla (its free) to pull things off the IBM i system.

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 26 days 22 hours 7 minutes ago

I'll check it out. Thanks again, Bob.

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Copying the public key to Windows?
Posted: 11 years 8 months 26 days 21 hours 58 minutes ago

Bob. Unfortunately, the site is blocked from me downloading firezilla, but I was able to FTP the file to my PC and that worked. Duh!!

Anyway, thanks for the help!

Chris