SFTP Tab command options are described below. Commands that specify a path can contain the wildcard characters * and ?. SFTP will expand these wildcard characters. Multiple wildcard characters are permitted in a path (e.g., "*.*" or "*.?"). The SFTP Tab also supports file "globbing". The sequence [...] will match any one of the characters enclosed. Within [...], a pair of characters separated by a quotation mark (") matches any character lexically between the two. The backslash can be used to turn off wildcard characters (e.g., \* or \[).
SecureCRT also supports tab completion of command arguments on the SFTP Tab. Begin typing a command and argument and then press the TAB key. SecureCRT will attempt to complete the argument(s) based on the available choices. If there are multiple choices, SecureCRT will display a list of possible options. You can choose from this list or continue typing until SecureCRT can identify the unique argument.
To open an SFTP tab session, right-click on an existing, connected SSH2 tab and choose Connect SFTP Session from the displayed menu.
Option |
Arguments |
Description |
ascii |
|
Sets the file transfer mode to ASCII. |
binary |
|
Sets the file transfer mode to binary. |
cd |
[path] |
Changes the remote directory to that specified byS the path. If a path is not specified, the user is placed in their "home" directory. |
chgrp |
group path |
Changes group of file "path" to "group". |
chmod |
mode path |
Changes permissions of file "path" to "mode". |
chown |
owner path |
Changes owner of file "path" to "owner". |
detail |
remotepath |
Displays system information about the specified remote file or folder. |
exit |
|
Exits the SFTP application. |
get |
[-r]
[-a|-b] |
Retrieves the remote path and stores it in the current local directory. The -r argument specifies a recursive get. The -a argument specifies that the files are transferred as ASCII; -b specifies binary. If neither -a nor -b is specified, the current transfer mode will be used (see type command). |
help |
|
Displays usage. |
include |
filename
or |
Includes the commands in the specified file as though they had been typed in. |
lcd |
[path] |
Changes the local directory to that specified by the path. If a path is not specified, the local working directory is set to the local user's "home" directory. Adding the -a argument will show all files and folders (including those hidden), and the -d argument will show only directories. |
ldetail |
localpath |
Displays system information about the specified local file or folder. |
ln |
existingpath linkpath [-s] |
Creates symbolic link on remote file. |
lls |
[-l] [-a|-d] [path] |
Displays the local directory listing of the path specified or of the current local working directory if the path is not specified. Adding the -a argument will show all files and folders (including those hidden), and the -d argument will show only directories. |
lmkdir |
path |
Creates local directory specified by the path. |
lmv |
oldpath newpath |
Moves/renames local file. Identical to the local Rename (lrename) command. |
lpwd |
|
Prints local working directory. |
lrename |
oldname newname |
Renames the specified file. Identical to the local Move (lmv) command. |
lrm |
path |
Deletes local file. |
lrmdir |
path |
Removes local directory. |
ls |
[-l] [-a|-d] [path] |
Displays the remote directory listing of either the path or of the current directory if the path is not specified. If the -l flag is set, SFTP displays permission and ownership information. Adding the -a argument will show all files and folders (including those hidden), and the -d argument will show only directories. Note: This command, if used with a / (i.e., ls / ), lists the roots when connecting to a server that allows multiple roots, such as VanDyke Software's VShell®. |
mkdir |
path |
Creates remote directory specified by the path. |
mv |
oldpath newpath |
Moves/renames remote file. Identical to the Rename command. |
pwd |
|
Prints the remote working directory. |
put |
[-r]
[-a|-b] |
Uploads the local path to the currently open directory on the remote machine. The -a argument specifies that the files are transferred as ASCII; -b specifies binary. If neither -a nor -b is specified, the current transfer mode will be used (see type comment). |
rename |
oldname newname |
Renames the specified file. Identical to the Move (mv) command. |
rm |
[-r] path |
Deletes the remote file specified by the path. Adding the -r argument will initiate a recursive remove operation. |
rmdir |
path |
Deletes the remote directory specified by the path. |
su |
username |
Substitutes the current user with the one specified. Note: This command can only be called if the remote machine is running VShell for Windows 3.5 or later. |
type |
[transfer mode] |
Displays or sets the file transfer mode. Issuing this command with no parameter will display the current mode; issuing it with a mode parameter (either ascii or binary) will set the mode to that parameter. |
view |
filename |
Displays or, if applicable, runs the specified file or files. Displayed files can be modified but changes made will not be uploaded to the original file. |