How to enter proxy server settings with a shortcut in term.

Asked 2 years ago, Updated 2 years ago, 115 views

In order to log in to the company verification environment with term, I would like to create a shortcut and log in automatically (easily).
However, your company's verification environment uses a proxy server, so how do I use a shortcut to include proxy server settings?

teraterm

2022-09-30 15:49

2 Answers

I haven't tried it, but it seems that I can optionally specify a proxy.

ttermpro.exe-proxy http://proxysv:port hostname/ssh

Is it like this?

https://ttssh2.osdn.jp/manual/4/ja/commandline/ttproxy.html


2022-09-30 15:49

    The
  • key operation opens the proxy configuration dialog, although it is not a shortcut key.
    altsp

  • If you want to switch proxies in a script, why don't you have multiple ini files with proxy settings and load the ini files that the script needs?このThis method has not been verified.

Although not a shortcut key, keystrokes open the proxy configuration dialog.
altsp

If you want to switch proxies in a script, why don't you have multiple ini files with proxy settings and load the ini files that the script needs?このThis method has not been verified.

Automatic login without proxy

Shortcut (Win)

"C:\Program Files (x86)\teraterm\ttermpro.exe" -proxy=none://M=ssh2loginWSL.ttl/F=TERATERM.INI

*The option ttermpro.exe seems to work better.

ssh2loginWSL.ttl

username='XXX'
hostname = 'XXXXXX'
; delpassword 'password.dat' 'mypasswordWSL'
getpassword'password.dat'mypasswordWSL'Password

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
msg = hostname
strconcat msg': 22/ssh/auth=password/user='
strconcat msg username
strconcat msg '/passwd='
strconcat msg Password
connect msg

※ username and hostname are hidden characters

Automatic login with proxy

Shortcut (Win)

"C:\Program Files (x86)\teraterm\ttermpro.exe"/M=ssh2login.ttl/F=XXTERAM.INI

XXTERATERM.INI プロThe proxy can be set in the INI file and specified in the command options

 [TTProxy]
ConnectionTimeout="10"
I've only used http.
ProxyType="http"
;IP for proxy
ProxyHost= "999.999.999.999"
; Proxy port number
ProxyPort="9999"
<ProxyUser= Never used it
<ProxyPass= Never used

ssh2login.ttl

username='XXXX'
hostname='XXXXXX'
getpassword 'password.dat' 'mypassword' Password

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

connect msg

※ Username and hostname are hidden characters
※ The contents are essentially the same as the TTL without proxy.


2022-09-30 15:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.