タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

RTFMに関するyujioramaのブックマーク (1)

  • Bash script to set up a temporary SSH tunnel

    On Cygwin, I want a Bash script to: Create an SSH tunnel to a remote server. Do some work locally that uses the tunnel. Then shut down the tunnel. The shutdown part has me perplexed. Currently, I have a lame solution. In one shell I run the following to create a tunnel: # Create the tunnel - this works! It runs forever, until the shell is quit. ssh -nNT -L 50000:localhost:3306 jm@sampledomain.com

    Bash script to set up a temporary SSH tunnel
    yujiorama
    yujiorama 2016/07/08
    control-soket を使ってバックグラウンド実行しているプロセスを制御する。知らなかった。ポート転送用のプロセスとかはこれで管理するべきだったんだな…
  • 1