Product: PowerShell Universal Version: 4.2.19
Hi,
We have had some issues with getting PSU and Github deploy keys to work, and i wanted to share the simple steps we ended up with, in order for it to work.
Hopefully someone will find it useful.
In the example here, i have used a docker container running version 4.2.19
ssh-keygen -t ed25519 -C "git@github.com"
cat /root/.ssh/id_ed25519.pub
"Host github.com" | Out-file /root/.ssh/config -Append " HostName github.com" | Out-file /root/.ssh/config -Append " IdentityFile /root/.ssh/id_ed25519" | Out-file /root/.ssh/config -Append " IdentitiesOnly yes" | Out-file /root/.ssh/config -Append
git config --global user.email "automation@domain.com" git config --global user.name "system user"
ssh -o StrictHostKeyChecking=no git@github.com
Setup Git like this:

We will look into having this automated by a pipeline or such, to avoid all these manual steps.
57d8bd00a3d7e041a8c232423007b869dcf507d7.png