1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 .Dd $Mdocdate: November 23 2022 $
26 .Oo Ar user Ns @ Oc Ns Ar host Ns Oo : Ns Ar port Oc Ns Op / Ns Ar path
36 downloads it in the current directory and exit, otherwise changes the
37 remote working directory and starts accepting commands.
39 The options are as follows:
44 .It Fl C Ar certificate
45 Connect with TLS to the remote server and use the given
47 during the TLS handsahke.
49 Specify the path to the client certificate
51 to be used during the TLS handshake.
52 If not given, the file passed to
59 When fetching the file specified to the command line,
62 To write the content to standard output, use
64 It's an error to specify
73 The following commands are recognized by
76 .It Ic bell Oo Cm on | off Oc
77 Request terminal to sound a bell after each command.
78 Without arguments toggle the current state.
80 Terminate the session.
83 .It Ic cd Ar remote-path
84 Change the working directory on the remote machine to
86 .It Ic edit Ar remote-path
89 and open it with the preferred editor
98 then attempt to re-upload it.
99 .It Ic get Ar remote-file Op Ar local-file
102 and save it locally as
106 is not given, use the file name from
108 .It Ic hexdump Oo Cm on | off Oc
109 Print the packets sent from/to the server.
110 Without arguments, toggle the current state.
111 .It Ic lcd Op Ar local-directory
112 Change the local current working directory to
118 Print the local working directory.
120 List the file in the remote current working directory.
121 .It Ic page Ar remote-file
126 .Pq Xr less 1 by default .
127 .It Ic pipe Ar remote-file Ar cmd Op Ar args...
130 and pass it as standard input for
134 .It Ic put Ar local-file Op Ar remote-file
142 use the file name from
145 Terminate the session.
148 .It Ic rename Ar remote-file Ar new-remote-name
153 on the remote server.
154 .It Ic verbose Oo Cm on | off Oc
155 Print verbose information.
156 Without arguments toggle the current state.
159 The following environment variables are inspected:
162 The user login directory.
167 .It Ev VISUAL , Ev EDITOR
168 The program used to edit files.
173 If both are undefined,
177 Default login, used if no
179 is given on the command line.
187 utility was written by
188 .An Omar Polo Aq Mt op@omarpolo.com .