General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-04-2004, 10:13 PM
|
#1
|
Member
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684
Rep:
|
how to install openssh on cywin on a windoze box
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.
Can anybody point me in the right direction?
|
|
|
09-04-2004, 10:47 PM
|
#2
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
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
|
|
|
09-06-2004, 02:41 PM
|
#3
|
Member
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684
Original Poster
Rep:
|
ahh. great. Thanks, that brought me back on course.
|
|
|
03-31-2006, 02:56 PM
|
#4
|
Member
Registered: Aug 2004
Location: Windsor Ontario
Distribution: Ubuntu, Debian, Redhat
Posts: 44
Rep:
|
this should also help you, quick search (was actually looking for a way to start a cygwin term as windows service):
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
Ooops.. I just noticed I brought up an extremely old thread :P
Oh well good for anyone that searches (I found this with a search too.. lol)
Last edited by JakeX; 03-31-2006 at 03:12 PM.
|
|
|
04-01-2006, 10:16 AM
|
#5
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Moved to General because Cygwin is a Windows thing.
|
|
|
All times are GMT -5. The time now is 01:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|