I'm trying to expose an internally developed R package tracked in Github using SSH but we're encountering issues with the SSH key passphrase. These are the steps I have followed so far:
- Created a user
my_user_namein the rstudio-pm group
- Generated a new SSH key id_ed25519 that I added to the Github account. This command
ssh-add -K ~/.ssh/id_ed25519failed because the server is based on ubuntu, so I used
- I ran rspm commands under
- When I tried to import the SSH key, it says that the key is passphrase protected
rspm import --name=id_ed25519 --path=/home/ubuntu/.ssh/id_ed25519 --passphrase-path=/home/ubuntu/.ssh/passphrase
Error: Unable to import key: Could not import SSH key: ssh: this private key is passphrase protected
I'm not sure how to make it see the passphrase. In rstudio documentation it says "passphrase file should just be text file with passphrase for key" so I created a text file (that I'm going to delete) where I put the passphrase but still getting the same error.
Any idea how to fix this?