Qubes-Community / Contents

Community documentation, code, links to third-party resources, ... See the issues and pull requests for pending content. Contributions are welcome !
259 stars 98 forks source link

Qubes Split SSH: specify that the path to the key file in the .desktop file should be absolute #261

Closed tungsten987 closed 1 year ago

tungsten987 commented 1 year ago

In the Qubes Split SSH guide, when following the non-KeePassXC route, the user is advised to create a ~/.config/autostart/ssh-add.desktop in their vault AppVM containing the line Exec=ssh-add -c.

The guide then advises:

Note: If you've specified a custom name for your key using -f, you should adjust Exec=ssh-add to Exec=ssh-add <path-to-your-key-file>.

What the guide doesn't specify is that the <path-to-your-key-file> cannot reference the user home directory with a ~, the path must be absolute (e.g. /home/user/.ssh/my_key instead of ~/.ssh/my_key).

So, I suggest changing the excerpt quoted above to (also keeping the -c option for consistency):

Note: If you've specified a custom name for your key using -f, you should adjust Exec=ssh-add -c to Exec=ssh-add -c <path-to-your-key-file> (the path must be absolute, e.g. /home/user/.ssh/my_key).

ghost commented 1 year ago

Thanks, I'll update the instructions. Alternatively you could either submit a PR, or edit the doc in the forum once it's migrated (see #257) - let me know what you prefer.

tungsten987 commented 1 year ago

Alright I tried to submit a PR, see above. I hope it worked (first time I do this).

ghost commented 1 year ago

Thank you. Merged... By the way - as mentioned in #257 - are you OK to have your contribution(s)'s license be CC BY 4.0? [edit - also, are you registered on the forum?]

tungsten987 commented 1 year ago

Thanks for the merge. Yes, I'm okay with licensing my contributions under CC BY 4.0. I'm not registered on the forum yet, I guess I'll do that if I need to contribute again after the migration?

ghost commented 1 year ago

I'm not registered on the forum yet, I guess I'll do that if I need to contribute again after the migration?

Yes!

awokd commented 1 year ago

Content moved to https://forum.qubes-os.org/c/guides/14.