Created
February 8, 2017 13:40
-
-
Save k14i/10eb31319f8494d60062bf648928459b to your computer and use it in GitHub Desktop.
A script to run sshd of Bash on Windows quietly at the Windows starting up with a shortcut.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned -Scope Process | |
Set-Location C:\Windows\System32 | |
Start-Process -FilePath bash -ArgumentList "-c `"sudo /usr/sbin/sshd -D`"" -WindowStyle hidden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy RemoteSigned -File C:\Users\k14i\bin\bash_exe_-c_sudo_usr_sbin_sshd_-d.ps1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment