Teraterm Macro Com Port

Connects.

Remarks

If MACRO is not linked to Tera Term, this command runs Tera Term with <command line parameters>, and links it to MACRO.

If MACRO has already been linked to Tera Term and Tera Term is not connected to the host, this command causes Tera Term to connect to the host specified by <command line parameters>. See 'Tera Term command line' and 'TTSSH command line' for the format of <command line parameters>.

If MACRO has already been linked to Tera Term and Tera Term has already been connected to the host, this command is ignored.

As a result of this command, the system variable 'result' is set to one of the following values depending on the link and connection status:

Dec 10, 2016  Thank you for your feedback. Tera Term latest version(v4.93) can support the serial port on Windows10. Tera Term can open COM port on my WIndows10. However, when another application opens a serial port, Tera Term can not open the serial port. TeraTerm Project. TeraTerm Project would have been developed terminal emulator 'Tera Term' and SSH module 'TTSSH'. This software is open source software under BSD License.This is Tera Term Pro 2.3 succession version and is being officially recognized by the original author.

ValueStatus
0Link to Tera Term has not been made.
1Connection to the host has not been made, but link to Tera Term has been made.
2Both connection and link have been made.

To test the current link and connect status before executing the 'connect' command, use the 'testlink' command.

Communication commands except 'connect', 'cygconnect' and 'testlink' can not be executed before the link is established.

Connection method

There are 3 types of connection you can establish from Tera Term macro:

  • Telnet connection (port 23)
  • SSH1 or SSH2 connection (port 22)
  • Connection via COM port

Telnet connections

Using /nossh is strongly recommended. Without this parameter Tera Term will start connecting with the same method (telnet or SSH) that was used during last time when teraterm.ini file was saved. In case it was SSH than your macro will try to connect via SSH and will eventually fail.

Using /T=1 is recommended. Without this parameter Tera Term will start connecting with the value of 'Telnet' in teraterm.ini file. When the Telnet value is off, Tera Term may not work well.

SSH connections

Saori hara haneda ai. This way will start SSH connection without defining whether SSH1 or SSH2 has to be used.

Parameters /1 and /2 force to use SSH1 or SSH2 method.

Above 9 ways allow to skip popup dialog and pass username and password directly from macro. Please note that /auth=password or /auth=publickey or /auth=challenge is the parameter saying that authentication will be done by entering password or private-key-file thus you should not replace the word 'password' or the word 'publickey' in it with actual password.

Above 3 ways allow to skip popup dialog and pass username directly from macro.

Above 9 ways pass username and authentication method directly from macro, and the popup asks for password.

Connections via COM port

Here x represents COM port number. For example to connect via COM port 1 the command will look like: connect '/C=1'

source URL: http://logmett.com/forum/viewtopic.php?t=28

Examples

Note

  1. In these examples parameters shown with Italic font have to be replaced with their actual values.
  2. A user's password can include space characters. If the password includes the space character, a user should put the password in quotations by using `' character. Also, if the password includes the ' character, a user should write the ' two times.
    NOTICE: A user can not use the '@' character instead of the space character from Tera Term 4.63.
  3. Please remember that entering actual username and password in Tera Term macro will cause them to be stored as an open text and it is your responsibility to keep such macro is secure location.
  4. When a user re-connect the remote host soon after disconnecting the server, a user could not connect the server. For more detail, refer to 'here'.

See also

Related Post