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.

Tera Term ショートカットの作成

Last updated at Posted at 2024-02-01

鍵認証の場合

Tera Termのショートカットのリンク先に以下を入力する

aaa.png

"C:\Program Files (x86)\teraterm5\ttermpro.exe" 52.xxx.yy.zzz:22 /auth=publickey /user=ec2-user /keyfile=C:\Users\xxxx\Documents\key\ppp.pem

踏み台経由でSSH鍵認証接続

ttlファイル作成

COMMAND = '52.xxx.yy.zzz.com:22 /auth=publickey /user=ec2-user /keyfile=C:\Users\xxxx\Documents\key\ppp.pem'

; 踏み台接続
connect COMMAND

wait "$"

; SSH接続
COMMAND = 'ssh -i ~/.ssh/stg.pem ec2-user@13.xxx.yyy.qqq'
sendln COMMAND

end

Tera Term Macro Interpreter

作成したttlファイルのプログラムをTera Term Macro Interpreterにセットする

bbb.png

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?