Crates.io | fwd |
lib.rs | fwd |
version | 0.9.0 |
source | src |
created_at | 2022-10-26 14:15:21.094933 |
updated_at | 2024-08-10 16:01:05.554774 |
description | Automatically forward ports to a remote server over ssh |
homepage | https://github.com/DeCarabas/fwd |
repository | https://github.com/DeCarabas/fwd |
max_upload_size | |
id | 697918 |
size | 197,334 |
A port-forwarding utility.
Here's how it works:
fwd
fwd
on the server somewhere in your $PATH
(like /usr/bin/
)fwd
on the client (like your laptop)fwd
on the client to connect to the server, like so:doty@my.laptop$ fwd some.server
fwd
will connect to some.server
via ssh, and then show you a screen listing all of the ports that the server is listening on locally.
Use the up and down arrow keys (or j
/k
) to select the port you're interested in and press e
to toggle forwarding of that port.
Now, connections to that port locally will be forwarded to the remote server.
If the port is something that might be interesting to a web browser, you can press <ENTER>
with the port selected to open a browser pointed at that port.
If something is going wrong, pressing l
will toggle logs that might explain it.
Press q
to quit.
Clipboard integration: send something from the remote end of the pipe to the host's clipboard. (Sometimes you really want to copy some big buffer from the remote side and your terminal just can't make that work.)
Client heartbeats: I frequently wind up in a situation where the pipe is stalled: not broken but nothing is getting through. (This happens with my coder.com pipes all the time.)