[pve-devel] [PATCH 2/2] PVE::API2::Storage::Status: use build_ssh_opt instead of static blowfish encryption
Stefan Priebe
s.priebe at profihost.ag
Tue Oct 30 15:44:31 CET 2012
From: Stefan Priebe <git at profihost.ag>
Signed-off-by: root <root at neuerserver.de-nserver.de.de-nserver.de>
---
PVE/API2/Storage/Status.pm | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm
index c4b6035..d300804 100644
--- a/PVE/API2/Storage/Status.pm
+++ b/PVE/API2/Storage/Status.pm
@@ -340,7 +340,11 @@ __PACKAGE__->register_method ({
if ($node ne 'localhost' && $node ne PVE::INotify::nodename()) {
my $remip = PVE::Cluster::remote_node_ip($node);
- my @ssh_options = ('-o', 'BatchMode=yes', '-c', 'blowfish-cbc');
+ my $datacenterconf = PVE::Cluster::cfs_read_file('datacenter.cfg');
+ my $ssh_opts = {};
+ $ssh_opts->{cipher} = $datacenterconf->{cipher} if ( $datacenterconf->{cipher} );
+
+ my @ssh_options = PVE::Tools::build_ssh_opt( $ssh_opts );
my @remcmd = ('/usr/bin/ssh', @ssh_options, $remip);
--
1.7.2.5
More information about the pve-devel
mailing list