Can I use my ssh-public-key to decrypt a file?

前端 未结 3 1099
情书的邮戳
情书的邮戳 2021-01-30 11:37

I\'m trying to find a way to decrypt an encrypted file on a \'virgin\' EC2-instance. These EC-instances I use (Ubuntu Lucid) only hold my AWS-created public ssh-key. If can use

3条回答
  •  我在风中等你
    2021-01-30 12:15

    You can use a public key to encrypt a file but you will need the corresponding private key to decrypt it. So, yes, you should be able to use your ssh-key to encrypt/decrypt a file, as long as you have access to both the public and private key.

提交回复
热议问题