Adding a SSH public key to your SecDim ID will allow you to git clone
challenges locally. You can then run, debug, test and push your code.
Add or Update a SSH key
To add or update your SSH key, login to SecDim ID and go to SSH Key.
The follow the instruction to generate a default pair of SSH keys or copy your default ssh public key and add it to your account.
Test SSH connection
To test, run ssh -T [email protected]
and you should see your username and the connection will be closed immediately.
$ ssh -T [email protected]
Hi there, pi3ch! You ve successfully authenticated with the key named pi3ch@linux, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
All done!
Troubleshooting
- Run
ssh -vT [email protected]
to see which public key is picked. - Specify which private key to use
ssh -T [email protected] -i [PATH TO YOUR PRIVATE KEY]
- If you generate a new non-default pair of SSH key, you need to add it to your
ssh-agent
, otherwise you will get aPermission denied
. To add your non-default SSH key tossh-agent
run the following commands:
$ eval "$(ssh-agent -s)"
# Linux
$ ssh-add ~/.ssh/{YOUR_PRIVATE_SSHKEY_FILE}
# Mac
$ ssh-add --apple-use-keychain ~/.ssh/{YOUR_PRIVATE_SSHKEY_FILE}
- Try the following command in your terminal. It will generate and add a SSH key to your account and installs required tools:
bash -c "$(curl -sSfL https://raw.githubusercontent.com/secdim/play-setup-script/main/setup.sh)"
- If you still get "Permission denied (publickey), see continue with this troubleshooting guide or reply to this post.