|
|
@ -11,7 +11,7 @@ def install(): |
|
|
|
run_notfatal(r'sc stop sshd') |
|
|
|
run_notfatal(r'sc stop sshd') |
|
|
|
killalltasks('sshd.exe') |
|
|
|
killalltasks('sshd.exe') |
|
|
|
print(' Extract OpenSSH archive') |
|
|
|
print(' Extract OpenSSH archive') |
|
|
|
run('"%s" e -y -o"%s" OpenSSH-Win%s.zip' % (makepath(programfiles,'7-Zip','7z.exe'),makepath(programfiles,'OpenSSH'),'64' if iswin64() else '32')) |
|
|
|
unzip('OpenSSH-Win%s.zip' % '64' if iswin64() else '32',makepath(programfiles,'OpenSSH')) |
|
|
|
print(' Installing the service') |
|
|
|
print(' Installing the service') |
|
|
|
run(r'powershell.exe -ExecutionPolicy Bypass -File "%s\install-sshd.ps1"' % makepath(programfiles,'OpenSSH')) |
|
|
|
run(r'powershell.exe -ExecutionPolicy Bypass -File "%s\install-sshd.ps1"' % makepath(programfiles,'OpenSSH')) |
|
|
|
print(' Opening port 22 in the firewall') |
|
|
|
print(' Opening port 22 in the firewall') |
|
|
|