action-upterm icon indicating copy to clipboard operation
action-upterm copied to clipboard

Getting error: `[email protected]: Permission denied (publickey).`

Open corneliusroemer opened this issue 2 years ago • 4 comments

I followed the instructions with a simple setup:

- name: Setup upterm session
        uses: lhotari/action-upterm@v1

but when trying to connect using:

ssh XhMfjw1FxKdix4uQGdWd:[email protected]

I get the following error:

XhMfjw1FxKdix4uQGdWd:[email protected]: Permission denied (publickey).

I didn't use any authorisation options so I expected it would work just like that - but it doesn't.

I found this Upterm issue that could be related: https://github.com/owenthereal/upterm/issues/93

corneliusroemer avatar Oct 01 '22 12:10 corneliusroemer

Now trying out the action you forked from. For some reason I found yours first! But the other one has 10x more stars so maybe I'm lucky there. What exactly distinguishes yours from the one you forked from?

https://github.com/mxschmitt/action-tmate

corneliusroemer avatar Oct 01 '22 12:10 corneliusroemer

I also had the same problem. I definitely have my public-key setup properly for github, as I am able to push from this machine.

kornpow avatar Oct 19 '22 16:10 kornpow

I used this action with the limit-access-to-actor option and found that it didn't accept my RSA key configured in Github. Adding an ed25519 key to Github helped.

jheidbrink avatar Oct 24 '22 17:10 jheidbrink

For anyone who finds this in the future - I saw this error when I did not have any ssh keys at all set up. Running ssh-keygen -t ed25519 solved the problem.

guberti avatar Sep 13 '23 22:09 guberti