エンジニア的な技術的なブログ

webエンジニアの開発の知見を書きます。PHP、javascript、postgres、mysql、あと多少のインフラ周りとか。

sshトンネリングが久しぶりで忘れてたからメモ

 

 

ssh -i ~/.ssh/secret_keys/sshkey_private.pem -p 9022 -f -N -L 55432:localhost:5432 [username]@[remot host]

 

こんな感じ。

 

参考サイトはこちら


SSH でトンネリング » nksg.org