SSH tunnelling: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{Draft}}
<languages/>
<translate>


=What is SSH tunneling?=
=What is SSH tunneling?=
SSH tunnelling is a method to use a gateway computer to connect two
SSH tunnelling is a method to use a gateway computer to connect two
computers that cannot connect directly.
computers that cannot connect directly.
Line 168: Line 170:


== Example for connecting to a database server on cedar from your desktop ==
== Example for connecting to a database server on cedar from your desktop ==
Commands to connect to PostgreSQL and MySQL respectively are:
Commands to connect to PostgreSQL and MySQL respectively are:
<pre>  
<pre>  
Line 182: Line 185:


The connection requires a password for both MySQL and PostgreSQL. However, for PostgreSQL the password is your computecanada password and for MySQL the password is stored in your ".my.cnf" located in your home directory on cedar. The connections will remain open as long as your have the ssh connection. In this example "PORT" is an arbitrary number and it should be opened in firewall of cedar head node. So, please before running this command send a request to support@computecanada.ca and we will assign a port number for you.
The connection requires a password for both MySQL and PostgreSQL. However, for PostgreSQL the password is your computecanada password and for MySQL the password is stored in your ".my.cnf" located in your home directory on cedar. The connections will remain open as long as your have the ssh connection. In this example "PORT" is an arbitrary number and it should be opened in firewall of cedar head node. So, please before running this command send a request to support@computecanada.ca and we will assign a port number for you.
</translate>
Bureaucrats, cc_docs_admin, cc_staff
2,879

edits