Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Documentation on how to setup ssh #21

Closed
KyleJamesWalker opened this issue May 12, 2022 · 4 comments
Closed

Documentation on how to setup ssh #21

KyleJamesWalker opened this issue May 12, 2022 · 4 comments
Labels
docs enhancement New feature or request

Comments

@KyleJamesWalker
Copy link

Is your feature request related to a problem? Please describe.
Can you explain how to setup sudo gh codespace ssh, I have gh codespace ssh working just fine, but I'm not sure what's needed to get it working on mac with sudo. I tried generating a new ssh key, and then adding that to /var/root/.ssh but that doesn't seem to work, and I can hack an ownership in my current ~/.ssh to get a little closer, but overall I can't figure out what might be needed to get this setup with the correct ssh key with sudo.

Describe the solution you'd like
A small document showing how to setup sudo with your gh ssh key.

@KyleJamesWalker KyleJamesWalker added the enhancement New feature or request label May 12, 2022
@legomushroom
Copy link
Member

Hey @KyleJamesWalker 👋

Did you use ssh-add -K ~/.ssh/id_ed25519 as suggested in step 3 of Adding your SSH key to the ssh-agent instructions? It resolved the issue for me last time I had it 🤞

If that does not help, try using the /root/.ssh folder for the config/private key files.

Files: 👉

/root/.ssh/config:

Match all
    IdentityFile ~/.ssh/private-key

/root/.ssh/private-key:

-----BEGIN OPENSSH PRIVATE KEY-----
<reducted>
-----END OPENSSH PRIVATE KEY-----

@legomushroom
Copy link
Member

This issue also contains some debugging steps: #9

@KyleJamesWalker
Copy link
Author

Thank you so much this should get me up and running 🥳

@legomushroom
Copy link
Member

@KyleJamesWalker thanks for confirming that the solution works 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants