Jump to content

SSH: Network error: Connection refused


Go to solution Solved by MadTiago,

Recommended Posts

Hi, I'm new to configuring the SSH tunnel so that i can connect into the DB via SSH. It was all configured by a friend and working perfectly, then strangely the SSHD_config deleted itself o.O after replacing it and configuring it to the best of my knowledge to regain access to the root directory the SSH is no longer working in navicat.

https://metin2.download/picture/mpDq8BLVmj6ciG0KWpO44e4aV9vB862S/.png

 

I'm not sure what information i need to provide in order to get this fixed, but any help is appreciated!

 

Edit - Fixed

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Solution

You're probably using a different port on sshd_config.

 

To use a ssh tunnel to connect to mysql, you just need to create a local mysql user on your server and then configure navicat to use local user + ssh tunnel like this:
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

 

If you changed ssh port, you need to reload/restart ssh daemon:

 

service sshd restart
Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.