Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* RemoteCommand [#fb91f47c]
** RemoteCommandとは? [#u6d28457]
- SSHログイン後に、シェル(/bin/bash等)の代わりに実行す...
- 用途は下のようなものが考えられる。
-- "ssh another-server.com"と設定して、SSHで接続したサー...
-- "ps aux"と設定して、接続したサーバのプロセス情報を取得...
** 手順 [#gc84e210]
*** GUIで指定する [#h1de406e]
- PuTTY Configurationダイアログを開く。
- 通常の接続設定を行う。
- "Connection"->"SSH"を選ぶ。
- "Data to send to the server"の"Remote command"に以下の...
touch 1.txt; touch 2.txt; ls -l
- この接続設定を開いてサーバに接続する。
*** コマンドラインから指定する [#ybfa1180]
- コマンドファイルを作成する:notepad.exe commands.sh
touch 1.txt
touch 2.txt
ls -l
- -mオプションを付けて、サーバに接続する。
plink.exe -m commands.sh 192.168.0.1
*** 注意 [#v527c3bb]
- 非疑似端末モードになるので、必要に応じて、-tオプション...
** 参考 [#w4f3921f]
http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter7...
終了行:
* RemoteCommand [#fb91f47c]
** RemoteCommandとは? [#u6d28457]
- SSHログイン後に、シェル(/bin/bash等)の代わりに実行す...
- 用途は下のようなものが考えられる。
-- "ssh another-server.com"と設定して、SSHで接続したサー...
-- "ps aux"と設定して、接続したサーバのプロセス情報を取得...
** 手順 [#gc84e210]
*** GUIで指定する [#h1de406e]
- PuTTY Configurationダイアログを開く。
- 通常の接続設定を行う。
- "Connection"->"SSH"を選ぶ。
- "Data to send to the server"の"Remote command"に以下の...
touch 1.txt; touch 2.txt; ls -l
- この接続設定を開いてサーバに接続する。
*** コマンドラインから指定する [#ybfa1180]
- コマンドファイルを作成する:notepad.exe commands.sh
touch 1.txt
touch 2.txt
ls -l
- -mオプションを付けて、サーバに接続する。
plink.exe -m commands.sh 192.168.0.1
*** 注意 [#v527c3bb]
- 非疑似端末モードになるので、必要に応じて、-tオプション...
** 参考 [#w4f3921f]
http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter7...
ページ名: