1 fb1a36c0 2022-01-09 op .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 fb1a36c0 2022-01-09 op .\" Permission to use, copy, modify, and distribute this software for any
4 fb1a36c0 2022-01-09 op .\" purpose with or without fee is hereby granted, provided that the above
5 fb1a36c0 2022-01-09 op .\" copyright notice and this permission notice appear in all copies.
7 fb1a36c0 2022-01-09 op .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 fb1a36c0 2022-01-09 op .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 fb1a36c0 2022-01-09 op .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 fb1a36c0 2022-01-09 op .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 fb1a36c0 2022-01-09 op .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 fb1a36c0 2022-01-09 op .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 fb1a36c0 2022-01-09 op .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 fb1a36c0 2022-01-09 op .Dd $Mdocdate: December 14 2021 $
24 fb1a36c0 2022-01-09 op .Op Fl C Ar cert
25 fb1a36c0 2022-01-09 op .Op Fl K Ar key
26 fb1a36c0 2022-01-09 op .Ar host Op Ar path
27 fb1a36c0 2022-01-09 op .Sh DESCRIPTION
33 fb1a36c0 2022-01-09 op The options are as follows:
34 fb1a36c0 2022-01-09 op .Bl -tag -width Ds
36 fb1a36c0 2022-01-09 op Use TLS for the connection.
40 fb1a36c0 2022-01-09 op are mandatory if
43 fb1a36c0 2022-01-09 op .It Fl C Ar certificate
44 fb1a36c0 2022-01-09 op Specify the path to the client
45 fb1a36c0 2022-01-09 op .Ar certificate
46 fb1a36c0 2022-01-09 op to be use during the TLS handsahke.
47 fb1a36c0 2022-01-09 op .It Fl K Ar key
48 fb1a36c0 2022-01-09 op Specify the path to the client certificate
50 fb1a36c0 2022-01-09 op to be used during the TLS handshake.
53 fb1a36c0 2022-01-09 op The following commands are recognized by
55 fb1a36c0 2022-01-09 op .Bl -tag -width Ds
56 fb1a36c0 2022-01-09 op .It Ic bell Oo Cm on | off Oc
57 fb1a36c0 2022-01-09 op Request terminal to sound a bell after each command.
58 fb1a36c0 2022-01-09 op Without arguments toggle the current state.
60 fb1a36c0 2022-01-09 op Terminate the session.
63 11cd7416 2022-01-16 op .It Ic cd Ar remote-path
64 11cd7416 2022-01-16 op Change the working directory on the remote machine to
65 11cd7416 2022-01-16 op .Ar remote-path .
66 11cd7416 2022-01-16 op .It Ic edit Ar remote-path
68 11cd7416 2022-01-16 op .Ar remote-path
69 11cd7416 2022-01-16 op and open it with the preferred editor
78 11cd7416 2022-01-16 op then attempt to re-upload it.
79 11cd7416 2022-01-16 op .It Ic get Ar remote-file Op Ar local-file
81 11cd7416 2022-01-16 op .Ar remote-file
82 11cd7416 2022-01-16 op and save it locally as
83 11cd7416 2022-01-16 op .Ar local-file .
85 11cd7416 2022-01-16 op .Ar local-file
86 11cd7416 2022-01-16 op is not given, use the file name from
87 11cd7416 2022-01-16 op .Ar remote-file .
88 5565d021 2022-01-16 op .It Ic hexdump Oo Cm on | off Oc
89 5565d021 2022-01-16 op Print the packets sent from/to the server.
90 5565d021 2022-01-16 op Without arguments, toggle the current state.
91 11cd7416 2022-01-16 op .It Ic lcd Op Ar local-directory
92 11cd7416 2022-01-16 op Change the local current working directory to
93 11cd7416 2022-01-16 op .Ar local-directory
98 11cd7416 2022-01-16 op Print the local working directory.
100 11cd7416 2022-01-16 op List the file in the remote current working directory.
101 11cd7416 2022-01-16 op .It Ic page Ar remote-file
103 11cd7416 2022-01-16 op .Ar remote-file
104 11cd7416 2022-01-16 op and open it with the
106 11cd7416 2022-01-16 op .Pq Xr less 1 by default .
107 1c9ab7cf 2022-01-29 op .It Ic pipe Ar remote-file Ar cmd Op Ar args...
109 1c9ab7cf 2022-01-29 op .Ar remote-file
110 1c9ab7cf 2022-01-29 op and pass it as standard input for
112 1c9ab7cf 2022-01-29 op (with optional
113 1c9ab7cf 2022-01-29 op .Ar args Ns ).
114 11cd7416 2022-01-16 op .It Ic put Ar local-file Op Ar remote-file
116 11cd7416 2022-01-16 op .Ar local-file
118 11cd7416 2022-01-16 op .Ar remote-file .
120 11cd7416 2022-01-16 op .Ar remote-file
121 11cd7416 2022-01-16 op is not given,
122 11cd7416 2022-01-16 op use the file name from
123 11cd7416 2022-01-16 op .Ar local-file .
125 fb1a36c0 2022-01-09 op Terminate the session.
128 424338c2 2022-01-29 op .It Ic rename Ar remote-file Ar new-remote-name
130 13b8bb0a 2022-01-17 op .Ar remote-file
132 13b8bb0a 2022-01-17 op .Ar new-remote-name
133 13b8bb0a 2022-01-17 op on the remote server.
134 fb1a36c0 2022-01-09 op .It Ic verbose Oo Cm on | off Oc
135 fb1a36c0 2022-01-09 op Print verbose information.
136 fb1a36c0 2022-01-09 op Without arguments toggle the current state.
138 11cd7416 2022-01-16 op .Sh ENVIRONMENT
139 11cd7416 2022-01-16 op The following environment variables are inspected:
140 11cd7416 2022-01-16 op .Bl -tag -width Ds
142 11cd7416 2022-01-16 op The user login directory.
144 7d4a725d 2022-01-17 op The pager to use,
147 11cd7416 2022-01-16 op .It Ev VISUAL, Ev EDITOR
148 11cd7416 2022-01-16 op The program used to edit files.
150 11cd7416 2022-01-16 op is inspected first,
152 11cd7416 2022-01-16 op as a fallback.
153 11cd7416 2022-01-16 op If both are undefined,
155 11cd7416 2022-01-16 op is given some love.
163 fb1a36c0 2022-01-09 op utility was written by
164 fb1a36c0 2022-01-09 op .An Omar Polo Aq Mt op@omarpolo.com .