6
7

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.

AWS使用時に便利なTeraTerm 公開鍵で自動ログイン

Last updated at Posted at 2014-04-10

Tera Term
公開鍵で自動ログインするサンプル

;============================================ 
; Filename    : ssh2-connect.ttl 
; Description : SSH Auto login 
; Author      : Azusa Nakano
; Created     : 2014/04/11 
; modified    : 
;============================================ 
;; ユーザ名/パスワード設定 
hostname= '接続先IPアドレス' 
username= 'ユーザ名'
passfile= 'C:\password.dat' 
keyfile = 'C:\id_rsa' 
;============================================ 
;; パスワード取得 
getpassword passfile username password
 
;; コマンド組立て 
cmd = hostname 
strconcat cmd ':22 /ssh /2 /auth=publickey /user=' 
strconcat cmd username
strconcat cmd ' /passwd=' 
strconcat cmd password
strconcat cmd ' /keyfile=' 
strconcat cmd keyfile
 
;; サーバへ接続 
connect cmd
 
;; マクロ終了 
end
6
7
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
6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?