ssh ホスト名 command
で、実行できるのは知っているのだけど、
apacheとか、restartすると、プロンプトが返ってこない。。。
散々悩んだあげく、sshのmanを見てみると。。。
こんなことが書いてあった
-f Requests ssh to go to background just before command execution. This is useful if ssh is going to ask for passwords or passphrases, but the user wants it in the background. This implies -n. The recommended way to start X11 programs at a remote site is with some-thing like ssh -f host xterm.
なるほど、「-f」つけないと、foreground で実行するから
プロセスとか立ち上げると、そのプロセスが終わるまで、
プロンプトが返ってこない・・・と
始めにman見とけばえがったぁ

最近のコメント