public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Open SSHD
@ 2000-10-04 13:24 Bret Jordan
  2000-10-04 13:27 ` Erdely, Michael
  0 siblings, 1 reply; 4+ messages in thread
From: Bret Jordan @ 2000-10-04 13:24 UTC (permalink / raw)
  To: cygwin

First off in answer to someone's question yesterday here is how I have 
gotten opensshd to work on NT, note I am still having problems with one 
aspect of it but I will explain that later on.

Here is my step by step


copied sshd.exe		to 	c:\local\sbin\sshd\sshd.exe
copied ssh-keygen.exe	to	c:\local\sbin\sshd\ssh-keygen.exe

give current user "Act as OS and the other special rights"

run	c:\local\sbin\sshd\ssh-keygen -d -b 1024 -f c:\etc\sshd_host_dsa_key

NOTE: I was unalble to get it to work with a passphrase other than 
<NULL>.  I will keep working on this, or maybe someone knows how to make 
this part work.

Then I put my config file at c:\etc\sshd.conf
And passwd file at c:\etc\passwd


Then run 	c:\local\sbin\sshd\sshd -d -f \etc\sshd.conf

and it works.
All I have in my config file right now is the following (I am still working 
over some problems):

Port 			22
ListenAddress 	x.x.x.x
HostDSAKey		/etc/sshd_host_dsa_key
KeepAlive		no

The passwd file looks like
someusername::1:10:User Name:/home/someusername:/winnt/system32/cmd.exe

NOTE: You can use base.exe in place of cmd.exe example:
someusername::1:10:User Name:/home/someusername:/bin/bash.exe

NOTE: You will need to modify some aspects when you want to run it as a 
service.

Does this help?


Problem:
---------------
I can make a connection to a nt box running opensshd.  I can run most all 
dos/nt commands.  I can even run most all of the bin utils.  The problem 
come around when I try to run a program that is a command character program 
(edit, vi, emacs -nw, pmon, etc).  When I try to run these programs it just 
causes the connection to hang.  When you run vi it causes the connection to 
lock up and on the box running sshd the window in which sshd was started 
now looks like the VI window.  However, it is frozen as well and will not 
allow any input.  You have to kill the vi process which then kills the ssh 
connection.

Question:
Can you, and if so, how do you run command character programs through the 
ssh connection?  Is there some sort of ENV variable I need to set?

Thanks

Bret
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bret Jordan                       Dean's Office
LAN Manager              College of Engineering
801.585.3765                 University of Utah
              jordan@coe.utah.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Open SSHD
  2000-10-04 13:24 Open SSHD Bret Jordan
@ 2000-10-04 13:27 ` Erdely, Michael
  2000-10-04 14:47   ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Erdely, Michael @ 2000-10-04 13:27 UTC (permalink / raw)
  To: cygwin

Along those lines, I wrote up a web page with my steps to getting it work:
http://mike.erdelynet.com/sshd.htm .

Hope that helps someone.

-ME

----- Original Message -----
From: "Bret Jordan" <jordan@coe.utah.edu>
To: <cygwin@sources.redhat.com>
Sent: Wednesday, October 04, 2000 4:24 PM
Subject: Open SSHD


