2023-02-15
Setup Ssh Server On Windows, Enable Key Based Authentication To Windows Ssh Server

tutorial

change the sshd config

append the client’s public key to “authorized_keys” and “administrators_authorized_keys”

restart the service

Read More

2022-08-13
Force Pty Allocation When Spinning Up Tmux Over Ssh

1
2
kali -t tmux attach -t <target_session_name>

or:

1
2
kali -o RequestTTY=no tmux attach -t <target_session_name>

situation:

1
2
3
$ ssh 192.0.2.125 tmux attach
open terminal failed: not a terminal

The solution is to simply force pseudo-terminal allocation.

1
2
3
$ ssh -t 192.0.2.125 tmux attach
[...]

Define RequestTTY in OpenSSH SSH client configuration file to make this permanent.

1
2
3
4
$ cat ~/.ssh/config
Host 192.0.2.125
RequestTTY yes

Read More