danfruehauf / NetworkManager-ssh

SSH VPN integration for NetworkManager
Other
253 stars 40 forks source link

maybe sshpass dependency can be replaced #115

Open calestyo opened 1 year ago

calestyo commented 1 year ago

Hey.

This is just a heads up, that maybe the sshpass dependency can be replaced by native (OpenSSH) means, namely by setting SSH_ASKPASS_REQUIRE=force and SSH_ASKPASS=someProgram for the executed ssh client.

someProgram get's the passphrase query prompt as argv[1] and shall print the desired passphrase.

Other than sshpass this can be even used to support multiple passphrase queries (e.g. when hopping nodes).

Cheers, Chris.