|Purpose:||Connect to server using SSH and start default shell|
|Format:||SSHEXEC [/A /F filename /Gn /H fwhost /IPV6 /R port /S /T type /U user /P password] host /L name[:password] "command ..."|
host - Host name
command - Command to pass to the host's default shell
The SSHEXEC command establishes a Secure Shell (SSH) connection to a server and starts up the user's default shell. Press Ctrl-C to disconnect from the other system.
If you don't specify a user name, SSHEXEC will use the current user name. You can provide a password on the command line by appending it to the user name (i.e., "User:Password"). If you don't provide a password, SSHEXEC will prompt for it.
If you want to do redirection on the remote system, enclose the command argument list in double quotes. The double quotes will be removed before passing the commands to the remote system.
SSHEXEC will display the host name & user name and prompt for a line of input, then send it to the host shell and return to the prompt to wait for the next line. SSHEXEC will display any output sent by the host to STDOUT and STDERR. When you type "exit" at the prompt, or the host disconnects SSHEXEC will exit.
|0||No messages are logged|
|1||Informational events such as SSH handshake messages are logged|
|2||Detailed data such as individual packet information is logged|
|3||Debug data including all relevant sent and received bytes are logged|
|1||Connect through a tunneling proxy. The firewall port is set to 80.|
|2||Connect through a SOCKS4 proxy. The firewall port is set to 1080.|
|3||Connect through a SOCKS5 proxy. The firewall port is set to 1080.|
|10||Connect through a SOCKS4A proxy. The firewall port is set to 1080.|