Sftp Commands - HP NonStop SSH 544701-014 Reference Manual

Table of Contents

Advertisement

sftp> help
Available commands:
ap
local-path [remote-path]
append local-path [remote-path]
ascii [dos|unix|mac]
aslinemode [cut|wrap|none]
binary
cd path
chgrp grp path
chmod mode path
chown own path
delete path
exit
fc [<num>|<string>]
get remote-path [local-path]
help
h
[<cnt>]
history [<cnt>]
lap
remote-path [local-path] Download remote file and append to local file
lappend remote-path [local-path] Download remote file and append to local file
lcd path
lls [ls-options [path]]
lmkdir path
ln oldpath newpath
lpwd
ls [path]
lumask umask
mkdir path
progress [on|off|min|?]
put local-path [remote-path]
pwd
quit
rename oldpath newpath
rm path
rmdir path
symlink oldpath newpath
touch path
version
?
sftp>
Picks the SSH2 process $TBA01 to communicate with.
Connects to the remote system with the IP address 10.0.0.201 on port 2222, using the user name "burgt".
Uses the "help" command to show the commands supported by the SFTP client.
The following command:
/home/tb: sftposs -S '$tba01' burgt@10.0.0.201:a1000 testget
Connecting to 10.0.0.201...
Fetching /home/burgt/a1000 to testget
/home/burgt/a1000
100%
990
0.0KB/s
/home/tb:
Picks the SSH2 process $TBA01 to communicate with.
Connects to the remote system with the IP address 10.0.0.201 on port 2222, using the user name "burgt".
Downloads the file "a1000" and places it locally under the file "testget".

SFTP Commands

Once you are connected to a remote system, the SFTP client issues a prompt "sftp>" and from then on supports the
standard set of commands implemented in the SFTP protocol. The "help" command gives a brief syntax summary:
206 • SSH and SFTP Client Reference
Upload local file and append to remote file
Upload local file and append to remote file
Change transfer mode to ascii and optionally
change the remote newline convention
Cut, wrap or do nothing to long ascii lines
Change the transfer mode to binary
Change remote directory to 'path'
Change group of file 'path' to 'grp'
Change permissions of file 'path' to 'mode'
Change owner of file 'path' to 'own'
Delete remote file
Quit sftp
Fix command number <num> or contains <string>
Download remote file
Display this help text
Display historic commands (all or <cnt> cmnds)
Display historic commands (all or <cnt> cmnds)
Change local directory to 'path'
Display local directory listing
Create local directory
Symlink remote file
Print local working directory
Display remote directory listing
Set local umask to 'umask'
Create remote directory
Toggle display of progress meter (on/off) or set to
minimum (value min) or display current setting
Upload local file
Display remote working directory
Quit sftp
Rename remote file
Delete remote file
Remove remote directory
Symlink remote file
Touch file
Show SFTP version
Synonym for help
00:01
HP NonStop SSH Reference Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents