0

I am trying to create a certificate based tunnel but when I type this line:

sudo ipsec pki --gen --type rsa --size 4096 --outform pem > private/strongswanKey.pem

it returns me private/strongswanKey.pem: Permission denied. what should I do?

Pino
  • 101
  • 1
  • See [When using sudo with redirection, I get 'permission denied'](http://askubuntu.com/questions/230476/when-using-sudo-with-redirection-i-get-permission-denied) – steeldriver Mar 16 '17 at 16:52
  • it worked using `sudo -i`. Thanks for the advice – Pino Mar 16 '17 at 17:10
  • 3
    Does this answer your question? [How to solve "permission denied" when using sudo with redirection in Bash?](https://askubuntu.com/questions/230476/how-to-solve-permission-denied-when-using-sudo-with-redirection-in-bash) – Kulfy Sep 07 '20 at 11:04

0 Answers0