Commit bfe0aa67 authored by Jondy Zhao's avatar Jondy Zhao

Fix service sshd start failed in the Windows7, because the default port 22 is...

Fix service sshd start failed in the Windows7, because the default port 22 is used by other application, use 22002 instead
parent 4b4e4d75
...@@ -120,7 +120,7 @@ if ! cygrunsrv --query sshd > /dev/null 2>&1 ; then ...@@ -120,7 +120,7 @@ if ! cygrunsrv --query sshd > /dev/null 2>&1 ; then
slapos_request_password $slapos_admin "Install sshd service need the password of $slapos_admin." slapos_request_password $slapos_admin "Install sshd service need the password of $slapos_admin."
fi fi
echo Run ssh-host-config ... echo Run ssh-host-config ...
/usr/bin/ssh-host-config --yes --cygwin ntsec \ /usr/bin/ssh-host-config --yes --cygwin ntsec --port 22002 \
--user $slapos_admin --pwd ${csih_PRIVILEGED_PASSWORD} || --user $slapos_admin --pwd ${csih_PRIVILEGED_PASSWORD} ||
csih_error "Failed to run ssh-host-config" csih_error "Failed to run ssh-host-config"
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment