2011年5月16日月曜日

teratermマクロ 自動ログイン編

最善の方法じゃないと思うけど。
マクロにユーザIDとパスワード直書きだからなぁ…。

; ユーザID
username = 'XXXXXX'
; パスワード
password ='******'

; サーバのIP
hostname = 999.999.999.999'
; パラメータ設定
msg = hostname
strconcat msg ':22 /ssh /2 /auth=password /user='
strconcat msg username
strconcat msg ' /passwd='
strconcat msg password

; ログイン
connect msg

0 件のコメント:

コメントを投稿