Use the SSH session string in another terminal. The client connects to the upterm session. This is unexpected since -a $HOME/.ssh/authorized_keys is passed to upterm host.
Expected behavior
upterm host should reject any unauthenticated users when --authorized-key, --github-user or --gitlab-user option is present.
An empty authorized keys file shouldn't be an exception.
Problem: I ran into an issue where I had a passed an empty file to
--authorized-key
option for theupterm host
command.Steps to reproduce
Start a new
upterm host
session in a docker container:Use the SSH session string in another terminal. The client connects to the upterm session. This is unexpected since
-a $HOME/.ssh/authorized_keys
is passed toupterm host
.Expected behavior
upterm host
should reject any unauthenticated users when--authorized-key
,--github-user
or--gitlab-user
option is present. An empty authorized keys file shouldn't be an exception.