본문 바로가기

Windows

Windows11 OpenSSH default shell 설정

반응형

Openssh server를 설치하면 cmd가 기본으로 되어 있습니다.

이를 powershell로 변경하려면 다음과 같이 명령어를 파워쉘에서 입력하면 됩니다.

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force

 

CMD로 변경하려면 다음과 같이 실행하면 됩니다.

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\cmd.exe" -PropertyType String -Force

 

추가로 명령창이나 파워쉘에서 시스템 정보를 보고 싶으면 다음과 같이 입력하면 됩니다.

systeminfo

 

반응형

'Windows' 카테고리의 다른 글

강원전자 NM-LAD03 사용기  (0) 2023.09.13
windows11 wsl 관련  (0) 2023.08.24
Windows 11 창 끌기 시 표시되는 기능 방지  (0) 2023.04.12
Windows 11 taskbar 관련  (0) 2023.03.23
로컬 보안 기관 보호가 꺼져있습니다.  (0) 2023.03.21