개발자 전향 프로젝트
VSCode Remote Explorer 통해 SSH 접근 시 에러 디버깅
샘오리
2025. 6. 20. 09:52
728x90
반응형
Bad permissions. Try removing permissions for user:~~
[09:32:45.358] > Bad permissions. Try removing permissions for user: UNKNOWN\\UNKNOWN (~) on file C:/Users/user/.ssh/config.
[09:32:45.380] > Bad owner or permissions on C:\\Users\\user/.ssh/config
> 프로세스에서 없는 파이프에 쓰려고 했습니다.
[09:32:46.645] "install" terminal command done
[09:32:46.645] Install terminal quit with output: 프로세스에서 없는 파이프에 쓰려고 했습니다.
[09:32:46.645] Received install output: 프로세스에서 없는 파이프에 쓰려고 했습니다.
[09:32:46.645] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped.
[09:32:46.645] Failed to parse remote port from server output
[09:32:46.646] Resolver error: Error
WARNING: UNPROTECTED PRIVATE KEY FILE!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Permissions for 'C:\\Users\\user\\Desktop\\\~.pem' are too open.
> It is required that your private key files are NOT accessible by others.
> This private key will be ignored.
> Load key "C:\\Users\\user\\Desktop\\\~.pem": bad permissions
> postgres@~: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
> 프로세스에서 없는 파이프에 쓰려고 했습니다.
https://stackoverflow.com/questions/49926386/openssh-windows-bad-owner-or-permissions
->
You do not need to change your permissions whatsoever.
Just go to .ssh, right-click Properties, Security Tab, Advanced. DISABLE INHERITANCE. When you are disabling the inheritance you will be asked if you want to copy the current inherited access right. Accept that.
Then, click on the Administrator user (the one that is not you) and Remove them. Apply. Done.
->
문제가 되는 파일 우클릭 -> 보안탭 -> 고급 -> 상속 사용안함
위 그림 처럼 상속 사용으로 나오게 만들고, 알수 없는 사용 권한이 있으면 삭제 -> 적용
ssh 재시도 하면 성공
728x90
반응형