Crates.io | rht |
lib.rs | rht |
version | 0.0.1 |
source | src |
created_at | 2022-11-06 20:47:16.735493 |
updated_at | 2022-11-07 03:12:59.021618 |
description | Remote Host Toolkit |
homepage | https://github.com/misterjoshua/rht |
repository | https://github.com/misterjoshua/rht.git |
max_upload_size | |
id | 706712 |
size | 49,688 |
Remote Host Tools (rht)
Download the binary for your desktop and start it - you will now be running an HTTP server on localhost port 12345.
Now, connect to another host and open a browser remotely:
# SSH in to a server with an SSH tunnel
desktop$ ssh server -R 12345:127.0.0.1:12345
# Use the binary to open the url on your desktop; or
server$ rht open https://www.example.com
# Configure your BROWSER env var and use xdg-open
server$ BROWSER="rht open" xdg-open https://www.example.com
# Alternatively, connect directly to the server with this
desktop$ ssh server -R 12345:127.0.0.1:12345 -t BROWSER="rht open" bash