User Tools

Site Tools


geek:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
geek:ssh [2022/01/27 11:08]
neil
geek:ssh [2025/04/22 20:52] (current)
admin
Line 19: Line 19:
  
 <code bash>ssh localhost -p 12345</​code>​ <code bash>ssh localhost -p 12345</​code>​
 +
 +===== SSH port forwarding ====
 +Connect into a host, access mysql (3306) on an internal server (192.168.1.15) and connect it to port 30000 on your local machine. ​ You can then access mysql directly with ''​mysql -h localhost -p 30000'',​ for example. (-N to not execute a command)
 +<​code ​ bash>
 +ssh -N -L 30000:​192.168.1.15:​3306 user@server
 +</​code>​
  
 ===== SSH key login ===== ===== SSH key login =====
geek/ssh.txt ยท Last modified: 2025/04/22 20:52 by admin