beyondcode / invoker-community

74 stars 2 forks source link

SSH Setting Getting Permission Denied #99

Open Leonard133 opened 3 years ago

Leonard133 commented 3 years ago
Invokerdev

The ssh configuration is working in Tinkerwell app, but failed to connect in Invoker app. It shows permission denied in console.

timolake commented 3 years ago

i've got the same when connecting to multiple projects by ip on the same server. they all got their own username and path, but had the same ip.

when i used an url (project1.server.test, project2.server.test, ...) it worked

mpociot commented 3 years ago

@Leonard133 Do you also encounter this with setting up multiple connections?

I tried to replicate this on a forge server, but I'm able to create multiple projects that point to the same IP but have a different path/username.

Leonard133 commented 3 years ago

Hi @mpociot , my projects are using AWS, I'm using a Host (IP) to create multiple cpanel for each project. Each cpanel has its own sshKey.

I unable to use url as host because of using cloudflare.

I have succeed connect to first project ( /home/project1/laravel ), but unable connect to second project ( /home/project2/laravel ), it shows the error above. (different path and different username)

I'm not sure the error is because multiple project or not.

The settings is worked in Tinkerwell app.

timolake commented 3 years ago

hi @mpociot ,

i had the same error with ip. i manage my server via runcloud.io

what i noticed in the developer console is that when i connect to my seccond project, it try's to run it in my first project, hence the permision denied

error invoker

mpociot commented 3 years ago

Invoker tries to upload its files to /tmp and I suppose that this directory is not writable for you. Could you verify that?

timolake commented 3 years ago

the /tmp is owned by root and has drwxrwxrwt permissions

image