1
4

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.

linuxサーバ自動ログインTTLの書き方

Last updated at Posted at 2017-08-17

txtファイルで、下記のソースを書いて、
拡張子をttlに変更して、ダブルクリックして、自動ログインできます。
前提条件:teratermをインストール済み環境

username = 'username'
hostname = '255.255.255.255'
userpasswd = 'wocao'

;msg = 'Enter password for user '
;strconcat msg username
;passwordbox msg 'Get password'

msg = hostname
strconcat msg '22 /ssh /auth=password /user='
strconcat msg username
strconcat msg ' /passwd='
strconcat msg userpasswd

connect msg

wait '#'
sendln 'su -'
pause 1
wait '# '

sendln 'cd /tmp'
1
4
3

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
1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?