NAME
remtty - access a TCP port through a TTY (remote-tty)
SYNOPSIS
remtty [-hvVcx] [--help]
[--version] [--verbose] [--config
remtty.conf] [--comm commprog]
DESCRIPTION
remtty connects to a TCP port on another
machine and makes this connection available through a pseudo tty
(pty(4)). Any
communications program can then handle this pty as a tty. This
allows you to use Access Servers with direct access to the modems
(such as Cisco NAS) as ordinary dial-out modems, as if they were
connected to the local machine.
- -c, --config remtty.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:port
When 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.
AUTHOR
Oliver Hitz (oliver@net-track.ch)
SEE ALSO
telnet(1)
BUGS
No bugs known at the moment.