0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【メモ】テラタームマクロテンプレ

Posted at

; マクロの設定
SET !REPLAYSPEED FAST
SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 60
SET !TIMEOUT_STEP 10

; SSH 接続情報
SET GatewayHost "踏み台サーバーのホスト名またはIPアドレス"
SET GatewayPort "ポート番号"
SET GatewayUsername "ユーザー名"
SET KeyFile "/path/to/private/key/file"

; ターゲットサーバーの情報
SET Host "ターゲットサーバーのホスト名またはIPアドレス"
SET Port "ポート番号"
SET Username "ユーザー名"

; SSH 接続先のコマンド
TAB T=1
URL GOTO=ssh://{{GatewayUsername}}@{{GatewayHost}}:{{GatewayPort}}
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/login/auth ATTR=NAME:password CONTENT={{!VAR1}}
WAIT SECONDS=1
URL GOTO=ssh://{{Username}}@{{Host}}:{{Port}} {{KeyFile}}

; 終了処理
TAB CLOSEALLOTHERS

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?