ttydsecure helps make securing the terminal connection to the browser with ttyd a little easier
384
ttydsecure is a wrapper script around ttyd which is a simple command-line tool for sharing a terminal over the web. More information on ttyd can be found here.
ttydsecure helps make the terminal connection to the browser more secure.
Please note that any user of ttydsecure must ensure they understand the risks involved in exposing a terminal via a web browser and take the required steps to stay secure.
ttydsecure helps to improve security in the following ways:
This image is based on debian:stretch-slim. In addition to ttydsecure and ttyd, and the following executables have been installed for the user's convience in this image:
- openssh-client
- vim
- sudo
This image can be used either as an executable or a base image.
ttydsecure uses environmental variables to automatically set the appropriate parameters to pass to ttyd.
ttydsecure can take any of the ttyd parameters, however any parameters set automatically because of environmental variables settings should not be used. See each of the environmental variables to learn which ttyd parameters are set.
NOTE: The following parameters are always passed to ttyd:
By default, ttyd listens on port 7681 therefore this port needs to be exposed on the port the user prefers.
The default command is ttydsecure if there are no parameters passed during container creation.
ttydsecure uses environmental variables to automatically set the appropriate parameters to pass ttyd.
By using environmental variables the user can control:
The TTYD_AUTH_TYPE environmental variable allows the user to specify if Operating System level authentication is choosen or HTTP Basic Authentication.
The default is Operating System level authentication.
To use HTTP Basic Authentication TTYD_AUTH_TYPE must be set to basic.
The SERVER_CRT environmental variable allows the user to specify the name and location of the server cert file.
The following ttyd parameter will be passed automatically:
The default value is /certs/server.crt.
The SERVER_KEY environmental variable allows the user to specify the name and location of the server key file.
The following ttyd parameter will be passed automatically:
The default value is /certs/server.key.
If using Operating System level authentication is choosen, the TTYD_USER environmental variable will be the name of the OS user created in the container. Otherwise this is the user name that must be provided for HTTP Basic Authentication.
The following ttyd parameter will be passed automatically if HTTP Basic Authentication is choosen.
If using Operating System level authentication is choosen, the TTYD_PASSWD environmental variable will be the password of the OS user in the container. Otherwise this is the user password that must be provided for HTTP Basic Authentication.
The following ttyd parameter will be passed automatically if HTTP Basic Authentication is choosen.
If using Operating System level authentication is choosen, the TTYD_SUDOER environmental variable allows the user to indicate if the OS user should be added as a sudoer in the container.
Valid values are "Y" or "y" to indicate yes. All other values mean no.
The TTYD_MAX_CONNS environmental variable allows the user to specify the maximum number of allowed connections. 0 means unlimited connections.
The default value is 1.
The following ttyd parameter will be passed automatically:
Content type
Image
Digest
Size
37.9 MB
Last updated
over 7 years ago
docker pull blackeyetechnology/ttydsecure