PVE/API2/Storage/Status: remove hardcoded blowfish cipher PVE/Storage: remove hardcoded blowfish cipher
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
This commit is contained in:
committed by
Dietmar Maurer
parent
051b247cea
commit
45c2ee3526
@ -340,7 +340,7 @@ __PACKAGE__->register_method ({
|
|||||||
if ($node ne 'localhost' && $node ne PVE::INotify::nodename()) {
|
if ($node ne 'localhost' && $node ne PVE::INotify::nodename()) {
|
||||||
my $remip = PVE::Cluster::remote_node_ip($node);
|
my $remip = PVE::Cluster::remote_node_ip($node);
|
||||||
|
|
||||||
my @ssh_options = ('-o', 'BatchMode=yes', '-c', 'blowfish-cbc');
|
my @ssh_options = ('-o', 'BatchMode=yes');
|
||||||
|
|
||||||
my @remcmd = ('/usr/bin/ssh', @ssh_options, $remip);
|
my @remcmd = ('/usr/bin/ssh', @ssh_options, $remip);
|
||||||
|
|
||||||
|
|||||||
@ -337,8 +337,7 @@ sub storage_migrate {
|
|||||||
|
|
||||||
my $errstr = "unable to migrate '$volid' to '${target_volid}' on host '$target_host'";
|
my $errstr = "unable to migrate '$volid' to '${target_volid}' on host '$target_host'";
|
||||||
|
|
||||||
# blowfish is a fast block cipher, much faster then 3des
|
my $sshoptions = "-o 'BatchMode=yes'";
|
||||||
my $sshoptions = "-c blowfish -o 'BatchMode=yes'";
|
|
||||||
my $ssh = "/usr/bin/ssh $sshoptions";
|
my $ssh = "/usr/bin/ssh $sshoptions";
|
||||||
|
|
||||||
local $ENV{RSYNC_RSH} = $ssh;
|
local $ENV{RSYNC_RSH} = $ssh;
|
||||||
|
|||||||
Reference in New Issue
Block a user