LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 09-04-2004, 10:13 PM   #1
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684

Rep: Reputation: 56
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?
 
Old 09-04-2004, 10:47 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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
 
Old 09-06-2004, 02:41 PM   #3
browny_amiga
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: Reputation: 56
ahh. great. Thanks, that brought me back on course.
 
Old 03-31-2006, 02:56 PM   #4
JakeX
Member
 
Registered: Aug 2004
Location: Windsor Ontario
Distribution: Ubuntu, Debian, Redhat
Posts: 44

Rep: Reputation: 15
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.
 
Old 04-01-2006, 10:16 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved to General because Cygwin is a Windows thing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openssh and windoze wwnexc General 2 10-12-2005 08:58 AM
Possible secret account on Windoze box.. need help fotoguy General 5 08-15-2004 06:12 PM
Keyboard layout for Cywin XFree86 fdurodie Linux - Newbie 0 04-03-2004 05:48 AM
netsending a windoze box? fr0ggeh Linux - Software 1 07-19-2003 11:14 PM
I need to install windoze without messing with RedHat 7.2 HELP! Hano Linux - General 8 05-18-2002 02:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration