Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Install SSH/SFTP server on Windows Server 2008

Leer en espanol
Install SSH/SFTP server on Windows Server 2008

Table of contents

http://www.freesshd.com/?ctt=download Once downloaded we run the Installer. Breasts ===

To create an SSH/SFTP server we are going to use FreeSSHD. To do this, we access their website and download it.

http://www.freesshd.com/?ctt=download

Once downloaded we run the Installer.

Captura de pantalla de 2013-05-17 12:40:04

An installation wizard opens. Following

Captura de pantalla de 2013-05-17 12:40:26

We indicate the route where we want to install it.

Captura de pantalla de 2013-05-17 12:40:43

We select Full installation. Following.

Captura de pantalla de 2013-05-17 12:40:59

We add a name to the folder

Captura de pantalla de 2013-05-17 12:41:10

We create the icon on the desktop.

Captura de pantalla de 2013-05-17 12:41:22

It shows us a summary. Install.

Captura de pantalla de 2013-05-17 12:41:33

Close.
Captura de pantalla de 2013-05-17 12:41:45

It tells us if we want to create the private key. We press yes.

Captura de pantalla de 2013-05-17 12:42:09

We press yes.

Captura de pantalla de 2013-05-17 12:42:26

We finish the installation.

Captura de pantalla de 2013-05-17 12:42:41

We run the FreeSSHd program with ADMINISTRATOR permissions to configure it properly.

When we start it, this screen will appear:

Captura de pantalla de 2013-05-17 12:43:20

This is the main screen. In which we will start the service once configured.

Selección_001

We go to the SSH tab. In it we can configure which interface we want it to listen on, port, maximum number of connected users, and shell to use. I will leave everything by default.

Selección_002

We go to the Authentication tab. Let's configure it so that it asks us for a password. In another manual we will see how to configure an RSA key to connect without a password.

Selección_003

We configure the type of encryption.

Selección_004

Once the SSH server has been configured, we are going to configure the SFTP server. To do this we go to the SFTP tab.

We indicate the folder where the users who have access to the SFTP server will connect.

Selección_006

Now we have to configure the user who will connect.  To do this we go to the Users tab.

Selección_007

A wizard opens where we will add the username, the authentication method (in our case password), and what that user will have access to. In my case I have entered everything, but if we want it to only be for SFTP, for example, we only mark SFTP.

Selección_008

Selección_009

We go to the Loggin tab and activate the LOG.

Selección_010

Again we go to the main tab and start the server.

Selección_016

We access it using ssh to check that it works.

Selección_017 Selección_018

Possible problems: 

When trying to start it tells us that the port is already being used... we probably have the freesshd service open twice or another process is running on the same port.
Selección_011

We access our MSDOS console and verify that it is running on port 22.

netstat -ano | FIND «22»

Selección_012

We list the process

tasklist /FI «PID eq 1580»

Selección_013

We kill the process.

taskkill /F /IM “FreeSSHDService.exe”

Selección_014

We check again

Selección_015

We start the program again and it should appear green.

Selección_016

Comments