![]() It basically makes the ssh-agent start automatically. ![]() PS C:\Users\Administrator> New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -ForceĭefaultShell : C:\Windows\System32\WindowsPowerShell\v1.0\powershell. Run this in an elevated PowerShell Session ( run as admin): Get-Service ssh-agent Set-Service -StartupType Automatic -PassThru Start-Service (Or you can do that with the GUI if you know how. Now, Paste the following command into PowerShell Window to start. # set DefaultShell=PowerShell in registry entry of OpenSSH # for the PATH of PowerShell, specify the result of above Open up your Windows PowerShell as Administrator by searching it on the start menu, right click and Run as Administrator. PS C:\Users\Administrator> Get-Command powershell | Format-Table -AutoSize -WrapĪpplication powershell.exe 3.1 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe # make sure the PATH of powershell command Run PowerShell on OpenSSH Server and Change setting. When login to OpenSSH Server from Clients, Command prompt runs as default Shell,īut if you'd like to change it to PowerShell, Configure like follows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |