Skip to content

noahra/diz

Repository files navigation

diz

diz

Ever tried to SSH into another machine and somehow ended up spending 20 minutes copying keys around like it's 2003?

Yeah. Same.

diz fixes that.

Run one command on each machine, share a short code, and you're in. No key juggling required.


How it works

On the machine you want to connect to:

server

On your machine:

client

diz opens a temporary authenticated channel, swaps your public key, adds it to authorized_keys, and drops you straight into a shell. No file copying, no manual editing, no crying.


Install

macOS

brew tap noahra/diz
brew install diz

Arch Linux

yay -S diz-bin

All commands

Command What it does
diz --listen Advertise this machine and wait for a key
diz --listen --pb Same, but copy the share code to clipboard
diz --connect <code> Send your key and SSH in
diz --connect <code> --temp Same, but delete the generated SSH keys after the session ends (useful on shared or borrowed machines)

Using diz across the internet

diz uses your local network IP, so it works out of the box on the same network. For connecting between machines in different locations, pair it with a VPN such as Tailscale, ZeroTier, or WireGuard. Once both machines are on the same virtual network, diz works exactly the same way across any distance.


Security

diz uses TLS with certificate pinning for the key exchange. The connection is encrypted end-to-end and protected against man-in-the-middle attacks. Each session generates a one-time certificate, and the fingerprint is embedded in the share code, so any tampering is detected and the connection is aborted immediately.

About

a tool made to enable you to use ssh smoothly.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages