to benefit from future improvements like known host key pinning. Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com> --- PVE/CLI/pvesh.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/CLI/pvesh.pm b/PVE/CLI/pvesh.pm index 44a65213c..d373ae29f 100755 --- a/PVE/CLI/pvesh.pm +++ b/PVE/CLI/pvesh.pm @@ -116,7 +116,7 @@ sub proxy_handler { } } - my @ssh_tunnel_cmd = ('ssh', '-o', 'BatchMode=yes', "root\@$remip"); + my $ssh_tunnel_cmd = PVE::SSHInfo::ssh_info_to_command({ ip => $remip, name => $node }); my @pvesh_cmd = ('pvesh', '--noproxy', $cmd, $path, '--output-format', 'json'); if (scalar(@$args)) { @@ -126,7 +126,7 @@ sub proxy_handler { my $res = ''; PVE::Tools::run_command( - [ @ssh_tunnel_cmd, '--', @pvesh_cmd ], + [ $ssh_tunnel_cmd->@*, '--', @pvesh_cmd ], errmsg => "proxy handler failed", outfunc => sub { $res .= shift }, ); -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel