kt-connect icon indicating copy to clipboard operation
kt-connect copied to clipboard

ktctl mesh 报错:ERR Failed to setup reverse tunnel error="ssh: handshake failed: EOF"

Open Deabeary opened this issue 2 years ago • 2 comments

[root@kube-kit ~]# ktctl mesh loan2-txn-svc --expose 8080:8080 -n xd-devkit --debug 6:25PM DBG Background task log to /tmp/kt-347729534 6:25PM INF Using cluster context xd-devkit (k8s-cluster) 6:25PM INF KtConnect dev start at 6048 (linux amd64) 6:25PM DBG Rectify pod kt-rectifier-wstrd created 6:25PM INF Fetching cluster time ... 6:25PM DBG Execute command [date +%s] in kt-rectifier-wstrd:standalone 6:25PM DBG No time difference 6:25PM DBG Service target ports: [8277 8080] 6:25PM INF Using auto mode 6:25PM INF Service loan2-txn-svc locked 6:25PM INF Service loan2-txn-svc-kt-stuntman created 6:25PM INF Service loan2-txn-svc-kt-mesh-bkrcl created 6:25PM INF Router pod loan2-txn-svc-kt-router created 6:25PM INF Waiting for pod loan2-txn-svc-kt-router ... 6:25PM INF Pod loan2-txn-svc-kt-router is ready 6:25PM INF Router pod is ready 6:25PM DBG Execute command [/usr/sbin/router setup loan2-txn-svc 8277:8277,8080:8080 version:bkrcl] in loan2-txn-svc-kt-router:standalone 6:25PM DBG Stdout: 6:25PM DBG Stderr: 10:25AM INF Route setup completed. 6:25PM INF Router pod configuration done 6:25PM DBG Private Key generated 6:25PM DBG Public key generated 6:25PM INF Successful create config map loan2-txn-svc-kt-mesh-bkrcl 6:25PM INF Deploying shadow pod loan2-txn-svc-kt-mesh-bkrcl in namespace xd-devkit 6:25PM INF Waiting for pod loan2-txn-svc-kt-mesh-bkrcl ... 6:25PM INF Pod loan2-txn-svc-kt-mesh-bkrcl is ready 6:25PM INF Forwarding pod loan2-txn-svc-kt-mesh-bkrcl to local via port 8080:8080 6:25PM DBG Using port 39186 6:25PM DBG Request port forward pod:22 -> local:39186 via https://10.157.25.243:6443 6:25PM INF Port forward local:39186 -> pod loan2-txn-svc-kt-mesh-bkrcl:22 established 6:25PM DBG Forwarding 127.0.0.1:39186 to local endpoint 0.0.0.0:8080 via 127.0.0.1:8080 6:25PM DBG Failed to create ssh tunnel error="ssh: handshake failed: EOF" 6:25PM ERR Failed to setup reverse tunnel error="ssh: handshake failed: EOF" 6:25PM INF Service loan2-txn-svc unlocked 6:25PM ERR Exit: ssh: handshake failed: EOF 6:25PM DBG Cleaning workspace 6:25PM DBG Service loan2-txn-svc modified 6:25PM INF Removed pid file /root/.kt/pid/mesh-6048.pid 6:25PM INF Removed key file /root/.kt/key/loan2-txn-svc-kt-mesh-bkrcl.key 6:25PM DBG Received event "/root/.kt/pid/mesh-6048.pid": REMOVE 6:25PM INF Pid file was removed 6:25PM INF Pod loan2-txn-svc-kt-router has only one ref, gonna remove 6:25PM DBG Service loan2-txn-svc modified 6:25PM INF Original service loan2-txn-svc recovered 6:25PM INF Stuntman service loan2-txn-svc-kt-stuntman removed 6:25PM INF Cleaning service loan2-txn-svc-kt-mesh-bkrcl 6:25PM WRN Router pod is terminating 6:25PM INF Cleaning configmap loan2-txn-svc-kt-mesh-bkrcl 6:25PM INF Cleaning shadow pod loan2-txn-svc-kt-mesh-bkrcl

ktctl mesh 一直无法使用,报错说是设置反向隧道失败,大神们求帮忙看看具体原因是啥呢?

Deabeary avatar Aug 05 '22 10:08 Deabeary

+1

wang-mask avatar May 07 '23 09:05 wang-mask

+1

ls-2018 avatar Feb 18 '24 07:02 ls-2018