tmate-io / tmate

Instant Terminal Sharing
https://tmate.io/
Other
5.55k stars 298 forks source link

Can't connect to custom tmate server, help? #258

Open ELECTROHAXZ opened 2 years ago

ELECTROHAXZ commented 2 years ago

I've created a custom tmate server (tried both compiling my own and docker image) and added the following to the client ~/.tmate.conf file as per everywhere I've found online instructed to do.

set -g tmate-server-port 2222 set -g tmate-server-host ssh.myvaliddomain.com set -g tmate-server-rsa-fingerprint SHA256: set -g tmate-server-ed25519-fingerprint SHA256:

The issue is when running tmate (both 2.4 from website and latest in apt) I get /home/username/.tmate.conf:1: value is invalid: 2222 and then spam every 2 seconds of ssh.myvaliddomain.com lookup failure. Retrying in 2 seconds (nodename nor servname provided, or not known)

My domain is able to be resolved just fine on the server as confirmed by both our DNS server and dig. I've also tried another domain to no avail. Issue happens on both docker and compiled servers on ports 2222 and 2223 (didn't test others but presumably all have issue) yet I find no issue with my configuration on either end. The server reports no connections and just says it loaded keys and is accepting connections on the set port. Any help would be greatly appreciated.

Juliandev02 commented 2 years ago

Try compiling it yourself, and then run it like this: sudo ./tmate-ssh-server -p 2222. You need the following packages: sudo apt-get install autotools-dev automake libevent-dev libmsgpack-dev.

ELECTROHAXZ commented 2 years ago

Try compiling it yourself, and then run it like this: sudo ./tmate-ssh-server -p 2222. You need the following packages: sudo apt-get install autotools-dev automake libevent-dev libmsgpack-dev.

I already tried this too as I mentioned in my post, same exact result. I believe this is a client issue as the server never shows any connection and the client shows the errors about the port and domain.