diff options
Diffstat (limited to 'sftp.1')
-rw-r--r-- | sftp.1 | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -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 |
43 | is an interactive file transfer program, similar to | 43 | is an interactive file transfer program, similar to |
@@ -52,7 +52,7 @@ connects and logs into the specified | |||
52 | .Ar host , | 52 | .Ar host , |
53 | then enters an interactive command mode. | 53 | then enters an interactive command mode. |
54 | .Pp | 54 | .Pp |
55 | The second usage format will retrieve files automatically if a non-interactive | 55 | The second usage format will retrieve files automatically if a non-interactive |
56 | authentication method is used; otherwise it will do so after | 56 | authentication method is used; otherwise it will do so after |
57 | successful interactive authentication. | 57 | successful interactive authentication. |
58 | .Pp | 58 | .Pp |
@@ -68,13 +68,13 @@ instead of | |||
68 | Since it lacks user interaction it should be used in conjunction with | 68 | Since it lacks user interaction it should be used in conjunction with |
69 | non-interactive authentication. | 69 | non-interactive authentication. |
70 | .Nm | 70 | .Nm |
71 | will abort if any of the following | 71 | will abort if any of the following |
72 | commands fail: | 72 | commands fail: |
73 | .Ic get , put , rename , ln , rm , mkdir , chdir , lchdir | 73 | .Ic get , put , rename , ln , rm , mkdir , chdir , lchdir |
74 | and | 74 | and |
75 | .Ic lmkdir . | 75 | .Ic lmkdir . |
76 | .It Fl C | 76 | .It Fl C |
77 | Enables compression (via ssh's | 77 | Enables compression (via ssh's |
78 | .Fl C | 78 | .Fl C |
79 | flag) | 79 | flag) |
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 |
87 | Once in interactive mode, | 87 | Once in interactive mode, |
88 | .Nm | 88 | .Nm |
89 | understands a set of commands similar to those of | 89 | understands a set of commands similar to those of |
90 | .Xr ftp 1 . | 90 | .Xr ftp 1 . |
91 | Commands are case insensitive and pathnames may be enclosed in quotes if they | 91 | Commands are case insensitive and pathnames may be enclosed in quotes if they |
92 | contain spaces. | 92 | contain spaces. |
93 | .Bl -tag -width Ds | 93 | .Bl -tag -width Ds |
94 | .It Ic cd Ar path | 94 | .It Ic cd Ar path |
95 | Change remote directory to | 95 | Change remote directory to |
96 | .Ar path . | 96 | .Ar path . |
97 | .It Ic lcd Ar path | 97 | .It Ic lcd Ar path |
98 | Change local directory to | 98 | Change 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 |
101 | Change group of file | 101 | Change group of file |
102 | .Ar path | 102 | .Ar path |
103 | to | 103 | to |
104 | .Ar grp . | 104 | .Ar grp . |
105 | .Ar grp | 105 | .Ar grp |
106 | must be a numeric GID. | 106 | must be a numeric GID. |
107 | .It Ic chmod Ar mode Ar path | 107 | .It Ic chmod Ar mode Ar path |
108 | Change permissions of file | 108 | Change permissions of file |
109 | .Ar path | 109 | .Ar path |
110 | to | 110 | to |
111 | .Ar mode . | 111 | .Ar mode . |
112 | .It Ic chown Ar own Ar path | 112 | .It Ic chown Ar own Ar path |
113 | Change owner of file | 113 | Change owner of file |
114 | .Ar path | 114 | .Ar path |
115 | to | 115 | to |
116 | .Ar own . | 116 | .Ar own . |
@@ -127,15 +127,15 @@ Retrieve the | |||
127 | .Ar remote-path | 127 | .Ar remote-path |
128 | and store it on the local machine. | 128 | and store it on the local machine. |
129 | If the local | 129 | If the local |
130 | path name is not specified, it is given the same name it has on the | 130 | path name is not specified, it is given the same name it has on the |
131 | remote machine. If the | 131 | remote machine. If the |
132 | .Fl P | 132 | .Fl P |
133 | flag is specified, then the file's full permission and access time are | 133 | flag is specified, then the file's full permission and access time are |
134 | copied too. | 134 | copied too. |
135 | .It Ic help | 135 | .It Ic help |
136 | Display help text. | 136 | Display help text. |
137 | .It Ic lls Op Ar ls-options Op Ar path | 137 | .It Ic lls Op Ar ls-options Op Ar path |
138 | Display local directory listing of either | 138 | Display local directory listing of either |
139 | .Ar path | 139 | .Ar path |
140 | or current directory if | 140 | or current directory if |
141 | .Ar path | 141 | .Ar path |
@@ -144,7 +144,7 @@ is not specified. | |||
144 | Create local directory specified by | 144 | Create 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 |
147 | Create a symbolic link from | 147 | Create a symbolic link from |
148 | .Ar oldpath | 148 | .Ar oldpath |
149 | to | 149 | to |
150 | .Ar newpath . | 150 | .Ar newpath . |
@@ -157,7 +157,7 @@ or current directory if | |||
157 | .Ar path | 157 | .Ar path |
158 | is not specified. | 158 | is not specified. |
159 | .It Ic lumask Ar umask | 159 | .It Ic lumask Ar umask |
160 | Set local umask to | 160 | Set local umask to |
161 | .Ar umask . | 161 | .Ar umask . |
162 | .It Ic mkdir Ar path | 162 | .It Ic mkdir Ar path |
163 | Create remote directory specified by | 163 | Create remote directory specified by |
@@ -169,8 +169,8 @@ Create remote directory specified by | |||
169 | .Xc | 169 | .Xc |
170 | Upload | 170 | Upload |
171 | .Ar local-path | 171 | .Ar local-path |
172 | and store it on the remote machine. If the remote path name is not | 172 | and store it on the remote machine. If the remote path name is not |
173 | specified, it is given the same name it has on the local machine. If the | 173 | specified, it is given the same name it has on the local machine. If the |
174 | .Fl P | 174 | .Fl P |
175 | flag is specified, then the file's full permission and access time are | 175 | flag is specified, then the file's full permission and access time are |
176 | copied too. | 176 | copied too. |
@@ -190,12 +190,12 @@ Remove remote directory specified by | |||
190 | Delete remote file specified by | 190 | Delete 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 |
193 | Create a symbolic link from | 193 | Create a symbolic link from |
194 | .Ar oldpath | 194 | .Ar oldpath |
195 | to | 195 | to |
196 | .Ar newpath . | 196 | .Ar newpath . |
197 | .It Ic ! Ar command | 197 | .It Ic ! Ar command |
198 | Execute | 198 | Execute |
199 | .Ar command | 199 | .Ar command |
200 | in local shell. | 200 | in local shell. |
201 | .It Ic ! | 201 | .It Ic ! |