invoker-community icon indicating copy to clipboard operation
invoker-community copied to clipboard

SSH Setting Getting Permission Denied

Open Leonard133 opened this issue 4 years ago • 6 comments

Invokerdev

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

Leonard133 avatar Feb 09 '21 04:02 Leonard133

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

timolake avatar Feb 09 '21 10:02 timolake

@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.

mpociot avatar Feb 10 '21 08:02 mpociot

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.

Leonard133 avatar Feb 10 '21 11:02 Leonard133

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

timolake avatar Feb 10 '21 11:02 timolake

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

mpociot avatar Apr 28 '21 08:04 mpociot

the /tmp is owned by root and has drwxrwxrwt permissions

image

timolake avatar Apr 28 '21 08:04 timolake