Infograb logo
Teleport 제거

이 가이드는 바이너리, 구성 및 데이터를 포함하여 Teleport를 완전히 제거하는 방법을 설명합니다.

전제 조건

  • Teleport가 설치된 시스템.
Warning

이 지침은 비컨테이너화된 Teleport 설치에만 적용됩니다.

Kubernetes에서 Teleport를 실행 중인 경우 Helm 차트 릴리스를 대신 제거해야 합니다:

예: 'teleport' 네임스페이스에서 'teleport-kube-agent'라는 이름의 Helm 릴리스를 제거합니다.

helm uninstall --namespace teleport teleport-kube-agent

Docker에서 Teleport를 실행 중인 경우 Teleport Docker 컨테이너를 중지해야 합니다:

예: 'teleport'라는 이름의 Docker 컨테이너를 중지합니다.

docker stop teleport

1/3단계. 실행 중인 Teleport 프로세스 중지

systemd 에 Teleport 프로세스를 중지하도록 지시하고 자동 시작을 비활성화합니다:

sudo systemctl stop teleport
sudo systemctl disable teleport

이러한 systemd 명령이 작동하지 않으면 실행 중인 모든 Teleport 프로세스를 "종료"할 수 있습니다:

sudo killall teleport

launchd 에 Teleport 프로세스를 중지하도록 지시하고 자동 시작을 비활성화합니다:

sudo launchctl unload -w /Library/LaunchDaemons/com.goteleport.teleport.plist
sudo rm -f /Library/LaunchDaemons/com.goteleport.teleport.plist

이러한 명령이 작동하지 않으면 실행 중인 모든 Teleport 프로세스를 "종료"할 수 있습니다:

sudo killall teleport

현재 Windows 기계에서 장기 실행되고 있는 Teleport 프로세스는 없습니다.

2/3단계. Teleport 바이너리 제거

운영 체제에 따라 Teleport 바이너리를 제거하는 단계를 따르십시오.

Linux

Linux 배포판에 대한 지침을 따르십시오:

APT를 사용하여 Teleport 바이너리를 제거합니다:

sudo apt-get -y remove teleport-ent

Teleport Community Edition의 경우, 다음 명령을 사용하십시오:

sudo apt-get -y remove teleport

Teleport APT 저장소를 제거합니다:

sudo rm -f /etc/apt/sources.list.d/teleport.list
독립형 DEB 패키지 제거

위 명령이 작동하지 않으면 독립형 DEB 패키지를 사용하여 Teleport를 설치했을 수 있습니다. 다음으로 제거하십시오:

Teleport Community Edition의 경우 "teleport" 대신 "teleport-ent"를 사용하세요.

sudo dpkg -r teleport-ent

YUM을 사용하여 Teleport 바이너리를 제거합니다:

Teleport Community Edition의 경우 패키지 이름을 "teleport"로 변경하십시오.

sudo yum -y remove teleport-ent

선택 사항: 최신 배포판에서는 DNF를 사용하십시오.

$ sudo dnf -y remove teleport-ent

Teleport YUM 저장소를 제거합니다:

sudo rm -f /etc/yum.repos.d/teleport.repo
독립형 RPM 패키지 제거

위 명령이 작동하지 않으면 독립형 RPM 패키지를 사용하여 Teleport를 설치했을 수 있습니다. 다음으로 제거하십시오:

Teleport Community Edition의 경우 "teleport"를 사용하십시오.

sudo rpm -e teleport-ent

기계에서 Teleport 바이너리를 제거합니다:

sudo rm -f /usr/local/bin/tbot
sudo rm -f /usr/local/bin/tctl
sudo rm -f /usr/local/bin/teleport
sudo rm -f /usr/local/bin/tsh
sudo rm -f /usr/local/bin/fdpass-teleport

macOS

Notice

Teleport 바이너리에 대한 기본 경로입니다. 시스템에서 기본값을 변경한 경우, 해당 경로로 대체하십시오. dirname $(which teleport)를 사용하여 자동으로 확인할 수 있습니다.