> First off in answer to someone's question yesterday here is how I have
> gotten opensshd to work on NT, note I am still having problems with one
> aspect of it but I will explain that later on.
>
> Here is my step by step
>
>
> copied sshd.exe to c:\local\sbin\sshd\sshd.exe
> copied ssh-keygen.exe to c:\local\sbin\sshd\ssh-keygen.exe
>
> give current user "Act as OS and the other special rights"
>
> run c:\local\sbin\sshd\ssh-keygen -d -b 1024 -f c:\etc\sshd_host_dsa_key
>
> NOTE: I was unalble to get it to work with a passphrase other than
> <NULL>.  I will keep working on this, or maybe someone knows how to make
> this part work.
>
> Then I put my config file at c:\etc\sshd.conf
> And passwd file at c:\etc\passwd
>
>
> Then run c:\local\sbin\sshd\sshd -d -f \etc\sshd.conf
>
> and it works.
> All I have in my config file right now is the following (I am still
working
> over some problems):
>
> Port 22
> ListenAddress x.x.x.x
> HostDSAKey /etc/sshd_host_dsa_key
> KeepAlive no
>
> The passwd file looks like
> someusername::1:10:User Name:/home/someusername:/winnt/system32/cmd.exe
>
> NOTE: You can use base.exe in place of cmd.exe example:
> someusername::1:10:User Name:/home/someusername:/bin/bash.exe
>
> NOTE: You will need to modify some aspects when you want to run it as a
> service.
>
> Does this help?
>
>
> Problem:
> ---------------
> I can make a connection to a nt box running opensshd.  I can run most all
> dos/nt commands.  I can even run most all of the bin utils.  The problem
> come around when I try to run a program that is a command character
program
> (edit, vi, emacs -nw, pmon, etc).  When I try to run these programs it
just
> causes the connection to hang.  When you run vi it causes the connection
to
> lock up and on the box running sshd the window in which sshd was started
> now looks like the VI window.  However, it is frozen as well and will not
> allow any input.  You have to kill the vi process which then kills the ssh
> connection.
>
> Question:
> Can you, and if so, how do you run command character programs through the
> ssh connection?  Is there some sort of ENV variable I need to set?
>
> Thanks
>
> Bret
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Bret Jordan                       Dean's Office
> LAN Manager              College of Engineering
> 801.585.3765                 University of Utah
>               jordan@coe.utah.edu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Open SSHD
  2000-10-04 13:27 ` Erdely, Michael
@ 2000-10-04 14:47   ` Corinna Vinschen
  2000-10-04 15:46     ` Bret Jordan
  0 siblings, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2000-10-04 14:47 UTC (permalink / raw)
  To: cygwin

Please note that OpenSSH and OpenSSL packages are officially part of the
base distro since 26-9-2000, announced on 27-9-2000:

http://sources.redhat.com/ml/cygwin/2000-09/msg00915.html

The Cygwin setup did downloaded them since that date as well.

I don't understand the problem here. I have described the installation
in detail in the README file `/usr/doc/Cygwin/openssh-2.2.0p1.README'.

For the beginning it will be helpful to start the script
`/usr/bin/ssh-config' which creates the necessary configuration and
key files.

Both files were already part of the original distribution on
ftp.franken.de and their existence was announced more than once in
this forum.

"Erdely, Michael" wrote:
> 
> Along those lines, I wrote up a web page with my steps to getting it work:
> http://mike.erdelynet.com/sshd.htm .
> [...]
> ----- Original Message -----
> From: "Bret Jordan" <jordan@coe.utah.edu>
> > [...]
> > copied sshd.exe to c:\local\sbin\sshd\sshd.exe
> > copied ssh-keygen.exe to c:\local\sbin\sshd\ssh-keygen.exe

Don't use Windows paths. Your description is ok if the installation
root is C:\ but this is not the default installation. Your description
would be valid in all environments when using POSIX paths like

  copied ssh-keygen.exe to /local/sbin/sshd

> > run c:\local\sbin\sshd\ssh-keygen -d -b 1024 -f c:\etc\sshd_host_dsa_key
> >
> > NOTE: I was unalble to get it to work with a passphrase other than
> > <NULL>.  I will keep working on this, or maybe someone knows how to make
> > this part work.

This is correct behaviour.
As it's even mentioned in the ssh-keygen man pages the host key must
have an empty passphrase.

> > The passwd file looks like
> > someusername::1:10:User Name:/home/someusername:/winnt/system32/cmd.exe

Where did you get the uid/gid? They are not related to the id's which
are given by NT. So you didn't use mkpasswd/mkgroup for creating your
/etc/passwd and /etc/group files. It's called by the Cygwin setup in
the postinstall. If you didn't use setup.exe, call them by yourself.

> > I can make a connection to a nt box running opensshd.  I can run most all
> > dos/nt commands.  I can even run most all of the bin utils.  The problem
> > come around when I try to run a program that is a command character
> program
> > (edit, vi, emacs -nw, pmon, etc).  When I try to run these programs it
> just
> > causes the connection to hang.  When you run vi it causes the connection
> to
> > [...]
> > Question:
> > Can you, and if so, how do you run command character programs through the
> > ssh connection?  Is there some sort of ENV variable I need to set?

I already answered your question yesterday:

http://sources.redhat.com/ml/cygwin/2000-10/msg00067.html

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Open SSHD
  2000-10-04 14:47   ` Corinna Vinschen
