Last active
April 30, 2024 09:56
-
-
Save fa0311/8abe6f3d856354448a6caf13fa5118b9 to your computer and use it in GitHub Desktop.
Windows を SSH サーバーにするTips
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
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("Administrators")) { Start-Process powershell.exe "-File `"$PSCommandPath`"" -Verb RunAs; exit } | |
Start-Service sshd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PowerShellに変更
Git bashに変更