๋ฌด์จ ์ผ์ด ์ผ์ด ๋ฌ์ต๋๊น?
cli์์ tsh login --proxy=<my_proxy>
๋ฅผ ์คํํ ๋ ๋ค์๊ณผ ๊ฐ์ ์ถ๋ ฅ์ด ํ์๋ฉ๋๋ค.
>tsh login --proxy=<my_proxy>
If browser window does not open automatically, open it by clicking on the link:
http://127.0.0.1:53817/<GUID>
error: rpc error: code = Unimplemented desc = unknown method GetKubeServices for service proto.AuthService
์์ ํ ์ผ :
๋๋ ์ด๊ฒ์ด ์ฑ๊ณต์ ์ผ๋ก ํ
๋ ํฌํธ์ ๋ก๊ทธ์ธ ํ ๊ฒ์ด๋ผ๊ณ ์์ํ์ต๋๋ค.
์ฌํ ๋ฐฉ๋ฒ (๊ฐ๋ฅํ ํ ์ต์ํ์ผ๋ก ์ ํํ๊ฒ) :
MacO์์-
>brew install teleport
>tsh version
Teleport v5.0.0 git: go1.15.5
>tsh login --proxy=<my_proxy>
teleport version
) : Teleport v5.0.0 git : go1.15.5tsh version
) : Teleport v5.0.0 git : go1.15.5OS (์ : /etc/os-release
) : macOS Catalina v 10.15.7
Teleport๋ฅผ ์ด๋์์ ์คํํ๊ณ ์์ต๋๊น? (์ : AWS, GCP, ์ ์ฉ ํ๋์จ์ด) : ์๋ฒ ์ธก v4
ํด๋น๋๋ ๊ฒฝ์ฐ ๊ด๋ จ ๋๋ฒ๊ทธ ๋ก๊ทธ
tsh login --proxy=<my_proxy> --debug
INFO [CLIENT] Successful auth with proxy teleport.lacework.net:3023 client/api.go:1672
<redacted>
DEBU [AUTH] GRPC(CLIENT): keep alive 1m0s count: 3. auth/clt.go:320
DEBU [CLIENT] Client is connecting to auth server on cluster "teleport.lacework.net". client/client.go:473
ERROR REPORT:
Original Error: *status.statusError rpc error: code = Unimplemented desc = unknown method GetKubeServices for service proto.AuthService
Stack Trace:
/private/tmp/teleport-20201127-89185-jfx2dt/teleport-5.0.0/src/github.com/gravitational/teleport/lib/auth/clt.go:2978 github.com/gravitational/teleport/lib/auth.(*Client).GetKubeServices
/private/tmp/teleport-20201127-89185-jfx2dt/teleport-5.0.0/src/github.com/gravitational/teleport/lib/kube/utils/utils.go:155 github.com/gravitational/teleport/lib/kube/utils.KubeClusterNames
/private/tmp/teleport-20201127-89185-jfx2dt/teleport-5.0.0/src/github.com/gravitational/teleport/lib/kube/kubeconfig/kubeconfig.go:101 github.com/gravitational/teleport/lib/kube/kubeconfig.UpdateWithClient
/private/tmp/teleport-20201127-89185-jfx2dt/teleport-5.0.0/src/github.com/gravitational/teleport/tool/tsh/tsh.go:609 main.onLogin
/private/tmp/teleport-20201127-89185-jfx2dt/teleport-5.0.0/src/github.com/gravitational/teleport/tool/tsh/tsh.go:431 main.Run
/private/tmp/teleport-20201127-89185-jfx2dt/teleport-5.0.0/src/github.com/gravitational/teleport/tool/tsh/tsh.go:212 main.main
/usr/local/opt/go/libexec/src/runtime/proc.go:213 runtime.main
/usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1375 runtime.goexit
User Message:
ํ์ฌ homebrew๋ฅผ ํตํด ๋ฒ์ ์ ๋ค์ด ๊ทธ๋ ์ด๋ ํ ์์๋ ๊ฒ์ผ๋ก ๋ณด์ด๋ฏ๋ก ๋์์ ์ฃผ์๋ฉด ๋๋จํ ๊ฐ์ฌํ๊ฒ ์ต๋๋ค.
ํ์ฌ ์ฌ์ฉ์ค์ธ ํด๊ฒฐ ๋ฐฉ๋ฒ์ brew uninstall teleport
์ด๊ณ ์๋์ผ๋ก tsh v4.4.5๋ฅผ ์ค์นํ๋ ๊ฒ์
๋๋ค. https://get.gravitational.com/tsh-4.4.5.pkg
๋ฌธ์ ๋ ์ธ์ฆ ์๋ฒ v4์ ์ฌ์ฉ์ผ๋ก ์ธํ ๊ฒ ๊ฐ์ต๋๋ค. Slack Teleport v5 it's backwards compatible, but not forwards compatible ( old clients will work with new servers, but new clients may not work with old servers)
์ค๋ช
๋๋๋ก
์ฐ๋ฆฌ๋ Homebrew์ ํจํค์ง ๋ ๋ฒ์ ์ ์ ์ด ํ ์ ์์ต๋๋ค. ์์์น ๋ชปํ ์
๊ทธ๋ ์ด๋๋ก ์ธํด ๊ณ ์ฅ์ด ๋ฐ์ํ์ง ์๋๋กํ๋ ๊ฐ์ฅ ์์ ํ ๋ฐฉ๋ฒ์ https://goteleport.com/teleport/download ์์ ๊ณต์ ์๋ช
๋๊ณ ๊ณต์ฆ ๋ tsh
PKG์ ์ฌ๋ฐ๋ฅธ ๋ฒ์ ์ ์ค์นํ๋ ๊ฒ์
๋๋ค.
๊ทํ์ ๊ทํ์ ํ @webvictim์ ์๋ต์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ๊ฒฐ์์์ ์ ๋งํฌ์์ ํ ๋ ํฌํธ ํจํค์ง๋ฅผ ์ค์นํ๋ ๊ฒ์ ๋๋ค.
@rmoles / @webvictim ๋ด 2p๋ ์ต์ tsh
๋ฒ์ ์ด ์ด์ ๋ฒ์ ๊ณผ ํธํ๋์ง ์๋ ๊ฒฝ์ฐ ์ฌ์ฉ์์๊ฒ ์ค์๋ฅผ ์๋ฆฌ ๋๋ก ์ค๋ฅ ๋ฉ์์ง๋ฅผ ๊ฐ์ ํด์ผํ๋ค๋ ๊ฒ์
๋๋ค (ํด๋ผ์ด์ธํธ ๋ฒ์ ์ด ์๊ฒฉ ๋ฒ์ ๋ณด๋ค ์ต์ ๋ฒ์ ์). ์ฐ๊ฒฐํ๋ ค๋ ์๊ฒฉ ์๋ ํฌ์ธํธ๊ฐ ํ
๋ ํฌํธ 4.4์ด์ง๋ง ๊ณต์ ๋ค์ด๋ก๋ ํ์ด์ง์์ ์ต์ tsh ํจํค์ง๋ฅผ ๊ฐ์ ธ ์๊ธฐ ๋๋ฌธ์ ์จ ๋ณด๋ฉ ์ด์์๊ฐ์ด ์ค๋ฅ๋ฅผ ๋ฐ์์ํค๋ ๊ฒ์ ๋ณด์์ต๋๋ค.
authVersion์ ๊ฐ์ ธ ์ค๋ ๊ฒ์ด ์ธ์ฆ ๋ API ์์ฒญ์ธ์ง ์๋๋ฉด ์ธ์ฆ๋์ง ์์ API ์์ฒญ์ธ์ง๋ ๋ชจ๋ฅด๊ฒ ์ง๋ง ์ด์์ ์ธ ์๋ฃจ์
์ tsh
๊ฐ ์๊ฒฉ ๋ฒ์ ์ ์์ฒด ๋ฒ์ ์ ๋ํด ํ์ธํ๊ณ ์ฌ์ฉ์์๊ฒ ์์ ์ ๋ฒ์ ์ด ๋ค์๋ณด๋ค ์ต์ ๋ฒ์ ์์ ๊ฒฝ๊ณ ํ ์์๋ ๊ฒฝ์ฐ์
๋๋ค. ์๊ฒฉ.
MacOs์ MacOS .pkg ์ค์น ํ๋ก๊ทธ๋จ์ ์ค์นํ๋ ๊ฒ์ด ๋ค์ ์ค๋ฅ์ ํจ๊ป ์ฐจ๋จ๋ฉ๋๋ค. โteleport-4.4.5.pkgโ cannot be opened because it is from an unidentified developer.
์ค์น ๋จ๊ณ๋ ์ฌ๊ธฐ์์ ์ฐพ์ ์ ์์ต๋๋ค : https://support.apple.com/en-gb/guide/mac-help/mh40616/mac
@rmoles teleport-4.4.5.pkg
์ tsh-4.4.5.pkg
์ ์ค์ ๋ก ๋ค๋ฅธ ๊ฒ์
๋๋ค.
Teleport ๋ฐ์ด๋๋ฆฌ๊ฐ ๋น๋๋๋ ๋ฐฉ์์ด ํ์ฌ MacOS์ ์๋ช
์๊ตฌ ์ฌํญ๊ณผ ํธํ๋์ง ์๊ธฐ ๋๋ฌธ์ teleport-*.pkg
ํ์ผ์ ์๋ช
๋์ง ์์์ต๋๋ค. ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ๊ณต๊ฐ ๋ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. # 3158
tsh-*.pkg
ํ์ผ์ ๊ณต์ ๊ฐ๋ฐ์ ์ธ์ฆ์๋ก ์๋ช
๋๊ณ Apple์ ๊ณต์ฆ์ ๋ฐ์์ผ๋ฏ๋ก ๋ฌธ์ ์์ด ์ค์น๋ฉ๋๋ค.
@dnwe ๋์ํฉ๋๋ค. ์ค์ ๋ก ์ธ์ฆ๋์ง ์์ API ํธ์ถ์ ํตํด ์ต์ ํด๋ผ์ด์ธํธ ๋ฒ์ ์ ์ด๋ฏธ ๊ณต๊ฐํ์ต๋๋ค.
$ curl -s https://teleport.example.com:3080/v1/webapi/ping | jq
{
"auth": {
"type": "github",
"second_factor": "u2f",
"github": {
"name": "github",
"display": "Github"
}
},
"proxy": {
"kube": {},
"ssh": {
"listen_addr": "0.0.0.0:3023",
"tunnel_listen_addr": "0.0.0.0:3080",
"public_addr": "teleport.example.com:3080",
"ssh_public_addr": "teleport.example.com:3023",
"ssh_tunnel_public_addr": "teleport.example.com:3080"
}
},
"server_version": "5.0.0",
"min_client_version": "3.0.0"
}
tsh
์ฌ์ฉ์์๊ฒ ๋ฒ์ ์ด ์๋ํ์ง ์๋๋ค๊ณ ๊ฒฝ๊ณ ํ๋ ๋
ผ๋ฆฌ๊ฐ ํธ๋ฆฌ๊ฑฐ๋์ง ์๋ ์ด์ ๋ฅผ ์ดํด ๋ณด๊ฒ ์ต๋๋ค.
tsh
ํ์ํ ๊ฐ์ ์ฌํญ์ ์ถ์ ํ๊ธฐ ์ํด ๋ฌธ์ ๋ฅผ ๋ค์ ์ฝ๋ ๋ค.
๊ทธ๋์์ด ๋ฌธ์ ๊ฐ ๋ฐ์ํ ๋ค๋ฅธ ์ฌ๋์์ํ ํด๊ฒฐ ๋ฐฉ๋ฒ์ tsh
๋ฒ์ ์ 5.xx์์ 4.4.x๋ก ๋ค์ด ๊ทธ๋ ์ด๋ํ๋ ๊ฒ์
๋๋ค.
@dnwe ๋์ํฉ๋๋ค. ์ค์ ๋ก ์ธ์ฆ๋์ง ์์ API ํธ์ถ์ ํตํด ์ต์ ํด๋ผ์ด์ธํธ ๋ฒ์ ์ ์ด๋ฏธ ๊ณต๊ฐํ์ต๋๋ค.
...
tsh
์ฌ์ฉ์์๊ฒ ๋ฒ์ ์ด ์๋ํ์ง ์๋๋ค๊ณ ๊ฒฝ๊ณ ํ๋ ๋ ผ๋ฆฌ๊ฐ ํธ๋ฆฌ๊ฑฐ๋์ง ์๋ ์ด์ ๋ฅผ ์ดํด ๋ณด๊ฒ ์ต๋๋ค.
์ด ๊ฒฝ์ฐ tsh 5.x๋ฅผ ํ ๋ ํฌํธ 4.x ์๋ฒ์ ๋ํด ์ฌ์ฉํ ์ ์์์ ์ฌ์ฉ์์๊ฒ ๊ฒฝ๊ณ ํ๊ธฐ ์ํด ํ์ํ max_client_version์ ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
tsh
ํ์ํ ๊ฐ์ ์ฌํญ์ ์ถ์ ํ๊ธฐ ์ํด ๋ฌธ์ ๋ฅผ ๋ค์ ์ฝ๋ ๋ค.๊ทธ๋์์ด ๋ฌธ์ ๊ฐ ๋ฐ์ํ ๋ค๋ฅธ ์ฌ๋์์ํ ํด๊ฒฐ ๋ฐฉ๋ฒ์
tsh
๋ฒ์ ์ 5.xx์์ 4.4.x๋ก ๋ค์ด ๊ทธ๋ ์ด๋ํ๋ ๊ฒ์ ๋๋ค.