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 - 1611 days ago
Last viewed on: 21 Jun 2017 (3030 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)

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: 4 years 10 months 25 days 22 hours 23 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: 4 years 10 months 25 days 22 hours 3 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: 4 years 10 months 25 days 22 hours 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: 4 years 10 months 25 days 21 hours 49 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: 4 years 10 months 25 days 17 hours 59 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: 4 years 10 months 23 days 3 hours 21 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: 4 years 10 months 23 days 3 hours 16 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: 4 years 10 months 23 days 3 hours 12 minutes ago
Edited: Mon, 30 Jul, 2012 at 10:19:10 (1788 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: 4 years 10 months 23 days 2 hours 58 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: 4 years 10 months 23 days 2 hours 56 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: 4 years 10 months 23 days 2 hours 46 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