SSH
- 원격 서버 명령 실행
shssh user@server "command"
ssh DB tunneling
shssh -N -L [local port]:[database host]:[remote port] [username]@[remote host]
ssh -N -L 3307:db.okdevtv.com:3306 [email protected]
- open other terminal
shmysql -u devuser -p -P 3307 -h 127.0.0.1
related
ref
- Access Your Database Remotely Through an SSH Tunnel
- https://www.ssh.com/ssh/tunneling/example