![]() In Windows, sshd reads configuration data from %programdata%\ssh\sshd_config by default, or a different configuration file may be specified by launching sshd.exe with the -f parameter. Command shellĬonfiguring the default ssh shell is done in the Windows registry by adding the full path to the shell executable to HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH in the string value DefaultShell.Īs an example, the following elevated PowerShell command sets the default shell to be powershell.exe: New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force The following command shows the current path setting, and adds the default OpenSSH installation folder to it. To set the default command shell, first confirm that the OpenSSH installation folder is on the system path.įor Windows, the default installation folder is %systemdrive%\Windows\System32\openssh. Windows also includes PowerShell, and third-party command shells are also available for Windows and may be configured as the default shell for a server. The initial default Windows is the Windows Command shell (cmd.exe). The default command shell provides the experience a user sees when connecting to the server using SSH.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |