Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read the contents of /root due to insufficient permissions. #10639

Closed
6 tasks done
weiqingtao opened this issue Jan 17, 2025 · 4 comments
Closed
6 tasks done
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@weiqingtao
Copy link

Is there an existing issue for this bug?

  • I have searched the existing open issues and found none that apply.
  • If I find any issue of interest that is related or closed, I will included a link to it in this issue.

Required Troubleshooting Steps

  • I have read and performed the troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
  • My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
  • I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar

[Optional] Diagnose with Copilot

I did not ask the @remote-ssh participant for help

In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?

I did not try step 2 of the troubleshooting steps

Remote-SSH Log

Remote-SSH Log

In my Ubuntu system, when I SSH connect to a virtual machine, I encounter an error stating "Unable to read the contents of /root due to insufficient permissions."It seems to have opened the local /root folder.

Image

[PASTE LOG HERE WITHIN THE BACKTICKS TO FORMAT]


</p>
</details>


### Expected Behavior

Correctly Connecting to a Virtual Machine

### Actual Behavior

Correctly Connecting to a Virtual Machine

### Steps To Reproduce

Correctly Connecting to a Virtual Machine

### Anything else?

_No response_
@weiqingtao weiqingtao added the ssh Issue in vscode-remote SSH label Jan 17, 2025
@joshspicer
Copy link
Member

With the given information this appears to be a permissions issue and not an issue with the Remote SSH extension. What user have you connected to your machine with? Does that user have permission to open /root? For support, please follow the instructions in this issue template, which will include your logs. To help us more discern if this is an issue with the extension, please also repro the steps outside of VS Code. Thanks!

@joshspicer joshspicer added the ~info-needed Issue requires more information from poster (with bot comment) label Jan 17, 2025
Copy link

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

@vs-code-engineering vs-code-engineering bot added info-needed Issue requires more information from poster and removed ~info-needed Issue requires more information from poster (with bot comment) labels Jan 17, 2025
@joshspicer
Copy link
Member

This issue may also be helpful, including a community extension that I noticed (but have not tested or verified) microsoft/vscode#48659 (comment)

Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants