The following examples are based on recommendations made by the copSSH developer Tevfik Karagülle in this FAQ.
Use an alternate high number port for copSSH to listen on. See the Port option in the sshd_config file man page for option details. Any changes to the Port option require a change to any firewall or router the copSSH server computer is behind. See the following example from a Belkin F5D7230-4 wireless router. For help with the Windows Firewall go here.
Change default port example

Create a 4096-bit private/public RSA key pair with a strong pass phrase for authentication using either the Tunnelier Keypair Manager or the PuttyGEN program.
Configure the sshd_config file to only allow private/public key authentication, use AllowUsers/DenyUsers and lower the MaxStartups value. See the following example sshd_config file for details. Example changes from the default settings are highlighted. See the sshd_config file man page for option details.
| # This is the sshd server system-wide configuration file.
See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options change a # default value. #Port 22 |
Important Note: The AllowUsers and DenyUsers options are highly localized from site to site. Modify as needed for local use.
Modify the default sshd_config file by navigating to the C:\Program Files\copssh\etc folder. Create a copy of the original sshd_config file as a backup. To modify the sshd_config file double-click on the file name and use Wordpad to modify the file. A modified /etc/sshd_config file and a new login authentication warning /etc/Banner.txt file can be downloaded here. Use the downloaded sshd_config file as a template for your local copSSH server. Make a backup of the original /etc/sshd_config file then download and extract the two new files into the C:\Program Files\copssh\etc folder on the copSSH server PC.
Remember that you must restart the Openssh SSHD service on the copSSH server PC after changing or modifying the sshd_config file.

| Last reviewed: 2 August 2008...awj Copyright © 2008 - Alan W. Jarvi - All rights reserved The Microsoft MVP Program |
![]() |