RemoteREPL.jl icon indicating copy to clipboard operation
RemoteREPL.jl copied to clipboard

Sharpen wording in docs on passwordless SSH connection

Open KronosTheLate opened this issue 2 years ago • 2 comments

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.

KronosTheLate avatar Jun 12 '23 13:06 KronosTheLate

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.

c42f avatar Jun 13 '23 01:06 c42f

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 [email protected] 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.

KronosTheLate avatar Jun 13 '23 08:06 KronosTheLate