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

WSL2 SSH config permission denied error #1601

Open
sim4life opened this issue Dec 27, 2024 · 0 comments
Open

WSL2 SSH config permission denied error #1601

sim4life opened this issue Dec 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sim4life
Copy link

Describe the bug
For package management and settings, I used Nix home-manager. I setup daytona with proper configs and the workspace but on opening a workspace, it gives a ssh config file permission denied error.

To Reproduce
Steps to reproduce the behavior:

  1. Setup daytona git-provider with gitea (forgejo v7 self-hosted)
  2. Setup daytona provider as docker-local
  3. Setup daytona target as docker-local (previously added)
  4. Create workspace: daytona create and select sample project: sample-astro-tailwind-restaurant gives warnings like:
1 warning found (use docker --debug to expand):
 sample-astro-tail... |  - InvalidDefaultArgInFrom: Default value for ARG $BASE_IMAGE results in empty or invalid base image name (line 4)
  1. The workspace gets created but daytona is unable to open the workspace and gives the error:
    FATA[1333] open /home/myuser/.ssh/config: permission denied

Expected behaviour
Expectation is to have NO docker related warnings, NO permission errors to have read access to ssh config file and NO write access to SSH config file needed.

Desktop (please complete the following information):

  • OS: (Win11 + WSL2) Ubuntu 22.04
  • Docker desktop (using WSL2 bindings) v4.37.1
  • Nix home-manager v24.05
  • Daytona Version: v0.50.0

Additional context

  1. myuser is the WSL2 Ubuntu user with sudo privileges.
  2. I don't have VS Code installed but I use VSCodium. Whether, I select VS Code or Terminal SSH in the default daytona ide, I get the same ssh config permission denied error.
  3. Using Nix home-manager to manage SSH settings, it creates a chain of symlinks to another file inside Nix directory
    lrwxrwxrwx 1 myuser myuser /home/myuser/.ssh/config -> /nix/store/xyzhash-home-manager-files/.ssh/config
    lrwxrwxrwx 2 root root /nix/store/xyzhash-home-manager-files/.ssh/config -> /nix/store/abchash-hm_.sshconfig
    -r--r--r-- 3 root root /nix/store/abchash-hm_.sshconfig
@sim4life sim4life added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant