mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-07 13:40:17 +02:00
minor improvement: alwys open ssh connection with option 'PasswordAuthentication=no'
This commit is contained in:
parent
8fb9f94c6d
commit
221b7759c0
@ -126,11 +126,9 @@ bool launch_agent(void)
|
||||
if (instance_config.remote.ssh_options != NULL) {
|
||||
ssh_argc = split_options(ssh_argc, ssh_argv, MAX_CMDLINE_OPTIONS, pg_strdup(instance_config.remote.ssh_options));
|
||||
}
|
||||
if (num_threads > 1)
|
||||
{
|
||||
ssh_argv[ssh_argc++] = "-o";
|
||||
ssh_argv[ssh_argc++] = "PasswordAuthentication=no";
|
||||
}
|
||||
|
||||
ssh_argv[ssh_argc++] = "-o";
|
||||
ssh_argv[ssh_argc++] = "PasswordAuthentication=no";
|
||||
|
||||
ssh_argv[ssh_argc++] = "-o";
|
||||
ssh_argv[ssh_argc++] = "Compression=no";
|
||||
|
Loading…
Reference in New Issue
Block a user