Menu

#116 ebcdic id_rsa and id_rsa.pub is not working

v1.0 (example)
open
nobody
None
5
2017-10-17
2017-10-17
No

It appears RSA key has to be ascii or otherwise doesnt work..... I have id_rsa and id_rsa.pub as EBCDIC .. but looks like JSch reads the files using FileInputStream to load the files in to byte arrays.
In order to make it work in ebcdic systems, I did two things:
1. convert id_rsa and id_rsa.pub to ascii
2. modify IdentityFile.getAlgName() to use [new String(kpair.getKeyTypeName(), "UTF-8")] , to override the default ebcdic encoding in my system.

Discussion


Log in to post a comment.