[pve-devel] [PATCH manager 1/2] vnc: use SSH command helper
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Jan 11 11:51:21 CET 2024
to benefit from future improvements there, like pinning the known host key.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
PVE/API2/Nodes.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 3619190de..39139d8a9 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -965,7 +965,8 @@ my $get_vnc_connection_info = sub {
my ($remip, $family);
if ($node ne 'localhost' && $node ne PVE::INotify::nodename()) {
($remip, $family) = PVE::Cluster::remote_node_ip($node);
- $remote_cmd = ['/usr/bin/ssh', '-e', 'none', '-t', $remip , '--'];
+ $remote_cmd = PVE::SSHInfo::ssh_info_to_command({ ip => $remip, name => $node }, ('-t'));
+ push @$remote_cmd, '--';
} else {
$family = PVE::Tools::get_host_address_family($node);
}
--
2.39.2
More information about the pve-devel
mailing list