Install OpenSSH Server/Client on Windows Server.
Access to the site below and download OpenSSH. Generally on Windows 2012R2, choose [OpenSSH-Win64.zip] to download.
|||Extract ZIP file and move the extracted folder to any location you like. This example shows to put into [C:\Program Files\] like follows.|
|||Open [System Properties] and click [Environment Variables] button.|
|||Select [Path] in [System variables] section and click [Edit...] button.|
|||Add OpenSSH folder PATH you located in [Variables value] section. After adding it, Close [System Properties] window.|
|||Run [Powershell] and move to OpenSSH folder you located. Next, run a command '.\install-sshd.ps1' to install sshd service like follows. If successfully message is shown, it's OK to install.|
|||Next, Generate SSH host-key. Run a command '.\ssh-keygen.exe -A' like follows.|
|||It's OK to install sshd. Next, Open [Services] and start sshd. And also change to [Automatic] for [Startup Type] like follows.|
|||If Windows Firewall is running, add 22/TCP port to allow SSH connection like follows.|
|||For connecting from Windows Server to Linux Server, it's possible to do on Powershell or Command Prompt like follows.|
|||For connecting from Linux Server to Windows Server, it's possible to do like follows.|
Administrator@10.0.0.100's password: Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. Administrator@FD3S C:\Users\Administrator>dir Volume in drive C has no label. Volume Serial Number is 0000-0000 Directory of C:\Users\Administrator 02/08/2017 05:19 PM <DIR> . 02/08/2017 05:19 PM <DIR> .. 02/08/2017 05:19 PM <DIR> Contacts 02/08/2017 05:33 PM <DIR> Desktop 02/08/2017 05:19 PM <DIR> Documents 02/08/2017 05:19 PM <DIR> Downloads 02/08/2017 05:19 PM <DIR> Favorites 02/08/2017 05:19 PM <DIR> Links 02/08/2017 05:19 PM <DIR> Music 02/08/2017 05:19 PM <DIR> Pictures 02/08/2017 05:19 PM <DIR> Saved Games 02/08/2017 05:19 PM <DIR> Searches 02/08/2017 05:19 PM <DIR> Videos 0 File(s) 0 bytes 13 Dir(s) 75,735,973,888 bytes free