기계에서 Teleport 바이너리를 제거합니다:

sudo rm -f /usr/local/bin/tbot
sudo rm -f /usr/local/bin/tctl
sudo rm -f /usr/local/bin/teleport
sudo rm -f /usr/local/bin/tsh
sudo rm -f /usr/local/bin/fdpass-teleport
macOS 클라이언트 도구 제거

macOS tsh 클라이언트 전용 패키지 및/또는 macOS용 Teleport Connect를 설치한 경우, 다음도 선택적으로 제거할 수 있습니다:

sudo rm -rf /Applications/tsh.app
sudo rm -rf /Applications/Teleport\ Connect.app

Windows

기계에서 tsh.exetctl.exe 바이너리를 제거합니다:

del C:\Path\To\tsh.exe
del C:\Path\To\tctl.exe

Teleport Connect는 제어판의 "앱 및 기능" 섹션에서 제거할 수 있습니다.

참고로, Teleport Connect 바이너리는 %LOCALAPPDATA%\Programs\teleport-connect 에 설치됩니다.

Teleport의 Windows auth 패키지를 사용하여 로컬 사용자에게 비밀번호 없이 로그인할 수 있도록 제공하는 경우, 관리 권한이 있는 명령 프롬프트에서 설치 프로그램을 실행하여 제거할 수 있습니다:

> teleport-windows-auth-setup.exe uninstall

패키지를 완전히 제거하기 위해서는 uninstall이 완료된 후 재부팅이 필요합니다.

3/3단계. Teleport 데이터 및 구성 파일 제거

Notice

Teleport 구성 파일 및 데이터 디렉토리의 기본 경로입니다.
시스템에서 기본값을 변경한 경우, 해당 경로로 대체하십시오.

Teleport 구성 파일을 제거합니다:

sudo rm -f /etc/teleport.yaml

선택 사항: 사용한 경우, 머신 ID 구성 파일도 제거합니다

$ sudo rm -f /etc/tbot.yaml

Teleport 데이터 디렉토리를 제거합니다:

sudo rm -rf /var/lib/teleport

선택적으로, tsh 에 대한 전역 구성 파일 및 로컬 사용자 데이터 디렉토리를 제거합니다:

sudo rm -f /etc/tsh.yaml
rm -rf ~/.tsh
Notice

Teleport 구성 파일 및 데이터 디렉토리의 기본 경로입니다.
시스템에서 기본값을 변경한 경우, 해당 경로로 대체하십시오.

Teleport 구성 파일을 제거합니다:

sudo rm -f /etc/teleport.yaml

선택 사항: 사용한 경우, 머신 ID 구성 파일도 제거합니다

$ sudo rm -f /etc/tbot.yaml

Teleport 데이터 디렉토리를 제거합니다:

sudo rm -rf /var/lib/teleport

선택적으로, 다음을 제거합니다:

  • tsh 에 대한 전역 구성 파일 및 로컬 사용자 데이터 디렉토리
  • Teleport Connect에 대한 로컬 사용자 데이터 디렉토리

tsh

sudo rm -f /etc/tsh.yaml
rm -rf ~/.tsh

Teleport Connect

rm -rf ~/Library/Application\ Support/Teleport\ Connect

tsh 의 로컬 사용자 데이터 디렉토리를 제거합니다:

rmdir /s /q %USERPROFILE%\.tsh

선택적으로, Teleport Connect의 로컬 사용자 데이터 디렉토리도 제거합니다:

rmdir /s /q "%APPDATA%\Teleport Connect"

이제 Teleport가 시스템에서 제거되었습니다.

모든 Teleport 서비스는 마지막 하트비트가 시간 초과된 후 Teleport 웹 UI 또는 tsh ls 의 출력에서 사라질 것입니다. 이는 보통 Teleport 프로세스가 중지된 후 10-15분 이내에 발생합니다.

Teleport 원문 보기