Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: SSH
(view source)
Revision as of 09:26, 5 April 2016
1 byte removed
,
09:26, 5 April 2016
→ssh tunneling
Line 30:
Line 30:
== ssh tunneling ==
== ssh tunneling ==
This is used for example to connect to a database on a server that has the database port closed but ssh port open.<br />
This is used for example to connect to a database on a server that has the database port closed but ssh port open.<br />
−
*
ssh -N -L localport:remotehost:remoteport remoteuser@remotehost
+
ssh -N -L localport:remotehost:remoteport remoteuser@remotehost
−
*
ssh ip_maq_intermedia -L puerto_local_kali:ip_destino_real:puerto_remoto
+
ssh ip_maq_intermedia -L puerto_local_kali:ip_destino_real:puerto_remoto
Example:
Example:
ssh -i .ssh/MySshKey.pem -N -L 8888:localhost:3306 ubuntu@myserver.com
ssh -i .ssh/MySshKey.pem -N -L 8888:localhost:3306 ubuntu@myserver.com
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version