NAME

sechaw - Secure channel wrapper


SYNOPSIS

sechaw [options]

        Options:
        -ty, --type <channel type>
        -c, --command <command to run via secure channel>
        -tu, --tunnel <command to establish secure channel>
        -l, --localport <local port>
        -r, --remoteport <remote port>
        --host <remote host>
        -i, --identity <private key file>
        -u, --user <remote user>
        -d, --delay <seconds>
        -v, --verbose
        --help


DESCRIPTION

sechaw can be used to establish a connection between a client and a server via a secure channel (port forwarding).


OPTIONS

Use quotes for values containing spaces.

--type
Secure channel type. This version supports ssh and plink.

--command
Command-to-run on the client. This command must use localport on local machine to initiate secure channel. Use backslash for quotes (\``).

--tunnel
Command to establish secure channel.

--localport
Local port where secure communication will be initiated from. Default is 8730.

--host
Remote host name.

--remoteport
remote port where secure communication will be forwarded to. Default is 873 (rsync).

--user
User name on remote host.

--identity
Private key file for ssh public key authentication.

--delay
Delay inititation of tunneled command. Might be useful in firewalled environments. Default is 5 seconds.

--verbose
Displays more information during operation.

-help
Shows this message.


ENVIRONMENT VARIABLES

sechaw can also use environment variables to set its parameters:

SECHAW_USER for user name
SECHAW_TYPE for tunnell type
SECHAW_CMD for command to run
SECHAW_TUNNEL for secure channel command
SECHAW_LOCALPORT for local port
SECHAW_SERVER for remote server
SECHAW_SERVERPORT for remote port
SECHAW_IDENTITY for private key

Command line options override values from environment variables.


RETURN VALUE

Sechaw returns the exit value from the command executed within the secure channel.


VERSION

Version 1.4, July 2006, ITeF!x Consulting, http://itefix.no