0

I am connecting to remote DB via ssh tunnel

Mentioned here

Here are the DBeaver screenshots :

enter image description here

And

enter image description here

What i am doing is for the ssh is :

ssh -i sharp -N -L 13306:127.0.0.1:3306 [email protected]

But it says

Permission denied (publickey).

What am i missing ?

1 Answer 1

-1

You're specifying an incorrect public key.

I mean, the error you gave us tells you that.

-i identity_file
             Selects a file from which the identity (private key) for public key authentication is read.  The default is ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and
             ~/.ssh/id_rsa.  Identity files may also be specified on a per-host basis in the configuration file.  It is possible to have multiple -i options (and multiple
             identities specified in configuration files).  If no certificates have been explicitly specified by the CertificateFile directive, ssh will also try to load cer-
             tificate information from the filename obtained by appending -cert.pub to identity filenames.

Out of curiosity, what's stopping you using this?

https://packagist.org/packages/stechstudio/laravel-ssh-tunnel

ALSO:

If you read the comments you'll find some issues reporting issues with the -N option. Try removing it.

-N Do not execute a remote command. This is useful for just forwarding ports.

Sign up to request clarification or add additional context in comments.

1 Comment

I have removed -N before too and not working, My question is that why the above method not working, If dbeaver works with the same method then why its not working on my terminal

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.