ssh doesnt use askpass even if DISPLAY is set
It only uses askpass if not connected to a terminal
This commit is contained in:
parent
c47e5372b5
commit
a216f6bd46
@ -573,7 +573,7 @@ def run_ssh(ssh_args: List[str], server_args: List[str], found_extra_args: Tuple
|
|||||||
use_kitty_askpass = host_opts.askpass == 'native' or (host_opts.askpass == 'unless-set' and 'SSH_ASKPASS' not in os.environ)
|
use_kitty_askpass = host_opts.askpass == 'native' or (host_opts.askpass == 'unless-set' and 'SSH_ASKPASS' not in os.environ)
|
||||||
need_to_request_data = True
|
need_to_request_data = True
|
||||||
if use_kitty_askpass:
|
if use_kitty_askpass:
|
||||||
if os.environ.get('DISPLAY') or ssh_version() >= (8, 4):
|
if ssh_version() >= (8, 4):
|
||||||
# SSH_ASKPASS_REQUIRE was introduced in 8.4 release on 2020-09-27
|
# SSH_ASKPASS_REQUIRE was introduced in 8.4 release on 2020-09-27
|
||||||
need_to_request_data = False
|
need_to_request_data = False
|
||||||
os.environ['SSH_ASKPASS_REQUIRE'] = 'force'
|
os.environ['SSH_ASKPASS_REQUIRE'] = 'force'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user