GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This might be a dumb question and I got it working before, but now I can't seem to find it:
Where can I activate the OpenSSH server in windows after installing cygwin?
Here the steps I did:
1. I install cywin standard, including rsync and openssh.
2. The installer exits.
3. None of the (mentioned in the documentation) scripts are running to set up things (in my case I am very interested in the openssh part)
4. I am looking into the services part of winxp to see if there is the service openssh, but nothing is there.
Now as mentioned before, the first time I installed cygwin, there was some script running that asked me some questions.
Now I can't seem to get it running anymore and also don't know how to configure the openssh server to run.
(I have to admit that I fiddled around with the registry, to remove unneeded entries of deinstalled programs and with the autostart (to remove these obnoxious quickstart programms in windows that "need" to start)
openssh itself points to cygwin and in the cygwin documentation I can't seem to find the relevant part for openssh.
I don't have it installed right now but maybe you can look at my notes and see if anything clicks. .....
Code:
Using cygwin to rsync Windows files up to a Linux computer.
Download the cygwin packages to a folder and run setup.
The ssh package is in the net selection.
After cygwin is installed, click on the cygwin icon and run these commands;
type: ssh-host-config -y
type: cygrunsrv -S sshd
type: ssh localhost
Check to make sure the service is started...
My Computer \ Control Panel \ Administrative Tools \ Services.....
Cygwin sshd set to automatic and under the Log On tab, set it to run as a service.
Right click on My Computer \ Properties \ Advanced tab \
Environment Variables....
Variable Name: CYGWIN
Variable Value: ntsec tty
Edit: Path to add ;c:\cygwin\bin;c:\
Set up the secure key from the Linux computer while logged on as the same account on the Windows computer. When asked for a key phrase, press the enter key ( blank ) to allow you to connect without entering the key phrase or password. Very useful for cron scheduling.
ssh-keygen -t dsa -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub | ssh fred@remote 'cat - >>
~/.ssh/authorized_keys'
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
To upload the files to the Linux computer from the Windows computer, use the following syntax...
rsync -e ssh -avzr fred@remote:c:/mydirectory /home/fred
To download file from the Linux computer to the Windows computer, use the following syntax....
rsync -e ssh -avzr /home/fred fred@remote:c:/mydirectory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.