version 1.2, 2001/02/06 22:32:53 |
version 1.3, 2001/02/07 11:07:28 |
|
|
.Nd Secure file tranfer program |
.Nd Secure file tranfer program |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm sftp |
.Nm sftp |
.Op Fl v Li | Fl C |
.Op Fl vC |
.Op Fl o Ar ssh_option |
.Op Fl o Ar ssh_option |
.Op Ar hostname | user@hostname |
.Op Ar hostname | user@hostname |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
|
.Xr ftp 1 . |
.Xr ftp 1 . |
Commands are case insensitive. |
Commands are case insensitive. |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Ic CD Ar path |
.It Ic cd Ar path |
Change remote directory to |
Change remote directory to |
.Ar path |
.Ar path . |
.It Ic LCD Ar path |
.It Ic lcd Ar path |
Change local directory to |
Change local directory to |
.Ar path |
.Ar path . |
.It Ic CHGRP Ar grp Ar path |
.It Ic chgrp Ar grp Ar path |
Change group of file |
Change group of file |
.Ar path to |
.Ar path to |
.Ar grp . |
.Ar grp . |
.Ar grp |
.Ar grp |
must be numeric. |
must be numeric. |
.It Ic CHMOD Ar mode Ar path |
.It Ic chmod Ar mode Ar path |
Change permissions of file |
Change permissions of file |
.Ar path to |
.Ar path to |
.Ar mode |
.Ar mode . |
.It Ic CHOWN Ar own Ar path |
.It Ic chown Ar own Ar path |
Change owner of file |
Change owner of file |
.Ar path to |
.Ar path to |
.Ar own . |
.Ar own . |
.Ar own |
.Ar own |
must be a numeric UID. |
must be a numeric UID. |
.It Ic HELP |
.It Ic help |
Display help text |
Display help text. |
.It Ic GET Ar remote-file Op Ar local-file |
.It Ic get Ar remote-file Op Ar local-file |
Retrieve the |
Retrieve the |
.Ar remote-file |
.Ar remote-file |
and store it on the local machine. |
and store it on the local machine. |
If the local |
If the local |
file name is not specified, it is given the same name it has on the |
file name is not specified, it is given the same name it has on the |
remote machine. |
remote machine. |
.It Ic LLS Op Ar ls-options Op Ar path |
.It Ic lls Op Ar ls-options Op Ar path |
Display local directory listing of either |
Display local directory listing of either |
.Ar path |
.Ar path |
or current directory if |
or current directory if |
.Ar path |
.Ar path |
was not specified. |
was not specified. |
.It Ic LMKDIR Ar path |
.It Ic lmkdir Ar path |
Create local directory specified by |
Create local directory specified by |
.Ar path |
.Ar path . |
.It Ic LPWD |
.It Ic lpwd |
Print local working directory |
Print local working directory. |
.It Ic LS Op Ar path |
.It Ic ls Op Ar path |
Display remote directory listing of either |
Display remote directory listing of either |
.Ar path |
.Ar path |
or current directory, is |
or current directory, is |
.Ar path not specified. |
.Ar path not specified. |
.It Ic LUMASK Ar umask |
.It Ic lumask Ar umask |
Set local umask to |
Set local umask to |
.Ar umask |
.Ar umask . |
.It Ic MKDIR Ar path |
.It Ic mkdir Ar path |
Create remote directory specified by |
Create remote directory specified by |
.Ar path |
.Ar path . |
.It Ic PUT local-file Op Ar remote-file |
.It Ic put Ar local-file Op Ar remote-file |
Upload |
Upload |
.Ar local-file |
.Ar local-file |
and store it on the remote machine. If the local file name is not specified, |
and store it on the remote machine. If the local file name is not specified, |
it is given the same name it has on the local machine. |
it is given the same name it has on the local machine. |
.It Ic PWD |
.It Ic pwd |
Display remote working directory |
Display remote working directory. |
.It Ic EXIT |
.It Ic exit |
Quit sftp |
Quit sftp. |
.It Ic QUIT |
.It Ic quit |
Quit sftp |
Quit sftp. |
.It Ic RENAME Ar oldpath Ar newpath |
.It Ic rename Ar oldpath Ar newpath |
Rename remote file from |
Rename remote file from |
.Ar oldpath |
.Ar oldpath |
to |
to |
.Ar newpath |
.Ar newpath . |
.It Ic RMDIR Ar path |
.It Ic rmdir Ar path |
Remove remote directory specified by |
Remove remote directory specified by |
.Ar path |
.Ar path . |
.It Ic RM Ar path |
.It Ic rm Ar path |
Delete remote file specified by |
Delete remote file specified by |
.Ar path |
.Ar path . |
.It Ic ! Ar command |
.It Ic ! Ar command |
Execute |
Execute |
.Ar command |
.Ar command |
in local shell |
in local shell. |
.It Ic ! |
.It Ic ! |
Escape to local shell |
Escape to local shell. |
|
.It Ic ? |
|
A synonym for help. |
.Sh AUTHORS |
.Sh AUTHORS |
Damien Miller <djm@mindrot.org> |
Damien Miller <djm@mindrot.org> |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr ssh 1 , |
.Xr ssh 1 , |
.Xr ssh-add 1 , |
.Xr ssh-add 1 , |
.Xr ssh-keygen 1 , |
.Xr ssh-keygen 1 , |
.Xr sshd 8 |
.Xr sshd 8 , |
|
.Xr scp 1 |
|
|