etherai / selfhosted-gateway

Self-hosted Docker native tunneling to localhost. Expose local docker containers to the public Internet via a simple docker compose interface.
https://fractalnetworks.co
GNU Affero General Public License v3.0
1.32k stars 66 forks source link

SSH Permission Denied During Client To Gateway Link #33

Closed dermotk1337 closed 7 months ago

dermotk1337 commented 9 months ago

Explanation:

Hi fractal team, while setting up your selfhosted-gateway I ran into a Permission Denied (publickey) error while creating the client to gateway link.

I can access Client 》 Host & Host 》 Client via openssh CLI without issues & I have followed your guide to the letter as far as I am aware. More Details Below

Details

**Local Operating system: Ubuntu Server 22.04 LTS VPS Operating system: Ubuntu Server 22.04 LTS VPS Host: Digital Ocean Selfhosted-Gateway Version: Latest Error : Permission denied (publickey) Install State : Clean Install SSH Key Algorithm: ed25519 w/ 200 derivation function rounds. /root/.ssh directory permission : 777 /root/.ssh/ed25519 & ed25519.pub permission : 600 /gateway/selfhosted-gateway permission: 777 recursively (troubleshooting) Error: Make *** [255] Permission Denied (PublicKey) Installation User : root**

Kindest Regards 💯

Dotsch2005 commented 9 months ago

I often run into the same problem.

The following helps me.

Check whether the SSH agent is running eval "$(ssh-agent -s)"

Check whether the key is also available ssh-add -L

If this is missing, it can be added with ssh-add /root/.ssh/ed25519

Please use the following commit for now: https://github.com/fractalnetworksco/selfhosted-gateway/commit/a82d9753b115e6e388162b73895c132316b8098e

dermotk1337 commented 8 months ago

Solved! sorry for the late reply but your solution worked for me, is it possible to add these checks during the make process maybe?