2
2

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.

TeraTerm ログインマクロテンプレート

Posted at

TeraTerm ログインマクロテンプレート

template.ttl
Host = 'ホスト名'
User = 'ユーザー'
Port = '22'

_Name = User
strconcat _Name '@'
strconcat _Name Host


;パスワードでログインの場合下記をコメントアウト
;Auth = '/auth=password '
;秘密鍵でログインの場合下記をコメントアウト
;Auth = '/auth=publickey /keyfile="秘密鍵のフルパス"'

;パスワードを毎回入力する場合
;passwordbox 'Enter password' 'Input Password'
;Password = inputstr
;パスワードを保存する場合
;getpassword 'password' _Name Password


; SSH login
msg = Host
strconcat msg ':'
strconcat msg Port
strconcat msg ' /ssh '
strconcat msg Auth
strconcat msg ' /passwd='
strconcat msg Password
strconcat msg ' /user='
strconcat msg User

connect msg

#保存したパスワードの変更または削除
パスワードを変更または削除するにはマクロ実行フォルダのpassword.datファイル自体を削除
01.png

一部の削除

変更前

password.dat
[Password]
qiita@192.168.56.11=ZN@#j3!cPg;~H^Ml;v
qiita@192.168.56.12=)OG[6>@R~X2;:g

[Password]
-qiita@192.168.56.11=ZN@#j3!cPg;~H^Ml;v
qiita@192.168.56.12=)OG[6>@R~X2;:g

次回ログイン時にもう一度パスワードが聞かれます

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?