summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.142
1 files changed, 21 insertions, 21 deletions
diff --git a/sftp.1 b/sftp.1
index 6d8963087..dae551bdf 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.20 2001/06/23 05:57:08 deraadt Exp $ 1.\" $OpenBSD: sftp.1,v 1.21 2001/06/23 17:48:18 itojun Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -37,7 +37,7 @@
37.Nm sftp 37.Nm sftp
38.Op [\fIuser\fR@]\fIhost\fR[:\fIfile\fR [\fIfile\fR]] 38.Op [\fIuser\fR@]\fIhost\fR[:\fIfile\fR [\fIfile\fR]]
39.Nm sftp 39.Nm sftp
40.Op [\fIuser\fR@]\fIhost\fR[:\fIdir\fR[\fI/\fR]] 40.Op [\fIuser\fR@]\fIhost\fR[:\fIdir\fR[\fI/\fR]]
41.Sh DESCRIPTION 41.Sh DESCRIPTION
42.Nm 42.Nm
43is an interactive file transfer program, similar to 43is an interactive file transfer program, similar to
@@ -52,7 +52,7 @@ connects and logs into the specified
52.Ar host , 52.Ar host ,
53then enters an interactive command mode. 53then enters an interactive command mode.
54.Pp 54.Pp
55The second usage format will retrieve files automatically if a non-interactive 55The second usage format will retrieve files automatically if a non-interactive
56authentication method is used; otherwise it will do so after 56authentication method is used; otherwise it will do so after
57successful interactive authentication. 57successful interactive authentication.
58.Pp 58.Pp
@@ -68,13 +68,13 @@ instead of
68Since it lacks user interaction it should be used in conjunction with 68Since it lacks user interaction it should be used in conjunction with
69non-interactive authentication. 69non-interactive authentication.
70.Nm 70.Nm
71will abort if any of the following 71will abort if any of the following
72commands fail: 72commands fail:
73.Ic get , put , rename , ln , rm , mkdir , chdir , lchdir 73.Ic get , put , rename , ln , rm , mkdir , chdir , lchdir
74and 74and
75.Ic lmkdir . 75.Ic lmkdir .
76.It Fl C 76.It Fl C
77Enables compression (via ssh's 77Enables compression (via ssh's
78.Fl C 78.Fl C
79flag) 79flag)
80.It Fl o Ar ssh_option 80.It Fl o Ar ssh_option
@@ -86,31 +86,31 @@ Raise logging level. This option is also passed to ssh.
86.Sh INTERACTIVE COMMANDS 86.Sh INTERACTIVE COMMANDS
87Once in interactive mode, 87Once in interactive mode,
88.Nm 88.Nm
89understands a set of commands similar to those of 89understands a set of commands similar to those of
90.Xr ftp 1 . 90.Xr ftp 1 .
91Commands are case insensitive and pathnames may be enclosed in quotes if they 91Commands are case insensitive and pathnames may be enclosed in quotes if they
92contain spaces. 92contain spaces.
93.Bl -tag -width Ds 93.Bl -tag -width Ds
94.It Ic cd Ar path 94.It Ic cd Ar path
95Change remote directory to 95Change remote directory to
96.Ar path . 96.Ar path .
97.It Ic lcd Ar path 97.It Ic lcd Ar path
98Change local directory to 98Change local directory to
99.Ar path . 99.Ar path .
100.It Ic chgrp Ar grp Ar path 100.It Ic chgrp Ar grp Ar path
101Change group of file 101Change group of file
102.Ar path 102.Ar path
103to 103to
104.Ar grp . 104.Ar grp .
105.Ar grp 105.Ar grp
106must be a numeric GID. 106must be a numeric GID.
107.It Ic chmod Ar mode Ar path 107.It Ic chmod Ar mode Ar path
108Change permissions of file 108Change permissions of file
109.Ar path 109.Ar path
110to 110to
111.Ar mode . 111.Ar mode .
112.It Ic chown Ar own Ar path 112.It Ic chown Ar own Ar path
113Change owner of file 113Change owner of file
114.Ar path 114.Ar path
115to 115to
116.Ar own . 116.Ar own .
@@ -127,15 +127,15 @@ Retrieve the
127.Ar remote-path 127.Ar remote-path
128and store it on the local machine. 128and store it on the local machine.
129If the local 129If the local
130path name is not specified, it is given the same name it has on the 130path name is not specified, it is given the same name it has on the
131remote machine. If the 131remote machine. If the
132.Fl P 132.Fl P
133flag is specified, then the file's full permission and access time are 133flag is specified, then the file's full permission and access time are
134copied too. 134copied too.
135.It Ic help 135.It Ic help
136Display help text. 136Display help text.
137.It Ic lls Op Ar ls-options Op Ar path 137.It Ic lls Op Ar ls-options Op Ar path
138Display local directory listing of either 138Display local directory listing of either
139.Ar path 139.Ar path
140or current directory if 140or current directory if
141.Ar path 141.Ar path
@@ -144,7 +144,7 @@ is not specified.
144Create local directory specified by 144Create local directory specified by
145.Ar path . 145.Ar path .
146.It Ic ln Ar oldpath Ar newpath 146.It Ic ln Ar oldpath Ar newpath
147Create a symbolic link from 147Create a symbolic link from
148.Ar oldpath 148.Ar oldpath
149to 149to
150.Ar newpath . 150.Ar newpath .
@@ -157,7 +157,7 @@ or current directory if
157.Ar path 157.Ar path
158is not specified. 158is not specified.
159.It Ic lumask Ar umask 159.It Ic lumask Ar umask
160Set local umask to 160Set local umask to
161.Ar umask . 161.Ar umask .
162.It Ic mkdir Ar path 162.It Ic mkdir Ar path
163Create remote directory specified by 163Create remote directory specified by
@@ -169,8 +169,8 @@ Create remote directory specified by
169.Xc 169.Xc
170Upload 170Upload
171.Ar local-path 171.Ar local-path
172and store it on the remote machine. If the remote path name is not 172and store it on the remote machine. If the remote path name is not
173specified, it is given the same name it has on the local machine. If the 173specified, it is given the same name it has on the local machine. If the
174.Fl P 174.Fl P
175flag is specified, then the file's full permission and access time are 175flag is specified, then the file's full permission and access time are
176copied too. 176copied too.
@@ -190,12 +190,12 @@ Remove remote directory specified by
190Delete remote file specified by 190Delete remote file specified by
191.Ar path . 191.Ar path .
192.It Ic symlink Ar oldpath Ar newpath 192.It Ic symlink Ar oldpath Ar newpath
193Create a symbolic link from 193Create a symbolic link from
194.Ar oldpath 194.Ar oldpath
195to 195to
196.Ar newpath . 196.Ar newpath .
197.It Ic ! Ar command 197.It Ic ! Ar command
198Execute 198Execute
199.Ar command 199.Ar command
200in local shell. 200in local shell.
201.It Ic ! 201.It Ic !