summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-10 00:40:03 +1100
committerDamien Miller <djm@mindrot.org>2001-02-10 00:40:03 +1100
commitd7686fd1fbe842baa8ce77f018c040d5e1d3438a (patch)
treea5d6ad5b4b232e06185a49b1b5aabe4761a3d8ed /sftp.1
parent4192c467916f96668fad5b53d90d83dfbfdcacb5 (diff)
- (djm) Sync sftp and scp stuff from OpenBSD:
- djm@cvs.openbsd.org 2001/02/07 03:55:13 [sftp-client.c] Don't free handles before we are done with them. Based on work from Corinna Vinschen <vinschen@redhat.com>. ok markus@ - djm@cvs.openbsd.org 2001/02/06 22:32:53 [sftp.1] Punctuation fix from Pekka Savola <pekkas@netcore.fi> - deraadt@cvs.openbsd.org 2001/02/07 04:07:29 [sftp.1] pretty up significantly - itojun@cvs.openbsd.org 2001/02/07 06:49:42 [sftp.1] .Bl-.El mismatch. markus ok - djm@cvs.openbsd.org 2001/02/07 06:12:30 [sftp-int.c] Check that target is a directory before doing ls; ok markus@ - itojun@cvs.openbsd.org 2001/02/07 11:01:18 [scp.c sftp-client.c sftp-server.c] unsigned long long -> %llu, not %qu. markus ok - stevesk@cvs.openbsd.org 2001/02/07 11:10:39 [sftp.1 sftp-int.c] more man page cleanup and sync of help text with man page; ok markus@ - markus@cvs.openbsd.org 2001/02/07 14:58:34 [sftp-client.c] older servers reply with SSH2_FXP_NAME + count==0 instead of EOF - djm@cvs.openbsd.org 2001/02/07 15:27:19 [sftp.c] Don't forward agent and X11 in sftp. Suggestion from Roumen Petrov <roumen.petrov@skalasoft.com> - stevesk@cvs.openbsd.org 2001/02/07 15:36:04 [sftp-int.c] portable; ok markus@ - stevesk@cvs.openbsd.org 2001/02/07 15:55:47 [sftp-int.c] lowercase cmds[].c also; ok markus@ - markus@cvs.openbsd.org 2001/02/07 17:04:52 [pathnames.h sftp.c] allow sftp over ssh protocol 1; ok djm@ - deraadt@cvs.openbsd.org 2001/02/08 07:38:55 [scp.c] memory leak fix, and snprintf throughout - deraadt@cvs.openbsd.org 2001/02/08 08:02:02 [sftp-int.c] plug a memory leak - stevesk@cvs.openbsd.org 2001/02/08 10:11:23 [session.c sftp-client.c] %i -> %d - stevesk@cvs.openbsd.org 2001/02/08 10:57:59 [sftp-int.c] typo - stevesk@cvs.openbsd.org 2001/02/08 15:28:07 [sftp-int.c pathnames.h] _PATH_LS; ok markus@ - djm@cvs.openbsd.org 2001/02/09 04:46:25 [sftp-int.c] Check for NULL attribs for chown, chmod & chgrp operations, only send relevant attribs back to server; ok markus@ - (djm) Update makefile.in for _PATH_SFTP_SERVER
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.1119
1 files changed, 64 insertions, 55 deletions
diff --git a/sftp.1 b/sftp.1
index 59206b654..84edc4d67 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.1 2001/02/04 11:11:54 djm Exp $ 1.\" $OpenBSD: sftp.1,v 1.5 2001/02/07 18:10:39 stevesk Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -30,7 +30,7 @@
30.Nd Secure file tranfer program 30.Nd Secure file tranfer program
31.Sh SYNOPSIS 31.Sh SYNOPSIS
32.Nm sftp 32.Nm sftp
33.Op Fl v Li | Fl C 33.Op Fl vC
34.Op Fl o Ar ssh_option 34.Op Fl o Ar ssh_option
35.Op Ar hostname | user@hostname 35.Op Ar hostname | user@hostname
36.Sh DESCRIPTION 36.Sh DESCRIPTION
@@ -44,113 +44,122 @@ It may also use many features of ssh, such as public key authentication and
44compression. 44compression.
45.Nm 45.Nm
46connects and logs into the specified 46connects and logs into the specified
47.Ar hostname 47.Ar hostname ,
48then enters an interactive command mode. 48then enters an interactive command mode.
49.Pp 49.Pp
50The options are as follows: 50The options are as follows:
51.Bl -tag -width Ds 51.Bl -tag -width Ds
52.It Fl v
53Raise logging level. This option is also passed to ssh.
52.It Fl C 54.It Fl C
53Enables compression (via ssh's 55Enables compression (via ssh's
54.Fl C 56.Fl C
55flag) 57flag)
56.It Fl v
57Raise logging level. This option is also passed to ssh.
58.It Fl o Ar ssh_option 58.It Fl o Ar ssh_option
59Specify an option to be directly passed to 59Specify an option to be directly passed to
60.Xr ssh 1 . 60.Xr ssh 1 .
61.El 61.El
62.Sh INTERACTIVE COMMANDS 62.Sh INTERACTIVE COMMANDS
63Once in interactive mode 63Once in interactive mode,
64.Nm , 64.Nm
65understands a set of commands similar to those of 65understands a set of commands similar to those of
66.Xr ftp 1 . 66.Xr ftp 1 .
67Commands are case insensitive. 67Commands are case insensitive.
68.Bl -tag -width Ds 68.Bl -tag -width Ds
69.It Ic CD Ar path 69.It Ic cd Ar path
70Change remote directory to 70Change remote directory to
71.Ar path 71.Ar path .
72.It Ic LCD Ar path 72.It Ic lcd Ar path
73Change local directory to 73Change local directory to
74.Ar path 74.Ar path .
75.It Ic CHGRP Ar grp Ar path 75.It Ic chgrp Ar grp Ar path
76Change group of file 76Change group of file
77.Ar path to 77.Ar path
78to
78.Ar grp . 79.Ar grp .
79.Ar grp 80.Ar grp
80must be numeric. 81must be a numeric GID.
81.It Ic CHMOD Ar mode Ar path 82.It Ic chmod Ar mode Ar path
82Change permissions of file 83Change permissions of file
83.Ar path to 84.Ar path
84.Ar mode 85to
85.It Ic CHOWN Ar own Ar path 86.Ar mode .
87.It Ic chown Ar own Ar path
86Change owner of file 88Change owner of file
87.Ar path to 89.Ar path
90to
88.Ar own . 91.Ar own .
89.Ar own 92.Ar own
90must be a numeric UID. 93must be a numeric UID.
91.It Ic HELP 94.It Ic help
92Display help text 95Display help text.
93.It Ic GET Ar remote-file Op Ar local-file 96.It Ic get Ar remote-path Op Ar local-path
94Retrieve the 97Retrieve the
95.Ar remote-file 98.Ar remote-path
96and store it on the local machine. 99and store it on the local machine.
97If the local 100If the local
98file name is not specified, it is given the same name it has on the 101path name is not specified, it is given the same name it has on the
99remote machine. 102remote machine.
100.It Ic LLS Op Ar ls-options Op Ar path 103.It Ic lls Op Ar ls-options Op Ar path
101Display local directory listing of either 104Display local directory listing of either
102.Ar path 105.Ar path
103or current directory if 106or current directory if
104.Ar path 107.Ar path
105was not specified. 108is not specified.
106.It Ic LMKDIR Ar path 109.It Ic lmkdir Ar path
107Create local directory specified by 110Create local directory specified by
108.Ar path 111.Ar path .
109.It Ic LPWD 112.It Ic lpwd
110Print local working directory 113Print local working directory.
111.It Ic LS Op Ar path 114.It Ic ls Op Ar path
112Display remote directory listing of either 115Display remote directory listing of either
113.Ar path 116.Ar path
114or current directory, is 117or current directory if
115.Ar path not specified. 118.Ar path
116.It Ic LUMASK Ar umask 119is not specified.
120.It Ic lumask Ar umask
117Set local umask to 121Set local umask to
118.Ar umask 122.Ar umask .
119.It Ic MKDIR Ar path 123.It Ic mkdir Ar path
120Create remote directory specified by 124Create remote directory specified by
121.Ar path 125.Ar path .
122.It Ic PUT local-file Op Ar remote-file 126.It Ic put Ar local-path Op Ar remote-path
123Upload 127Upload
124.Ar local-file 128.Ar local-path
125and store it on the remote machine. If the local file name is not specified, 129and store it on the remote machine. If the remote path name is not specified,
126it is given the same name it has on the local machine. 130it is given the same name it has on the local machine.
127.It Ic PWD 131.It Ic pwd
128Display remote working directory 132Display remote working directory.
129.It Ic EXIT 133.It Ic exit
130Quit sftp 134Quit sftp.
131.It Ic QUIT 135.It Ic quit
132Quit sftp 136Quit sftp.
133.It Ic RENAME Ar oldpath Ar newpath 137.It Ic rename Ar oldpath Ar newpath
134Rename remote file from 138Rename remote file from
135.Ar oldpath 139.Ar oldpath
136to 140to
137.Ar newpath 141.Ar newpath .
138.It Ic RMDIR Ar path 142.It Ic rmdir Ar path
139Remove remote directory specified by 143Remove remote directory specified by
140.Ar path 144.Ar path .
141.It Ic RM Ar path 145.It Ic rm Ar path
142Delete remote file specified by 146Delete remote file specified by
143.Ar path 147.Ar path .
144.It Ic ! Ar command 148.It Ic ! Ar command
145Execute 149Execute
146.Ar command 150.Ar command
147in local shell 151in local shell.
148.It Ic ! 152.It Ic !
149Escape to local shell 153Escape to local shell.
154.It Ic ?
155Synonym for help.
156.El
150.Sh AUTHORS 157.Sh AUTHORS
151Damien Miller <djm@mindrot.org> 158Damien Miller <djm@mindrot.org>
152.Sh SEE ALSO 159.Sh SEE ALSO
153.Xr ssh 1 , 160.Xr ssh 1 ,
154.Xr ssh-add 1 , 161.Xr ssh-add 1 ,
155.Xr ssh-keygen 1 , 162.Xr ssh-keygen 1 ,
156.Xr sshd 8 163.Xr sshd 8 ,
164.Xr scp 1
165