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

Sharpen wording in docs on passwordless SSH connection #48

Open
KronosTheLate opened this issue Jun 12, 2023 · 2 comments
Open

Sharpen wording in docs on passwordless SSH connection #48

KronosTheLate opened this issue Jun 12, 2023 · 2 comments

Comments

@KronosTheLate
Copy link
Contributor

The docs state that the user should "Set up passwordless ssh to your server. Usually this means you have ssh-agent running with your private key loaded". Does it matter if ssh-agent is not used? It would be nice with an additional sentence along the lines of "This has only been tested by using ssh-agent for passwordless access", or "As long as you have passwordless access (i.e. you are not prompted for a password when running `ssh @<ip_adress>, you are good to go.", to inform users about what they should do and expect.

@c42f
Copy link
Collaborator

c42f commented Jun 13, 2023

You need passwordless access of some kind. Basically, running the ssh process to set up the tunnel shouldn't require any user input. I don't know whether there's options other than ssh-agent, so we could mention that.

We should probably just search for a good tutorial on how to set up ssh and link to that.

@KronosTheLate
Copy link
Contributor Author

I just followed the setps in https://www.strongdm.com/blog/ssh-passwordless-login. Essentially just the following:

  • On the client, run ssh-keygen -t rsa. Accept default filename and location, and set no password.
  • On the server (RPi), create .ssh dir by mkdir -p .ssh
  • From the server, run ssh-copy-id pi@192.168.4.2 to upload key

It was somewhat different for non-linux client, but those instructions are also included. Could you verify that this tutorial looks good, and follows best practices? This is my first go as passwordless SSH, so I have no idea what the best practices are, if there are any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants