 |
 |
 |
|
How to use SSH terminal access |
|
|
|
|
CompleteFTP (Professional and Enterprise Editions only) supports SSH terminal access. This means that
a command-line SSH client can SSH onto the CompleteFTP server machine, obtain a
shell and use various command-line commands.
Note that CompleteFTP must have SSH terminal access enabled (disabled by default) and
the user must also have SSH terminal access enabled. In addition, only Windows users
may be granted terminal access - non-Windows users are not permitted to login using SSH.
Once the server settings (in SFTP/SCP/SSH settings) are enabled for SSH terminal access, users
can login to CompleteFTP via ssh username@hostname, from any command-line SSH client on any operating
system.
Once logged in, users are presented with a simple Unix-like command-line shell that permits certain commands,
such as changing directory, creating directories, and copying and renaming files.
The help command lists all available commands.
Exec command
The most useful command is exec, which can be used to launch programs and scripts.
For example, to run a DOS command such as 'echo', you would use the standard 'cmd' program, e.g.
exec cmd /c echo test
The same technique can be used to run the DOS 'type' command to display the contents of a text file:
exec cmd /c type test1.txt
For DOS commands, the '/c' flag is necessary as it instructs the DOS shell to terminate after
running the command.