2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Fix the message for openbmc cons

Help user to locate the error for openbmc console session.
This commit is contained in:
chenglch 2017-11-08 09:21:06 +08:00
parent 0110ec378c
commit 07a4a50f0c

View File

@ -93,7 +93,7 @@ if ($ENV{SSHCONSOLEPORT}) {
# To automatically connect to the console without the need to send over the ssh keys,
# ensure sshpass is installed on the Management and/or Service Nodes.
print "If unable to open the console, ensure sshpass is installed or ssh keys have been configured on the BMC.\n";
print "Unable to open console. If BMC pings, ensure sshpass is installed or ssh keys have been configured on the BMC.\n";
if (-x '/usr/bin/sshpass') {
exec "/usr/bin/sshpass -p $password ssh -p $sshport -l $username -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $bmcip";
} else {