Re: [Sshpass-devel] Option for reading from arbitrary environment variable
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2021-07-12 17:40:48
|
On 12/07/2021 17:51, Chris Barnes wrote: > My initial use case was rsync proxyjumping through another server, > both of which need passwords (in my case, the gateway disallows key > logins and doesn't pass keys over to the next server). It was > convenient to load the password(s) from a .env file rather than typing > them myself and having them in the shell history. > I think the use case you describe falls under the same hospice as the answer I gave Denise. If I accept your patch (or the feature under any other name), then you'd end up running two nested instances of sshpass. I think it makes more sense for sshpass to be able to generically handle more than one password prompt. That would solve the problem without introducing specialized features into sshpass. Shachar |