Go to file
ebardie d7334ee4c3
Add '-A' option to enforce use of authorized_keys (#93)
Add an option to the server to force clients to always set an
authorized_keys file. Without it it is all too easy to forget and leave
the connexions accessible to anyone with the session name.

Co-authored-by: Jonathan Sambrook <jonathan.sambrook@codethink.co.uk>
2023-06-02 10:18:46 -04:00
compat Cleanup warnings 2019-11-08 23:54:36 -05:00
logo Add tmux logo, createed by Jason Long. 2015-04-28 13:46:47 +01:00
monitor Rename: tmate-slave -> tmate-ssh-server 2019-04-10 08:59:45 -04:00
presentations Add a couple of presentations I wrote a few years ago. One for the ill-fated 2015-06-04 08:23:40 +01:00
tools No more $Id$. 2015-09-14 15:59:21 +01:00
.gitignore Rename: tmate-slave -> tmate-ssh-server 2019-04-10 08:59:45 -04:00
.mailmap Add to .mailmap, and sort. 2015-12-08 08:46:06 +00:00
.travis.yml Fix Travis CI build (#47) 2018-11-30 11:06:01 -05:00
alerts.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
arguments.c Revert "Escape sent commands" 2016-03-28 01:43:28 -04:00
array.h I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
attributes.c No need for $Id$ now. 2014-11-08 12:27:43 +00:00
autogen.sh Remove $Id$. 2015-06-03 18:26:25 +01:00
cfg.c Merge branch 'obsd-master' 2016-01-19 18:01:15 +00:00
CHANGES Update for 2.1 release. 2015-10-18 18:10:43 +01:00
client.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-attach-session.c Merge remote-tracking branch 'tmux/master' 2016-03-27 02:20:38 -04:00
cmd-bind-key.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-break-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-capture-pane.c Instead of combined flags for -c, -s, -t, split into different sets 2015-12-14 00:31:54 +00:00
cmd-choose-buffer.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-choose-client.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-choose-tree.c Instead of combined flags for -c, -s, -t, split into different sets 2015-12-14 00:31:54 +00:00
cmd-clear-history.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-command-prompt.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-confirm-before.c Instead of combined flags for -c, -s, -t, split into different sets 2015-12-14 00:31:54 +00:00
cmd-copy-mode.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-detach-client.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-display-message.c Instead of combined flags for -c, -s, -t, split into different sets 2015-12-14 00:31:54 +00:00
cmd-display-panes.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-find-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-find.c Merge branch 'obsd-master' 2016-03-03 16:01:11 +00:00
cmd-if-shell.c Remove some more unused variables, and use RB_FOREACH_SAFE in 2016-03-01 12:06:07 +00:00
cmd-join-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-kill-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-kill-server.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-kill-session.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-kill-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list-buffers.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list-clients.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list-keys.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list-panes.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list-sessions.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list-windows.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-list.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-load-buffer.c Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel. 2016-03-05 07:47:52 +00:00
cmd-lock-server.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-move-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-new-session.c Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel. 2016-03-05 07:47:52 +00:00
cmd-new-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-paste-buffer.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-pipe-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-queue.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-refresh-client.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-rename-session.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-rename-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-resize-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-respawn-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-respawn-window.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-rotate-window.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-run-shell.c Expand client formats in run-shell. 2016-02-12 12:24:52 +00:00
cmd-save-buffer.c Merge branch 'obsd-master' 2016-03-05 10:01:09 +00:00
cmd-select-layout.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-select-pane.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-select-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-send-keys.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-set-buffer.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-set-environment.c show-* and set-* need to handle a missing target. 2016-03-03 14:15:22 +00:00
cmd-set-hook.c Instead of combined flags for -c, -s, -t, split into different sets 2015-12-14 00:31:54 +00:00
cmd-set-option.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-show-environment.c show-* and set-* need to handle a missing target. 2016-03-03 14:15:22 +00:00
cmd-show-messages.c Merge branch 'obsd-master' 2016-01-19 18:01:15 +00:00
cmd-show-options.c show-* and set-* need to handle a missing target. 2016-03-03 14:15:22 +00:00
cmd-source-file.c Use member names in cmd_entry definitions so I stop getting confused 2015-12-13 21:53:57 +00:00
cmd-split-window.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-string.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-swap-pane.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-swap-window.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-switch-client.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
cmd-unbind-key.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-wait-for.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd.c Merge branch 'obsd-master' 2016-03-02 18:10:51 +00:00
colour.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
compat.h Update my email address. 2016-01-19 18:07:25 +00:00
configure.ac Cleanup warnings 2019-11-08 23:54:36 -05:00
control-notify.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
control.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
COPYING Add a COPYING file, suggested by Dagobert Michelsen. 2013-05-31 12:59:17 +01:00
create_keys.sh create_keys.sh: address shellcheck issues 2021-02-03 10:07:07 +01:00
docker-entrypoint.sh fix 'sh: out of range' warning messages 2022-09-07 12:01:25 +02:00
Dockerfile Do not copy libssh, use the one from alpine linux 2022-09-07 11:59:33 +02:00
Dockerfile.dev Update docker files to use alpine 3.16 2022-09-07 11:59:33 +02:00
environ.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
example_tmux.conf Remove old examples in favour of one example configuration file. 2016-01-29 14:53:28 +00:00
FAQ Note version this happened. 2015-06-04 08:47:23 +01:00
format.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
grid-view.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
grid.c Add RGB escape sequences for capture-pane -e. 2016-01-31 09:57:09 +00:00
hooks.c Add infrastructure to work out the best target given a pane or window 2015-12-16 21:50:37 +00:00
input-keys.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
input.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
install_libssh_travis.sh Fix Travis CI build (#47) 2018-11-30 11:06:01 -05:00
install_msgpack_travis.sh Fix Travis CI build (#47) 2018-11-30 11:06:01 -05:00
job.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
key-bindings.c Remove some more unused variables, and use RB_FOREACH_SAFE in 2016-03-01 12:06:07 +00:00
key-string.c Instead of reusing MouseUp at the finish of a drag, add a new key 2016-03-18 07:28:27 +00:00
layout-custom.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
layout-set.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
layout.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
log.c Cleanup logging 2019-11-09 23:28:07 -05:00
Makefile.am Cleanup warnings 2019-11-08 23:54:36 -05:00
mdoc2man.awk Generate tmux.1 using mdoc2man.awk on Solaris, issue brought up and changes 2013-04-16 11:33:53 +01:00
mode-key.c Instead of reusing MouseUp at the finish of a drag, add a new key 2016-03-18 07:28:27 +00:00
names.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
notify.c Merge branch 'obsd-master' 2015-06-07 23:42:25 +01:00
options-table.c Merge remote-tracking branch 'tmux/master' 2016-03-27 02:20:38 -04:00
options.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
osdep-aix.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-cygwin.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-darwin.c Cleanup warnings 2019-11-08 23:54:36 -05:00
osdep-dragonfly.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-freebsd.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-hpux.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-linux.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-netbsd.c Update my email address. 2016-01-19 18:07:25 +00:00
osdep-openbsd.c Merge branch 'obsd-master' 2016-01-19 18:01:15 +00:00
osdep-sunos.c No need for $Id$ now. 2014-11-08 12:27:43 +00:00
osdep-unknown.c Update my email address. 2016-01-19 18:07:25 +00:00
paste.c Merge branch 'obsd-master' 2016-01-19 18:01:15 +00:00
proc.c Cleanup warnings 2019-11-08 23:54:36 -05:00
README examples/ has gone, so delete some text about it. 2016-01-29 15:45:32 +00:00
README.md readme notes 2019-10-14 23:21:11 -04:00
resize.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
screen-redraw.c Merge remote-tracking branch 'tmux/master' 2016-03-27 02:20:38 -04:00
screen-write.c Clear RGB flags during selection. 2016-01-31 14:11:49 +00:00
screen.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
server-client.c Cleanup logging 2019-11-09 23:28:07 -05:00
server-fn.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
server.c nits 2019-11-10 15:52:31 -05:00
session.c Cleanup warnings 2019-11-08 23:54:36 -05:00
signal.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
status.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
style.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
SYNCING SYNCING: Few tweaks 2015-06-04 10:35:40 +01:00
tmate-auth-keys.c Cleanup logging 2019-11-09 23:28:07 -05:00
tmate-daemon-decoder.c Add '-A' option to enforce use of authorized_keys (#93) 2023-06-02 10:18:46 -04:00
tmate-daemon-encoder.c Cleanup logging 2019-11-09 23:28:07 -05:00
tmate-daemon-legacy.c Add UTF8 support for legacy daemons 2015-12-31 23:42:46 -05:00
tmate-debug.c Unify tmate-debug.c with tmate 2019-11-10 15:52:31 -05:00
tmate-main.c Add '-A' option to enforce use of authorized_keys (#93) 2023-06-02 10:18:46 -04:00
tmate-msgpack.c Limit incoming message size 2021-10-17 17:07:04 -04:00
tmate-protocol.h Log uname 2019-11-10 15:52:31 -05:00
tmate-rand.c Refactor code 2019-11-07 08:01:49 -05:00
tmate-slave Rename: tmate-slave -> tmate-ssh-server 2019-04-10 08:59:45 -04:00
tmate-ssh-client-pty.c Forgot the letter i in the valid_digits 2019-11-17 18:44:59 -05:00
tmate-ssh-daemon.c Rename account-key -> api-key 2019-11-10 22:28:08 -05:00
tmate-ssh-exec.c Cleanup logging 2019-11-09 23:28:07 -05:00
tmate-ssh-latency.c Remove latency measurements 2019-10-09 18:59:38 -04:00
tmate-ssh-server.c fix error message 2021-10-17 17:06:04 -04:00
tmate-websocket.c Cleanup logging 2019-11-09 23:28:07 -05:00
tmate.1 Slave implementation draft 2013-06-10 01:54:29 -04:00
tmate.h Add '-A' option to enforce use of authorized_keys (#93) 2023-06-02 10:18:46 -04:00
tmux.1 Merge branch 'obsd-master' 2016-03-18 08:01:18 +00:00
tmux.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
tmux.h Add '-A' option to enforce use of authorized_keys (#93) 2023-06-02 10:18:46 -04:00
TODO Add to TODO. 2016-03-20 08:14:14 +00:00
tty-acs.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
tty-keys.c Handle wcwidth() and mbtowc() failures in better style and drop 2016-03-02 15:36:02 +00:00
tty-term.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
tty.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
utf8.c +wchar.h 2016-03-02 18:19:13 +00:00
window-choose.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
window-clock.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
window-copy.c Rename TMATE_SLAVE -> TMATE 2019-11-08 23:54:36 -05:00
window-copy.h Merge remote-tracking branch 'tmux/master' 2016-03-27 02:20:38 -04:00
window.c Correct a typo in window.c (#91) 2021-08-16 11:16:22 -04:00
xmalloc.c Cleanup warnings 2019-11-08 23:54:36 -05:00
xmalloc.h xmalloc: define __bounded__ where necessary 2016-02-07 00:04:46 +00:00
xterm-keys.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00

tmate server side

tmate-ssh-server is the server side part of tmate.io.

Usage

See on tmate.io.

Docker image

A docker image is provided: tmate/tmate-ssh-server

The following environment variables are used to configure the server:

  • SSH_KEYS_PATH (mandatory): The path where the ssh keys are located.
  • HAS_WEBSOCKET: set to 1 if the tmate-websocket server exists (for HTML5 clients).
  • USE_PROXY_PROTOCOL: set to 1 if the ssh server is behind a load balancer that uses the proxy protocol enabled. This is useful to get client real IPs.
  • SSH_HOSTNAME: configures the SSH hostname to advertise to tmate hosts.
  • SSH_PORT_LISTEN: port on which the SSH server should listen on.
  • SSH_PORT_ADVERTISE: configures the SSH port to advertise to tmate hosts. Defaults to SSH_PORT_LISTEN.

Note that you need to add the SYS_ADMIN capability to the container. This is needed to create nested containers (namespaces) to secure sessions.

License

MIT license.