Hi Grav,
Cleaning the teleport folder worked. Node “teleport.advarisk.com” got added to the cluster. But next problem is I can not tsh into node “teleport.advarisk.com” from my laptop. But tsh into “stage.advasmart.in” works properly.
I killed the teleport process on “teleport.advarisk.com” and started teleport node again. But it did not work.
On proxy -
root@stage:~# tctl nodes ls
Nodename UUID Address Labels
--------------------- ------------------------------------ ------------------ -----------
stage.advasmart.in 95c301cc-c001-4b0b-bdbc-a02b82c60d98 127.0.0.1:3022 env=staging
teleport.advarisk.com adcb4591-43e3-4285-8753-c49da422ec08 3.238.130.234:3022 env=staging
teleport.advarisk.com c45e3db3-2052-483a-b9b0-dd9340787fb0 3.238.130.234:3022 env=staging
Logs on Proxy/Auth -
INFO [AUTH] Node "teleport.advarisk.com" [c45e3db3-2052-483a-b9b0-dd9340787fb0] is trying to join with role: Node. auth/auth.go:1313
INFO [CA] Generating TLS certificate {0x40bc7f8 0xc000e1e010 1.3.9999.1.7=#131673746167652d74656c65706f72742d636c7573746572,CN=c45e3db3-2052-483a-b9b0-dd9340787fb0.stage-teleport-cluster,O=Node,POSTALCODE=null,STREET= 2030-12-22 13:33:21.942199634 +0000 UTC [teleport.advarisk.com c45e3db3-2052-483a-b9b0-dd9340787fb0]}. common_name:c45e3db3-2052-483a-b9b0-dd9340787fb0.stage-teleport-cluster dns_names:[teleport.advarisk.com c45e3db3-2052-483a-b9b0-dd9340787fb0] locality:[] not_after:2030-12-22 13:33:21.942199634 +0000 UTC org:[Node] org_unit:[] tlsca/ca.go:391
INFO [AUTH] Node "teleport.advarisk.com" [c45e3db3-2052-483a-b9b0-dd9340787fb0] has joined the cluster. auth/auth.go:1346
tail: /var/lib/teleport/teleport.log: file truncated
INFO [AUDIT] user.login code:T1000I ei:0 event:user.login method:local success:true time:2020-12-24T13:42:31.359Z uid:635bf355-19f0-4d31-a17e-e534c9f39ae4 user:suraj events/emitter.go:318
INFO [CA] Generating TLS certificate {0x40bc7f8 0xc00170df40 1.3.9999.1.7=#131673746167652d74656c65706f72742d636c7573746572,1.3.9999.1.1=#1305737572616a,CN=suraj,O=admin,POSTALCODE={\"kubernetes_groups\":null\,\"kubernetes_users\":[\"suraj\"]\,\"logins\":[\"suraj\"\,\"root\"\,\"ubuntu\"]},STREET=stage-teleport-cluster,L=suraj+L=root+L=ubuntu 2020-12-25 01:42:31.367215812 +0000 UTC []}. common_name:suraj dns_names:[] locality:[suraj root ubuntu] not_after:2020-12-25 01:42:31.367215812 +0000 UTC org:[admin] org_unit:[] tlsca/ca.go:391
INFO [SUBSYSTEM] Connected to auth server: 172.16.113.86:3025 trace.fields:map[dst:101.53.142.168:3023 src:49.248.168.170:29955] regular/proxy.go:268
INFO [SUBSYSTEM] Connected to auth server: 172.16.113.86:3025 trace.fields:map[dst:101.53.142.168:3023 src:49.248.168.170:22132] regular/proxy.go:268
WARN [PROXY] Subsystem request proxySubsys(cluster=default/stage-teleport-cluster, host=teleport.advarisk.com, port=0) failed: dialing through a tunnel: no tunnel connection found: no node reverse tunnel for c45e3db3-2052-483a-b9b0-dd9340787fb0.stage-teleport-cluster found, dialing directly: dial tcp 3.238.130.234:3022: i/o timeout. id:17 local:101.53.142.168:3023 login:suraj remote:49.248.168.170:4991 teleportUser:suraj regular/sshserver.go:1359
ERRO [NODE] dialing through a tunnel: no tunnel connection found: no node reverse tunnel for c45e3db3-2052-483a-b9b0-dd9340787fb0.stage-teleport-cluster found, dialing directly: dial tcp 3.238.130.234:3022: i/o timeout regular/sshserver.go:1539
My laptop -
suraj@suraj:~$ tsh login --proxy=stage.advasmart.in:3080 --auth=local --user=suraj
Enter password for Teleport user suraj:
Enter your OTP token:
538482
> Profile URL: https://stage.advasmart.in:3080
Logged in as: suraj
Cluster: stage-teleport-cluster
Roles: admin*
Logins: suraj, root, ubuntu
Kubernetes: disabled
Valid until: 2020-12-25 07:12:31 +0530 IST [valid for 12h0m0s]
Extensions: permit-agent-forwarding, permit-port-forwarding, permit-pty
* RBAC is only available in Teleport Enterprise
https://gravitational.com/teleport/docs/enterprise
suraj@suraj:~$
suraj@suraj:~$
suraj@suraj:~$ tsh ssh suraj@teleport.advarisk.com
error: failed connecting to node teleport.advarisk.com. dialing through a tunnel: no tunnel connection found: no node reverse tunnel for c45e3db3-2052-483a-b9b0-dd9340787fb0.stage-teleport-cluster found, dialing directly: dial tcp 3.238.130.234:3022: i/o timeout
suraj@suraj:~$ tsh ssh suraj@smart.advarisk
Any ideas?
Regards,
Suraj