top of page
Search
Writer's pictureCOACH Rames

Technical : Install OpenSSH SFTP on Windows Server 2016

1. Download https://github.com/PowerShell/Win32-OpenSSH/releases (Download the x64 version)

2. Extract the OpenSSH-Win64.zip file and save it on C:\Program Files\OpenSSH-Win64

3. Go to Control Panel. In the System and Security section, open up System. Click on Advanced System Settings and, in the System Properties dialog box, click Environmental Variables.

4. In the System Variables, select Path. Click Edit.

5. Click New. Add the OpenSSH folder path. then close the System Properties> dialog.

6. Run Powershell as an Administrator. Enter the OpenSSH folder path. To install OpenSSH, run the '.\install-sshd.ps1' command. If the line “sshd and ssh-agent services successfully installed” appears, installation was successful.

7. Generate a host key by run the '.\ssh-keygen.exe -A' command.

8. Go to Control Panel and click on Administrative Service/Administrative Tools. In the resulting dialog, click Services. Find 2 services and set to Automatic and start them.


Windows Firewall Settings to Allow SSH Connection

1. Go to Control Panel > System Security > Windows Firewall. Click on Advanced Settings in the panel on the left side of the dialog box.

2. Windows Firewall With Advanced Security dialog, Select New Rule from the menu on the right.

3.New Inbound Rule Wizard dialog > select Protocol and Ports from the menu on the left of the dialog. Select the Custom option and click Next.

4. Program > select All Programs.

5. Protocols and Ports > select TCP and enter ‘22’ in the Specific local ports. Finish and exit the New Inbound Rule Wizard

6. Edit C:\ProgramData\ssh\sshd_config file and add the command below to reset the home directory for the ftpuser


Match User ftpuser ChrootDirectory D:\FTP



32,223 views0 comments

Comments


bottom of page