@ 2000-10-04 15:46     ` Bret Jordan
  0 siblings, 0 replies; 4+ messages in thread
From: Bret Jordan @ 2000-10-04 15:46 UTC (permalink / raw)
  To: cygwin

Yes, but it still does not fix the problem.

Bret


At 11:47 PM 10/4/00 +0200, you wrote:
>Please note that OpenSSH and OpenSSL packages are officially part of the
>base distro since 26-9-2000, announced on 27-9-2000:
>
> http://sources.redhat.com/ml/cygwin/2000-09/msg00915.html
>
>The Cygwin setup did downloaded them since that date as well.
>
>I don't understand the problem here. I have described the installation
>in detail in the README file `/usr/doc/Cygwin/openssh-2.2.0p1.README'.
>
>For the beginning it will be helpful to start the script
>`/usr/bin/ssh-config' which creates the necessary configuration and
>key files.
>
>Both files were already part of the original distribution on
>ftp.franken.de and their existence was announced more than once in
>this forum.
>
>"Erdely, Michael" wrote:
> >
> > Along those lines, I wrote up a web page with my steps to getting it work:
> > http://mike.erdelynet.com/sshd.htm .
> > [...]
> > ----- Original Message -----
> > From: "Bret Jordan" <jordan@coe.utah.edu>
> > > [...]
> > > copied sshd.exe to c:\local\sbin\sshd\sshd.exe
> > > copied ssh-keygen.exe to c:\local\sbin\sshd\ssh-keygen.exe
>
>Don't use Windows paths. Your description is ok if the installation
>root is C:\ but this is not the default installation. Your description
>would be valid in all environments when using POSIX paths like
>
>   copied ssh-keygen.exe to /local/sbin/sshd
>
> > > run c:\local\sbin\sshd\ssh-keygen -d -b 1024 -f c:\etc\sshd_host_dsa_key
> > >
> > > NOTE: I was unalble to get it to work with a passphrase other than
> > > <NULL>.  I will keep working on this, or maybe someone knows how to make
> > > this part work.
>
>This is correct behaviour.
>As it's even mentioned in the ssh-keygen man pages the host key must
>have an empty passphrase.
>
> > > The passwd file looks like
> > > someusername::1:10:User Name:/home/someusername:/winnt/system32/cmd.exe
>
>Where did you get the uid/gid? They are not related to the id's which
>are given by NT. So you didn't use mkpasswd/mkgroup for creating your
>/etc/passwd and /etc/group files. It's called by the Cygwin setup in
>the postinstall. If you didn't use setup.exe, call them by yourself.
>
> > > I can make a connection to a nt box running opensshd.  I can run most all
> > > dos/nt commands.  I can even run most all of the bin utils.  The problem
> > > come around when I try to run a program that is a command character
> > program
> > > (edit, vi, emacs -nw, pmon, etc).  When I try to run these programs it
> > just
> > > causes the connection to hang.  When you run vi it causes the connection
> > to
> > > [...]
> > > Question:
> > > Can you, and if so, how do you run command character programs through the
> > > ssh connection?  Is there some sort of ENV variable I need to set?
>
>I already answered your question yesterday:
>
> http://sources.redhat.com/ml/cygwin/2000-10/msg00067.html
>
>Corinna
>
>--
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Developer                        mailto:cygwin@sources.redhat.com
>Red Hat, Inc.
> mailto:vinschen@cygnus.com
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bret Jordan                       Dean's Office
LAN Manager              College of Engineering
801.585.3765                 University of Utah
              jordan@coe.utah.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-04 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-04 13:24 Open SSHD Bret Jordan
2000-10-04 13:27 ` Erdely, Michael
2000-10-04 14:47   ` Corinna Vinschen
2000-10-04 15:46     ` Bret Jordan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).