Enroll New Resource

Teleport 관리 페이지에서 Resources → Enroll New Resource클릭

image.png

ubuntu를 찾는다.

image.png

아래와 같은 설치 command를 복사해서 연동할 우분투 서버에 붙여넣는다.

image.png

이후 자동으로 설치 및 systemd에 등록되어 재부팅을 하더라도 teleport 프로세스가 실행된다.

image.png

Teleport Resource 관리 페이지에 추가된다. 미리 등록해놓았던 우분투 기준 user를 통해 web에서 ssh로 접속 가능하다.

image.png

tsh로 ssh 연결

위에서 등록한 user, hostname으로 tsh를 통해 ssh 연결할 수 있다.

tsh ssh <user>@<host name>