This topic will enable you to use SSH on a Windows server. While SSH works out of the box on Unix servers, it requires enabling a certain component called OpenSSH to work properly from Windows. This topic shows this and will allow you to SSH into the server from any SSH client and use Windows' command prompt. You may also transfer files using any SFTP client.
To install OpenSSH, firstly connect to the server via Remote Desktop, then open a PowerShell session as Administrator. If you are logged into the servers "Administrator" account, any PowerShell will have administrative permissions. If you are not, then you can right-click on the PowerShell option and press "Run as Administrator", entering the password for the Administrator account.
Next, enter the following command into PowerShell to install OpenSSH:
Code: Select all
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Next, after installing the SSH server we must start it and ensure it automatically starts when the computer starts (otherwise it will immediately be unavailable once the computer reboots):
Code: Select all
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
Note: You cannot SSH into an account that is the same name as the computer name. It's Microsoft, don't question it.