이 페이지에서는 관리형 사용자 계정에 대해 Cloud Shell을 사용 중지하는 방법과 Cloud Shell을 재설정하는 방법을 설명합니다.
관리형 사용자 계정에 Cloud Shell 중지
Google Workspace 및 Cloud ID 관리형 사용자 계정에 Cloud Shell을 사용 중지하려면 Google 관리 콘솔로 이동한 다음 앱 > 추가 Google 서비스 > Google Cloud Platform > Cloud Shell 설정Cloud Shell 액세스 설정을 사용 중지합니다.
특정 사용자에 대해 Cloud Shell을 사용 중지하려면 액세스 그룹을 사용해야 하는데, 개별 사용자를 그룹에 추가하고 그룹의 Cloud Shell 액세스 설정을 사용 중지해야 합니다. 자세한 내용은 조직 가이드에서 Google Cloud 사용자 제어를 참고하세요.
Cloud Shell 재설정
Cloud Shell을 재설정하고 Cloud Shell 홈 디렉터리를 초기 상태로 되돌리려면 다음 단계를 따르세요.
Cloud Shell 홈 디렉터리를 초기 상태로 되돌리는 방법은 다음과 같습니다.
홈 디렉터리에 있는 개인 파일을 확인하고 다음 단계에서는 이러한 파일을 삭제합니다.
ls -a $HOME
홈 디렉토리에서 파일을 모두 삭제합니다.
sudo rm -rf $HOME
Cloud Shell 메뉴에서 more_vert더보기를 클릭한 다음 power_settings_new다시 시작을 클릭합니다.
메시지가 표시되면 확인 대화상자에서 다시 시작을 클릭합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-21(UTC)"],[],[],null,["# Disable or reset Cloud Shell\n\nThis page describes how to disable Cloud Shell for managed user accounts\nand how to reset Cloud Shell.\n\nDisable Cloud Shell for managed user accounts\n---------------------------------------------\n\nTo disable Cloud Shell for\n[Google Workspace](https://support.google.com/a/answer/4352075) and\n[Cloud Identity](https://support.google.com/a/answer/7319251)\nmanaged user accounts, go to the\nGoogle Admin console and then navigate to\n**Apps** \\\u003e **Additional Google services** \\\u003e **Google Cloud Platform** \\\u003e\n**Cloud Shell Settings**\nand disable **Cloud Shell Access Settings**.\n\nTo disable Cloud Shell for specific users, you'll need to use access\ngroups: add individual users to the group and turn off the group's\nCloud Shell access setting. For more information, see\n[Controlling who uses Google Cloud in your organization guide](https://support.google.com/a/answer/9197205).\n\nReset Cloud Shell\n-----------------\n\nTo reset Cloud Shell and restore your Cloud Shell home\ndirectory to a clean state, follow these steps.\n| **Note:** Before resetting your Cloud Shell home directory, consider using [Safe mode](/shell/docs/how-cloud-shell-works#safe_mode) to sign in as root and fix issues with your files.\n\nTo restore your Cloud Shell home directory to a clean state:\n\n1. Check for personal files in the home directory and note that the next step\n deletes these files:\n\n ```sh\n ls -a $HOME\n ```\n2. Remove all files from your home directory:\n\n **Important:** This will permanently delete all files in your home directory. \n\n ```sh\n sudo rm -rf $HOME\n ```\n3. In the Cloud Shell menu, click\n more_vert **More** and then click\n power_settings_new **Restart** .\n If prompted, click **Restart** in the confirmation dialog.\n\n This provisions a new VM and restores the home directory to its default state."]]