How to get "Enter passphrase" on command line rather than GUI pop-up?

hvjunk hvjunk at gmail.com
Tue Jan 2 05:55:58 AEDT 2024


There is a program call sshpass that does just that
On ubuntu/debian:

apt install sshpass

> On 01 Jan 2024, at 20:37, Chris Green <cl at isbd.net> wrote:
> 
> On Mon, Jan 01, 2024 at 06:34:01PM +0000, Chris Green wrote:
>> Setting SSH_ASKPASS_REQUIRE=never in the environment on my xubuntu
>> 23.10 system doesn't seem to work.  I have set it:-
>> 
>>    chris$ env | grep SSH
>>    SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>>    SSH_ASKPASS_REQUIRE=never
>>    chris$ 
>> 
>> But I still get the annoying GUI pop-up rather than being asked for
>> the passphrase in the terminal window.  Is this a bug or am I doing
>> something wrong?
>> 
> ... and I running OpenSSH_9.3p1 Ubuntu-1ubuntu3.1, OpenSSL 3.0.10 1 Aug 2023
> 
> 
> -- 
> Chris Green
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



More information about the openssh-unix-dev mailing list