Integrated Version control setup issue

I’m getting the error “Saving key “git-deploy-key” failed: Permission denied” When I try to generate the ssh key following the rasa x setup tutorial. I followed the tutorial exactly up to that point

Anyone know how to solve this?

1 Like

Have you tried to run the command as root?

sudo ssh-keygen -t rsa -b 4096 -f git-deploy-key

2 Likes

Thank you for your response!

No I’ve only tried it as christianthomas@rasax-server

How do I get to root@rasax-server?

I run this command not inside the docker container of rasa-x server. I run the command on the docker host at /etc/rasa

Got the same Problem here. Somebody found any solution for this issue?

Best regards, Tobias!

Worked thx!!

This sounds like an ownership issue in the folder. Try to cd to the folder where you want to generate your SSH keys (I just use the folder where my Rasa files are put, i.e., /etc/rasa) and make sure you have ownership of the folder.

sudo chown $USER /etc/rasa <or whereever you want to generate your keys>

To avoid further (possibly unrelated) issues, you may also want to throw in an -R into the command at the end. The -R stands for recursive, meaning you will be given ownership of ALL subfolders and files instead of just the target folder.

sudo chown $USER /your/folder/here/ -R

have you tried to run the command as root?

sudo ssh-keygen -t rsa -b 4096 -f git-deploy-key

Or check Linux Guide

1 Like

Thanks a lot @Aragorn Your answer worked for me!!