aiidateam / aiida-prerequisites

Docker image that contains all prerequisites allowing to run AiiDA.
2 stars 2 forks source link

Start ssh-agent at user's startup #26

Closed yakutovicha closed 3 years ago

yakutovicha commented 3 years ago

fixes #24

This is needed to use passphrase-protected keys that are required by some HPC centers. Based on the following howto: https://aiida.readthedocs.io/projects/aiida-core/en/latest/howto/ssh.html#using-passphrase-protected-keys-via-an-ssh-agent

yakutovicha commented 3 years ago

can I ask: what does the "single" stand for here?

I believe this stands for single user. @giovannipizzi am I right? I think you've created this file.

and will this now start an ssh agent (should this be the default behavior?) or will it only start one if ssh agent is installed (is it tested?)

This is the default behaviour on standard Linux distributions (see the howto).

ssh agent is installed and it was tested.

giovannipizzi commented 3 years ago

Just to clarify - IIRC, single means "start only one ssh agent, not one per shell, and reuse always the same one across different bash shells".

I've been using this for quite some time (even if recent Ubuntu and Mac have this functionality already working without the need of this workaround).