kinode-dao / kit

Development toolkit for Kinode OS
Apache License 2.0
13 stars 3 forks source link

feature: SSH password retrieval for `kit connect` #280

Open 0x70b1a5 opened 1 week ago

0x70b1a5 commented 1 week ago

Is your feature request related to a problem? Please describe. I have to go and look up my silly password each time I restart my computer and reconnect

Describe the solution you'd like either a (less secure) --password flag so that I can CTRL+R a oneliner to reconnect, or a (more secure) (working name) --config filename that reads a file for some password text, or a line that checks for the presence of an ENVIRONMENT_VARIABLE, or something else that stores the SSH password so I can just kit connect and get on with it, especially in a build script.

Describe alternatives you've considered Keeping a stiff upper lip.

nick1udwig commented 2 days ago

Hmm, my initial reaction here was to advise you to set up a pubkey on the remote server, but it sounds like you might be doing that already; can you confirm?

E.g. see guide here

Then you just have to add your SSH key to your ssh-agent (I think macOS uses a slightly different scheme with keychain(?) but its more-or-less the same). Its still a once-per-reboot situation, but you get to choose some password as opposed to a randomly-generated one like Valet gives.