So I tried it, and it works. Here's some notes.
ssh -N -L 3306:127.0.0.1:3306 mrbear@bears.jelastic.eapps.com -p 3022
mysql -u root -p mrbeardb —port=3306
mysql -u root -p mrbeardb —port=3306
References
- Linuxize - How to Connect to MySQL through SSH Tunnel
- https://linuxize.com/post/mysql-ssh-tunnel/
No comments:
Post a Comment