2) You can see the two new files (keys) in .ssh directory: id_rsa (private) and id_rsa.pub (public)
3) In GitHub upload your public key (Settings -> SSH and GPG keys -> New SSH Key button)
4) Start container passing the private key generated recently:
docker run -p 4440:4440 --name mycontainer-v /your/user/path/.ssh:/home/rundeck/.ssh rundeck/rundeck:3.0.13
5) In Rundeck, go to Key Storage and add the private key (important: including the first line "-----BEGIN RSA PRIVATE KEY-----" and the last line "-----END RSA PRIVATE KEY-----" ).
6) Go to your project > Project Settings > Setup SCM
Tips for export configuration:
a) Make sure that "Committer Name" field is your user in GitHub.
b) Make sure that "Committer Email is the Email to be used in "Primary email address", something like "
45257294...@users.noreply.github.com"
c) In "SSH: Strict Host Key Checking" set "no", tht avoid the host key verification.
d) In "SSH Key Storage Path" select the key saved on Key Storage.
Also you can try it using native Rundeck (without step 4) instead docker container to test and discard a specific Docker issue.
Hope it helps!
On Friday, February 8, 2019 at 10:04:46 PM UTC-3, Tracy Walker wrote: