change the sshd config
append the client’s public key to “authorized_keys” and “administrators_authorized_keys”
restart the service
change the sshd config
append the client’s public key to “authorized_keys” and “administrators_authorized_keys”
restart the service
1 | kali -t tmux attach -t <target_session_name> |
or:
1 | kali -o RequestTTY=no tmux attach -t <target_session_name> |
situation:
1 | $ ssh 192.0.2.125 tmux attach |
The solution is to simply force pseudo-terminal allocation.
1 | $ ssh -t 192.0.2.125 tmux attach |
Define RequestTTY in OpenSSH SSH client configuration file to make this permanent.
1 | $ cat ~/.ssh/config |