TeraTerm连接服务器ttl脚本

示例

;;SSH转送设定
svr = 'local port:host:server port'
msg = ' /ssh /2 /auth=password /user=用户 /passwd=密码'
strconcat msg ' /ssh-L'
strconcat msg svr
connect msg
wait '$'
send 'ssh user@服务器host'
sendln
wait ':'
send '密码'
sendln
wait '$'
send 'sudo su -'
sendln
wait ':'
send '密码'
sendln

使用 SSH1 或 SSH2 方法连接

connect 'myserver /ssh /auth=password /user=username /passwd=password'
connect 'myserver /ssh /1 /auth=password /user=username /passwd=password'
connect 'myserver /ssh /2 /auth=password /user=username /passwd=password'
connect 'myserver /ssh /auth=publickey /user=username /passwd=password /keyfile=private-key-file'
connect 'myserver /ssh /1 /auth=publickey /user=username /passwd=password /keyfile=private-key-file'
connect 'myserver /ssh /2 /auth=publickey /user=username /passwd=password /keyfile=private-key-file'
connect 'myserver /ssh /auth=challenge /user=username /passwd=password'
connect 'myserver /ssh /1 /auth=challenge /user=username /passwd=password'
connect 'myserver /ssh /2 /auth=challenge /user=username /passwd=password'

官方文档

https://ttssh2.osdn.jp/manual/4/en/macro/command/index.html

上一篇:小课堂 -- 延时布尔盲注(Post)


下一篇:Ajax方法封装与调用