remtty(1) - Linux man page
Name
remtty - access a TCP port through a TTY (remote-tty)Synopsis
remtty [-hvVcx] [--help] [--version] [--verbose] [--config remtty.conf] [--comm commprog]Description
- -c, --configremtty.conf
- Load the file remtty.conf as configuration.
- -x, --comm commprog
- Creates the TCP connection, opens the pty and runs /bin/sh with the option '-c commprog'. Every occurence of '%p' in commprog is replaced by the allocated pty.
- -v, --verbose
- Show verbose messages.
- -V, --version
- Display version and exit.
- -h, --help
- Display help and exit.
Configuration File
The configuration file defines the hosts that are connected as well as a simple chat script. Lines starting with a '#' are comments. Hosts are defined as:host: hostname:portWhen the port is omitted, connections go to port 23 by default.
Multiple hosts can be specified. When a host cannot be reached, 'remtty' tries to connect to the next host.
Chat script lines are of the form
chat: "expect", "answer"When expect is received, 'remtty' sends answer. This allows to create simple 'Username:'/'Password:' chat scripts to log into NAS. A connection is considered successful only when there are no more chat script lines. expect and answer may contain the characters \r and \n.