Anderson Sasaki
97d20249be
Explicitly parse config to avoid options override ( #74 )
...
Since libssh 0.9.0 the global server configuration file is automatically
parsed when new connections are accepted, unless
ssh_bind_options_parse_config() is explicitly called or the automatic
parsing is disabled by setting the SSH_BIND_OPTIONS_PROCESS_CONFIG
option with false.
This adds an explicit call to ssh_bind_options_parse_config() before
setting the options to avoid them to be overridden.
Fixes #72
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2020-04-27 19:54:26 -04:00
Klemens Nanni
f0c32a14a4
Include missing <signal.h>
...
At least on OpenBSD, signal(3) requires this.
2020-04-14 18:13:49 -04:00
Klemens Nanni
54ea774265
Fix libssh set_options_set() usage
...
SSH_OPTIONS_TIMEOUT requires a long value as per upstream documentation.
Pointing to an integer instead causes it to crash with SIBGUS on
OpenBSD/sparc64.
2020-04-14 18:13:35 -04:00
Nicolas Viennot
cb4c7a874d
Quotes can be a bad idea (utf8 quotes)
2020-04-14 18:07:21 -04:00
Nicolas Viennot
43214648f2
Forgot the letter i in the valid_digits
2019-11-17 18:44:59 -05:00
Nicolas Viennot
e1a5e08471
Rename account-key -> api-key
2019-11-10 22:28:08 -05:00
Nicolas Viennot
ecc15f6022
Unify tmate-debug.c with tmate
2019-11-10 15:52:31 -05:00
Nicolas Viennot
f132989294
nits
2019-11-10 15:52:31 -05:00
Nicolas Viennot
90c3b571d3
Log uname
2019-11-10 15:52:31 -05:00
Nicolas Viennot
1d26957b3b
Incoming messages should be dispatched first before being forwarded
...
It's a cheap sanity check
2019-11-09 23:28:07 -05:00
Nicolas Viennot
b97f8dc7d6
Cleanup logging
2019-11-09 23:28:07 -05:00
Nicolas Viennot
7f26d860b5
Cleanup warnings
2019-11-08 23:54:36 -05:00
Nicolas Viennot
975f60d2ac
Rename TMATE_SLAVE -> TMATE
2019-11-08 23:54:36 -05:00
Nicolas Viennot
4b79571357
Display warnings when trying to use named sessions without the websocket server
2019-11-08 23:54:36 -05:00
Nicolas Viennot
6c41248dad
Be more persmissive for session tokens (useful for named sessions)
2019-11-08 23:54:36 -05:00
Nicolas Viennot
7c1bc239af
Shorten connection grace period to 20s
2019-11-07 13:18:25 -05:00
Nicolas Viennot
e71bd675b5
Allow tmate daemon to specify a list of authorized SSH keys
2019-11-07 13:18:25 -05:00
Nicolas Viennot
48884c95c9
Take out the -a authorized_keys option
2019-11-07 08:03:38 -05:00
Nicolas Viennot
cd3ee3ee4d
Refactor code
2019-11-07 08:01:49 -05:00
Nicolas Viennot
6a951aa9f7
Improve debugging traces
2019-11-06 16:45:18 -05:00
Nicolas Viennot
975ba3323b
Fix bug of SIG unset if the keys already exists
...
Fixes #66
2019-10-31 20:45:19 -04:00
Nicolas Viennot
566a8bc412
Show better explaination of invalid session tokens
2019-10-22 05:22:58 -04:00
Nicolas Viennot
dc05cbc4f5
Allow non authentication method for SSH
2019-10-15 03:36:15 -04:00
Nicolas Viennot
48b5c6afba
readme notes
2019-10-14 23:21:11 -04:00
Nicolas Viennot
383b69f04c
Take out some annoying letters to speak over the phone
...
Session key entropy goes from 149 to 144 bits. It's acceptable
Fixes #31
2019-10-13 05:23:45 -04:00
Nicolas Viennot
fde93450dc
Add readme for the docker image
2019-10-13 05:01:11 -04:00
Nicolas Viennot
eb08daec79
README is todo
2019-10-13 02:54:29 -04:00
Nicolas Viennot
314bf91299
Remove latency measurements
2019-10-09 18:59:38 -04:00
Nicolas Viennot
9c3cc0e264
Renable keepalive now that libssh allows it
2019-10-09 18:47:01 -04:00
Nicolas Viennot
5c2c1c2584
logging improvement
2019-10-09 17:36:23 -04:00
Nicolas Viennot
2bd232c982
Avoid disconnection warning if fin packet is received
2019-10-05 04:11:32 -04:00
Nicolas Viennot
9df2e6d6fb
nits
2019-09-18 23:03:55 -04:00
Nicolas Viennot
6c5497df4b
Only load keys that are accessible
2019-08-31 23:42:21 -04:00
Nicolas Viennot
07dc84de98
avoid logging early failures
2019-08-31 22:09:19 -04:00
Nicolas Viennot
7f9378de43
Allow to advertize a specific SSH port (for load balancer)
2019-08-31 18:52:35 -04:00
Nicolas Viennot
080be74a75
Hide session token in ps and logs
2019-08-31 17:35:34 -04:00
Nicolas Viennot
ebbafd794f
Adjust verbose levels
2019-08-31 16:49:07 -04:00
Nicolas Viennot
6397e825bd
Dockerfile update
2019-08-25 04:41:38 -04:00
Nicolas Viennot
e568b91f04
Improved messages
2019-08-25 03:53:26 -04:00
Nicolas Viennot
4555d8d6fb
Add PROXY protocol support
2019-08-24 18:31:07 -04:00
Nicolas Viennot
07bea82ab2
Docker: libssh update to 0.9
2019-08-24 18:12:40 -04:00
Nicolas Viennot
6a271c5a89
ssh_bind_accept -> ssh_bind_accept_fd
2019-08-24 18:01:00 -04:00
Nicolas Viennot
004fe379f6
Rename proxy -> websocket
2019-08-24 15:13:04 -04:00
Nicolas Viennot
4b20aaf66e
SSH port is configurable in docker
2019-08-20 02:40:28 -04:00
Nicolas Viennot
ba964e279c
nits
2019-08-19 23:21:50 -04:00
Nicolas Viennot
b2dc743aa6
Allow hostname detection in docker
2019-08-11 00:54:56 -04:00
Nicolas Viennot
bd65eb3c48
cleanup dockerfile
2019-08-10 23:32:46 -04:00
Nicolas Viennot
46f821f88c
Docker image use environement variables to get their settings
2019-08-10 21:37:51 -04:00
Nicolas Viennot
55d481a633
Dockerfile.dev
2019-08-04 12:30:21 -04:00
Nicolas Viennot
8fc519a625
Version bump
2.3.0
2019-08-01 09:40:56 -04:00