-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Comments
@sim4life thanks for opening the issue. The reason that daytona needs write permissions to your ssh config is to setup the necessary SSH host to connect to the Daytona workspace. We first add
Looking at your symlink, the issue might be that the nix-created ssh config is not writable by your user (without sudo). Are you able to run P.S. Sorry for the late response, we were on holidays |
@Tpuljak welcome back. Is there a way for me to have the daytona generated ssh config specific for my user so that I can put it manually in my nix home-manager managed ssh config file? |
@sim4life currently, we have the ssh config file hardcoded. We could add an option to skip writing the Just to give it a try, can you please add |
I added the |
Ah, I see now that we run the replace every time. Because we need to ensure that the Include line is on top of the file, we inject it on every run. |
We'll release an update for this today and then you can check again. |
@sim4life forgot to update you. You can update to the latest version of daytona by rerunning the install script. The issue should be resolved. Let me know if it works now. |
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:
daytona create
and select sample project:sample-astro-tailwind-restaurant
gives warnings like: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):
Additional context
myuser
is the WSL2 Ubuntu user with sudo privileges.daytona ide
, I get the same ssh config permission denied error.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
The text was updated successfully, but these errors were encountered: