@donkeysharp
Terminal Multiplexer
$ tmux -S /tmp/foo.sock new-session -s nombre
$ tmux -S /tmp/foo.sock attach -r -t nombre
/etc/ssh/sshd_config
Match User <username> PasswordAuthentication no
$HOME/.ssh/authorized_keys
command="echo bye" <key-type> <key>
$ tmux -S /tmp/foo.sock new-session -s tmuxer
$ # MALA PRACTICA
$ chmod o=rwx /tmp/foo.sock
$ adduser tmuxer ...
$ sudo su tmuxer
$ cat ~/.ssh/authorized_keys
command="/usr/bin/tmux -S /tmp/foo.sock attach -r -t tmuxer"
Computadora A:
/etc/ssh/sshd_config
Match User tmuxer PasswordAuthentication no
Computadora A:
$ ssh tmuxer@example.com
Computadora B: