=> dimasite

IT for(;;) fun!

  • Advertisements

Archive for November, 2010

How to install and setup a ssh server using Cygwin on Windows

Posted by Dmitrij Ivanov on November 29, 2010

I’ve spent some time to find a solution for a free ssh server. I’ve tried http://www.freesshd.com but I saw that is different from what I expected and eventually I’ve decided to install Cygwin with my bare hands. As the result I obtained the following step by step guide.
I estimated duration of the installation should be of 15 minutes. You need administrator privileges to install the application.

1 – Create a new local folder c:\cygwin
2 – Download Cygwin’s setup from http://www.cygwin.com and save setup.exe in c:\cygwin. Cygwin is a Linux-like environment for Windows.
3 – Run c:\cygwin\setup.exe and

Select install from internet option
Select c:\cygwin as root directory and All users option
Select the Local Package Directory c:\cygwin
Choose one of the available download sites, for example http://mirrors.xmission.com

4 – We don’t need to install all the packagies. Type openssh in search textbox and press Enter.
5 – Click the ‘Skip’ word on found item until the value of the column ‘Bin?’ becames X

6 – Click Next button to start installation
7 – In Start menu right click on My Computer then click on Properties, select Advanced property page and click on Environment Variables button.
8 – Find the variable Path and click the Edit button and at the end of the string add the following value ;c:\cygwin\bin

The Path variable contains a semicolon-delimited list of directories in which the command interpreter will search for executable files.

9 – From the Program menu open Cygwin Bash Shell
10 – Optional settings. A few of cygwin distributions could have folder access problems, to avoid this you can try the following settings

chmod +r /etc/passwd
chmod u+w /etc/passwd
chmod +r /etc/group
chmod u+w /etc/group
chmod 755 /var
touch /var/log/sshd.log
chmod 664 /var/log/sshd.log

11 – In Cygwin Bash Shell type ssh-host-config answer yes for any question; for the ssh daemon value type Cygwin ssh
If will prompted “This script plans to use cyg_server, Do you want to use a different name? Answer no. You can repeat the configuration and change the settings as you prefer.

12 – As last command type cyglsa-config to register lsa authentication package

13 – In Services window now you will find a service named CYGWIN sshd

Reboot the system and the job is done.

Finally you can remove c:\cygwin\setup.exe and the folder c:\cygwin\http%3a%2f%2fmirrors.xmission.com%2fcygwin%2f

I hope it could help someone.


Posted in SysAdmin | Tagged: , , , , , | Leave a Comment »

Find large folders and big files

Posted by Dmitrij Ivanov on November 21, 2010

If you need a quick tool with minimal functionalities which shows in the intuitive treemap graph your file system, probably you are searching for SequoiaView.



If you need a fast, freeware and portable solution the best choise is Steffen Gerlach’s Scanner.



I hope will help you.

Posted in SysAdmin | Tagged: , | Leave a Comment »