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.
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!
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?
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.
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.
Within iNav, just right clicked, copy and paste to my desktop.
And can you see it if you look at it with something like WRKLNK from the Command line in IBM i?
Hi Bob. Yes, I see it with wrklnk. It looks like this:
OBJECT LINK TYPE
id_rsa.pub STMF
Can you actually see it? What happens when you DSPF (option 5 from WRKLNK)? Is there anything in it?
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!
Try FTP'ing the file to your PC. I use FileZilla (its free) to pull things off the IBM i system.
I'll check it out. Thanks again, Bob.
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