SSH & tmux
Remote work: ssh and tmux.
File aliases/remote.sh. Disable: export ALIASX_DISABLE="remote"
SSH
| Name | Runs | What it does | |
|---|---|---|---|
sshkeys | ls -l ~/.ssh/*.pub | your public keys | needs ssh |
sshconf | ${EDITOR:-vi} ~/.ssh/config | edit ssh config | needs ssh |
sshagent | ssh-add -l | keys loaded in agent | needs ssh |
sshgen [NAME] | new ed25519 key at ~/.ssh/NAME (default id_ed25519)example$ sshgen work
Generating public/private ed25519 key pair.
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... ali@laptop | needs ssh | |
sshcopy USER@HOST | install your public key on a serverexample$ sshcopy deploy@203.0.113.10
Number of key(s) added: 1 | needs ssh |
tmux
| Name | Runs | What it does | |
|---|---|---|---|
tl | tmux ls | list sessions | needs tmux |
ta | tmux attach -t | attach to session | needs tmux |
tn | tmux new -s | new named session | needs tmux |
tk SESSION | kill a tmux session after y/Nexample$ tk old
Kill tmux session 'old'? [y/N] y | needs tmux |