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

Option to use SSH instead of password #44

Closed
michaelplews opened this issue Apr 22, 2018 · 3 comments
Closed

Option to use SSH instead of password #44

michaelplews opened this issue Apr 22, 2018 · 3 comments
Labels

Comments

@michaelplews
Copy link

I'm much more comfortable not storing passwords in plaintext. Could we add an option to use ssh instead?

@plajjan
Copy link
Collaborator

plajjan commented Aug 9, 2018

You would have to elaborate a fair bit on this. org-sync supports multiple backends so I'm not sure if which one you mean we could use SSH for. I think most (or all?) of them use HTTPS today and I don't think most of the servers expose any of this kind of information over ssh. Do you have an example of a backend which could use SSH instead of HTTPS?

@michaelplews
Copy link
Author

Thanks for the reply.

From the README:

Now, let's try to add a new issue. First you have to set a user/password to be able to modify the issue remotely.

Set the variable org-sync-github-auth to like so: (setq org-sync-github-auth '("ostesting" . "thisisostesting42"))

This means I have to store my username and password in plaintext in my .emacs file. Could there be an option to specify the ssh key and use that instead?

@plajjan
Copy link
Collaborator

plajjan commented Aug 25, 2018

@michaelplews ah, right. I agree that it is generally not a good idea to put a plaintext password in your emacs config. However, SSH keys isn't an option because the backends simply don't communicate over SSH (they use HTTP(S)) and so SSH keys aren't a viable authentication method. I will close this because it's nothing org-sync can do anything about.

I would recommend that you look into putting your passwords in .authinfo and encrypting it with GPG :)

@plajjan plajjan closed this as completed Aug 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants