yen@yens-MacBook-Pro:~$ curl -k https://localhost:8837
DEBU [CLIENT] Attempting to connect proxy from 127.0.0.1:56376 to underpass:8837. client/client.go:861
WARN [CLIENT] Failed to proxy connection: read tcp 127.0.0.1:8837->127.0.0.1:56376: use of closed network connection. client/client.go:922
DEBU [CLIENT] Finished proxy from 127.0.0.1:56376 to underpass:8837. client/client.go:922
WARN [CLIENT] Failed to proxy connection: read tcp 127.0.0.1:8837->127.0.0.1:56376: use of closed network connection. client/client.go:943
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8837
Description
What happened: persistent ssh tunnels doesn't work
Port 8837 does got forwarded but can not curl. error with "SSL_ERROR_SYSCALL"
What you expected to happen: I can curl on my localhost after port forwarding
How to reproduce it (as minimally and precisely as possible):
Environment
teleport version
):tsh version
):/etc/os-release
):[ychuang@underpass ~]$ tsh version Teleport v4.2.11 git:v4.2.11-0-g244ec16b7 go1.13.2b4
[ychuang@underpassp~]$ cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
yen@yens-MacBook-Pro:~$ tsh -d ssh -NL 8837:underpass:8837 --proxy=pylonpar ychuang@underpass & [1] 3550
yen@yens-MacBook-Pro:~$ INFO [CLIENT] [KEY AGENT] Connected to the system agent: "/private/tmp/com.apple.launchd.L1Y1dRj4nA/Listeners" client/api.go:2049 DEBU [KEYSTORE] Returning SSH certificate "/Users/yen/.tsh/keys/172.28.231.55/yen@-cert.pub" valid until "2020-09-05 04:34:35 -0500 CDT", TLS certificate "/Users/yen/.tsh/keys/172.x.x.x.x/yen@-x509.pem" valid until "2020-09-05 09:34:35 +0000 UTC". client/keystore.go:262 INFO [KEYAGENT] Loading key for "yen@" client/keyagent.go:108 INFO [CLIENT] Connecting proxy=172.x.x.x.x:3023 login='ychuang' method=0 client/api.go:1588 DEBU [KEYAGENT] Validated host 172.x.x.x:3023. client/keyagent.go:280 INFO [CLIENT] Successful auth with proxy 172.x.x.x:3023 client/api.go:1579 DEBU [CLIENT] Found clusters: [{"name":"pylonpar","lastconnected":"2020-09-04T20:44:44.306806369-05:00","status":"online"}] client/client.go:106 INFO [CLIENT] Client= connecting to node=underpass on cluster pylonpar client/client.go:551 DEBU [KEYAGENT] Validated host underpass:0@default@pylonpar. client/keyagent.go:280 DEBU [CLIENT] Connected to node, no remote command execution was requested, blocking until context closes. client/api.go:970
yen@yens-MacBook-Pro:~$ lsof -PiTCP -sTCP:LISTEN tsh 3550 yen 9u IPv4 0x72a626046399b027 0t0 TCP localhost:8837 (LISTEN)
yen@yens-MacBook-Pro:~$ curl -k https://localhost:8837 DEBU [CLIENT] Attempting to connect proxy from 127.0.0.1:56376 to underpass:8837. client/client.go:861 WARN [CLIENT] Failed to proxy connection: read tcp 127.0.0.1:8837->127.0.0.1:56376: use of closed network connection. client/client.go:922 DEBU [CLIENT] Finished proxy from 127.0.0.1:56376 to underpass:8837. client/client.go:922 WARN [CLIENT] Failed to proxy connection: read tcp 127.0.0.1:8837->127.0.0.1:56376: use of closed network connection. client/client.go:943 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8837