Rionash
Rionash

Reputation: 29

How can I keep the same permission of ssh key file while sending it through apache-common-email

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

Answers (0)

Related Questions