You are on page 1of 6

To install OpenSSH server on Windows Server

Go to the Windows Settings and select ‘Apps’


Then, select ‘Manage optional features’
Next, select ‘Add a feature’
Select ‘OpenSSH Server’ and click ‘Install’

Ensure that the firewall rule named ‘OpenSSH SSH Server (sshd)’ is enabled after the installation.
This allows inbound SSH traffic on port 22. If this rule is not enabled and this port is not open,
connections will be refused or reset.
Start and configure OpenSSH Server

To start and configure OpenSSH Server for initial use, open PowerShell as an administrator. Then,
run the following commands to start the sshd service :

# Start the sshd service

Start-Service sshd

# OPTIONAL but recommended:

Set-Service -Name sshd -StartupType 'Automatic'

# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the
following to verify

if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-


Object Name, Enabled)) {

Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."

New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)'


-Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22

} else {

Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."

}
Enable ‘TCPKeepAlive’ setting

SSH server config file ‘sshd_config’ can be found in ‘C:\ProgramData\ssh’ folder. Open the text file
with a text editor i.e. Notepad++ and etc. Next, remove the comment on the line where
‘TCPKeepAlive’ can be found (as shown below) and save the file. Finally, restart the SSH server for
the new setting to take effect

Connect to OpenSSH Server

You can use any SSH client i.e. Putty, Teraterm, MobaXterm and etc. to connect to the SSH Server.
Use the provided User ID and password to login. After login, run the ‘Startup.bat’ file to have all
relevant environment variables to be initialised. Finally, you can start your work now

Note : T24 is installed on ‘C:\Temenos’ folder

You might also like