npm install -g hyperssh // ssh / fuse client stubs
npm install -g hypertele // hyperswarm server proxy
npm install -g hyper-cmd-utils // keygen utils
On a server or a machine running an ssh-server, run:
hypertele-server --seed SEED -l 22
This will start announcing the server on the DHT and will display the Noise Public Key of the server.
To connect to the server from another machine, pass the keypair to the
hypersshcommand, along with an optional username:
hyperssh -s ab01f... -u maf
hyperssh -s ab01f... -u maf -i keypair.json
That's it! Remembering hostnames is required no more! 😌
Under the hood, Hyperswarm performs UDP holepunching. So, your server should be accessible even if it is located on a home network. Refer to identity management for more information.
Hyperssh can also be used with Windows RDP to remotely log in to your windows machines over Hyperswarm.
On the computer (ensure RDP is enabled) you want to login to (server), run:
hypertele-server --seed SEED -l 3389
Then on another computer (client), anywhere on the internet, ssh into the server:
hyperssh --rdp -s ...
The Hyperssh also supports the hyper-cmd system. Refer to Identity management and Host resolution for additional information.