diff options
author | Damien Miller <djm@mindrot.org> | 2001-02-10 00:40:03 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-02-10 00:40:03 +1100 |
commit | d7686fd1fbe842baa8ce77f018c040d5e1d3438a (patch) | |
tree | a5d6ad5b4b232e06185a49b1b5aabe4761a3d8ed /sftp.1 | |
parent | 4192c467916f96668fad5b53d90d83dfbfdcacb5 (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.1 | 119 |
1 files changed, 64 insertions, 55 deletions
@@ -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 | |||
44 | compression. | 44 | compression. |
45 | .Nm | 45 | .Nm |
46 | connects and logs into the specified | 46 | connects and logs into the specified |
47 | .Ar hostname | 47 | .Ar hostname , |
48 | then enters an interactive command mode. | 48 | then enters an interactive command mode. |
49 | .Pp | 49 | .Pp |
50 | The options are as follows: | 50 | The options are as follows: |
51 | .Bl -tag -width Ds | 51 | .Bl -tag -width Ds |
52 | .It Fl v | ||
53 | Raise logging level. This option is also passed to ssh. | ||
52 | .It Fl C | 54 | .It Fl C |
53 | Enables compression (via ssh's | 55 | Enables compression (via ssh's |
54 | .Fl C | 56 | .Fl C |
55 | flag) | 57 | flag) |
56 | .It Fl v | ||
57 | Raise logging level. This option is also passed to ssh. | ||
58 | .It Fl o Ar ssh_option | 58 | .It Fl o Ar ssh_option |
59 | Specify an option to be directly passed to | 59 | Specify 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 |
63 | Once in interactive mode | 63 | Once in interactive mode, |
64 | .Nm , | 64 | .Nm |
65 | understands a set of commands similar to those of | 65 | understands a set of commands similar to those of |
66 | .Xr ftp 1 . | 66 | .Xr ftp 1 . |
67 | Commands are case insensitive. | 67 | Commands 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 |
70 | Change remote directory to | 70 | Change remote directory to |
71 | .Ar path | 71 | .Ar path . |
72 | .It Ic LCD Ar path | 72 | .It Ic lcd Ar path |
73 | Change local directory to | 73 | Change 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 |
76 | Change group of file | 76 | Change group of file |
77 | .Ar path to | 77 | .Ar path |
78 | to | ||
78 | .Ar grp . | 79 | .Ar grp . |
79 | .Ar grp | 80 | .Ar grp |
80 | must be numeric. | 81 | must be a numeric GID. |
81 | .It Ic CHMOD Ar mode Ar path | 82 | .It Ic chmod Ar mode Ar path |
82 | Change permissions of file | 83 | Change permissions of file |
83 | .Ar path to | 84 | .Ar path |
84 | .Ar mode | 85 | to |
85 | .It Ic CHOWN Ar own Ar path | 86 | .Ar mode . |
87 | .It Ic chown Ar own Ar path | ||
86 | Change owner of file | 88 | Change owner of file |
87 | .Ar path to | 89 | .Ar path |
90 | to | ||
88 | .Ar own . | 91 | .Ar own . |
89 | .Ar own | 92 | .Ar own |
90 | must be a numeric UID. | 93 | must be a numeric UID. |
91 | .It Ic HELP | 94 | .It Ic help |
92 | Display help text | 95 | Display help text. |
93 | .It Ic GET Ar remote-file Op Ar local-file | 96 | .It Ic get Ar remote-path Op Ar local-path |
94 | Retrieve the | 97 | Retrieve the |
95 | .Ar remote-file | 98 | .Ar remote-path |
96 | and store it on the local machine. | 99 | and store it on the local machine. |
97 | If the local | 100 | If the local |
98 | file name is not specified, it is given the same name it has on the | 101 | path name is not specified, it is given the same name it has on the |
99 | remote machine. | 102 | remote machine. |
100 | .It Ic LLS Op Ar ls-options Op Ar path | 103 | .It Ic lls Op Ar ls-options Op Ar path |
101 | Display local directory listing of either | 104 | Display local directory listing of either |
102 | .Ar path | 105 | .Ar path |
103 | or current directory if | 106 | or current directory if |
104 | .Ar path | 107 | .Ar path |
105 | was not specified. | 108 | is not specified. |
106 | .It Ic LMKDIR Ar path | 109 | .It Ic lmkdir Ar path |
107 | Create local directory specified by | 110 | Create local directory specified by |
108 | .Ar path | 111 | .Ar path . |
109 | .It Ic LPWD | 112 | .It Ic lpwd |
110 | Print local working directory | 113 | Print local working directory. |
111 | .It Ic LS Op Ar path | 114 | .It Ic ls Op Ar path |
112 | Display remote directory listing of either | 115 | Display remote directory listing of either |
113 | .Ar path | 116 | .Ar path |
114 | or current directory, is | 117 | or current directory if |
115 | .Ar path not specified. | 118 | .Ar path |
116 | .It Ic LUMASK Ar umask | 119 | is not specified. |
120 | .It Ic lumask Ar umask | ||
117 | Set local umask to | 121 | Set local umask to |
118 | .Ar umask | 122 | .Ar umask . |
119 | .It Ic MKDIR Ar path | 123 | .It Ic mkdir Ar path |
120 | Create remote directory specified by | 124 | Create 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 |
123 | Upload | 127 | Upload |
124 | .Ar local-file | 128 | .Ar local-path |
125 | and store it on the remote machine. If the local file name is not specified, | 129 | and store it on the remote machine. If the remote path name is not specified, |
126 | it is given the same name it has on the local machine. | 130 | it is given the same name it has on the local machine. |
127 | .It Ic PWD | 131 | .It Ic pwd |
128 | Display remote working directory | 132 | Display remote working directory. |
129 | .It Ic EXIT | 133 | .It Ic exit |
130 | Quit sftp | 134 | Quit sftp. |
131 | .It Ic QUIT | 135 | .It Ic quit |
132 | Quit sftp | 136 | Quit sftp. |
133 | .It Ic RENAME Ar oldpath Ar newpath | 137 | .It Ic rename Ar oldpath Ar newpath |
134 | Rename remote file from | 138 | Rename remote file from |
135 | .Ar oldpath | 139 | .Ar oldpath |
136 | to | 140 | to |
137 | .Ar newpath | 141 | .Ar newpath . |
138 | .It Ic RMDIR Ar path | 142 | .It Ic rmdir Ar path |
139 | Remove remote directory specified by | 143 | Remove remote directory specified by |
140 | .Ar path | 144 | .Ar path . |
141 | .It Ic RM Ar path | 145 | .It Ic rm Ar path |
142 | Delete remote file specified by | 146 | Delete remote file specified by |
143 | .Ar path | 147 | .Ar path . |
144 | .It Ic ! Ar command | 148 | .It Ic ! Ar command |
145 | Execute | 149 | Execute |
146 | .Ar command | 150 | .Ar command |
147 | in local shell | 151 | in local shell. |
148 | .It Ic ! | 152 | .It Ic ! |
149 | Escape to local shell | 153 | Escape to local shell. |
154 | .It Ic ? | ||
155 | Synonym for help. | ||
156 | .El | ||
150 | .Sh AUTHORS | 157 | .Sh AUTHORS |
151 | Damien Miller <djm@mindrot.org> | 158 | Damien 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 | |||