10
8

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 5 years have passed since last update.

Tera Term マクロで公開鍵認証SSH

Last updated at Posted at 2014-11-06

以下は EC2 インスタンスに SSH する例。
pem ファイルを ppk 形式に変換しなくていいのはうれしい。

HOSTADDR = 'ec2-www-xxx-yyy-zzz.ap-northeast-1.compute.amazonaws.com'
USERNAME = 'ec2-user'
KEY_FILE = 'C:\path\to\keyfile\default.pem'
COMMAND = HOSTADDR
strconcat COMMAND ':22 /ssh /2 /auth=publickey /user='
strconcat COMMAND USERNAME
strconcat COMMAND ' /keyfile='
strconcat COMMAND KEY_FILE
connect COMMAND
end
10
8
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
10
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?