0

I am trying to connect to a remote SQL Server over SSH.

How can I do this via the terminal?

Paul
  • 4,451
  • 5
  • 25
  • 45
  • ssh is the command to initiate a Ssh connection.. e.g. ssh remotehost mysql would attempt to connect to host 'remotest' and run the command 'mysql' as your current user. – Simon Banks Jun 29 '21 at 16:12
  • Which version of Ubuntu are you running on your local computer? Which version of Ubuntu are you running on the SQL server? – user68186 Jun 29 '21 at 16:17
  • i'm using ubuntu 16.04 – Hemant Bhatt Jun 29 '21 at 16:19
  • 3
    Does this answer your question? [How to connect to Internet through a remote server via SSH connection](https://askubuntu.com/questions/1053453/how-to-connect-to-internet-through-a-remote-server-via-ssh-connection) – CrazyTux Jun 29 '21 at 17:25
  • 1
    Does this answer your question? [How to connect to another computer through the Internet using ssh?](https://askubuntu.com/questions/413650/how-to-connect-to-another-computer-through-the-internet-using-ssh) – storm Aug 19 '21 at 07:14

1 Answers1

0

First connect to remote server using ssh tunnelling

ssh @

and once you are connected to remote server you can access mysql using mysql -h -u -p