Reputation: 29
I was struggling with this problem. I want to generate a ssh key by Jsch and send it through email. If I want to keep that private key file be able to use, I need to set the file permission, either way through setting PosixFilePermission or chmod 400. But after I send the file through email and after download from that email, the file's permission gets reset. Is there anyway I can achieve that goal?
Upvotes: 0
Views: 117