Been trying to set up ssh ingress into my network - I eventually want GitLab to trigger builds on my backend...
Traefik 2.2 is showing that I have a new TCP router and service listening on Port 10022. Status is green.
I then want to setup a file based config to forward the incoming session to SSH on my host. This failed with a KEX error:
>ssh -v steve@ssh.grooms.page -p 10022
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/steve/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to ssh.grooms.page port 10022.
debug1: Connection established.
debug1: identity file /Users/steve/.ssh/id_rsa type 0
debug1: identity file /Users/steve/.ssh/id_rsa-cert type -1
debug1: identity file /Users/steve/.ssh/id_dsa type -1
debug1: identity file /Users/steve/.ssh/id_dsa-cert type -1
debug1: identity file /Users/steve/.ssh/id_ecdsa type -1
debug1: identity file /Users/steve/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/steve/.ssh/id_ed25519 type -1
debug1: identity file /Users/steve/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/steve/.ssh/id_xmss type -1
debug1: identity file /Users/steve/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: kex_exchange_identification: banner line 0: HTTP/1.1 400 Bad Request
debug1: kex_exchange_identification: banner line 1: Content-Type: text/plain; charset=utf-8
debug1: kex_exchange_identification: banner line 2: Connection: close
debug1: kex_exchange_identification: banner line 3:
kex_exchange_identification: Connection closed by remote host
At the same time I see an error in the Traefik log:
traefik | time="2020-04-09T12:09:49+02:00" level=error msg="Error occurred during watcher callback: /conf/ssh.yml: yaml: line 8: mapping values are not allowed in this context" providerName=file
traefik | time="2020-04-09T12:09:49+02:00" level=error msg="Error occurred during watcher callback: /conf/ssh.yml: yaml: line 8: mapping values are not allowed in this context" providerName=file
This error is produced in pairs every time I save my ssh.yaml file