Author: arkurth
Date: Fri Aug 21 13:57:30 2009
New Revision: 806556
URL: http://svn.apache.org/viewvc?rev=806556&view=rev
Log:
VCL-52
Added check to utils.pm::run_ssh_command() to detect and remove the following
line from SSH output:
Address x.x.x.x maps to y.y.org, but this does not map back to the address -
POSSIBLE BREAK-IN ATTEMPT!
This was causing image retrieval subroutines to fail because of the unexpected
output and likely caused other problems for the same reason.
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=806556&r1=806555&r2=806556&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Fri Aug 21 13:57:30 2009
@@ -6178,9 +6178,11 @@
# Warning: the RSA host key for 'vi1-62' differs from the
key for the IP address '10.25.7.62'
# Offending key for IP in /root/.ssh/known_hosts:264
# Matching host key in /root/.ssh/known_hosts:3977
+ # Address x.x.x.x maps to y.y.org, but this does not map
back to the address - POSSIBLE BREAK-IN ATTEMPT!
$ssh_output =~ s/^Warning:.*//ig;
$ssh_output =~ s/Offending key.*//ig;
$ssh_output =~ s/Matching host key in.*//ig;
+ $ssh_output =~ s/.*POSSIBLE BREAK-IN ATTEMPT.*//ig;
# Remove any spaces from the beginning and end of the output
$ssh_output =~ s/(^\s+)|(\s+$)//g;