This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sshd refuses ssh connections


I am trying to setup sshd on cygwin, so ssh works.....

i followed all instructions from:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html

the important ones being to set

variable name is CYGWIN
variable value is ntsec tty

as an env variable in windows,  and

to append ;c:\cygwin\bin to the win2k Path var.

ssh -vvv localhost
p4-3000:marcj:{/home/marcj}198 % ssh -vvv localhost
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused


The process is running:
p4-3000:marcj:{/home/marcj}160 % ps -ef
     UID     PID    PPID TTY     STIME COMMAND
   marcj    1948       1 con  00:43:18 /usr/bin/bash
  SYSTEM     728       1   ?  00:48:33 /usr/bin/cygrunsrv
  SYSTEM     480     728   ?  00:48:33 /usr/sbin/sshd
   marcj    1748    1948 con  00:53:03 /usr/bin/sh
   marcj    2076    1748 con  00:53:03 /usr/X11R6/bin/XWin
   marcj    1840    1748 con  00:53:04 /usr/X11R6/bin/wmaker
   marcj    1648    1840 con  00:53:04 /usr/X11R6/bin/wmaker
   marcj    1600    1648   ?  00:53:17 /usr/bin/xterm
   marcj    1564    1600   0  00:53:18 /usr/bin/tcsh
   marcj    2148       1   0  00:53:25 /usr/bin/xterm
   marcj    2164    2148   1  00:53:25 /usr/bin/tcsh
   marcj    2196    2164   1  00:53:44 /usr/bin/ps


and the port 22 is listening:
p4-3000:marcj:{/etc}183 % netstat -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:22             0.0.0.0:0              LISTENING

Yet I always get connection refused:

ssh marcj@127.0.0.1
ssh connect to host 127.0.0.1 port 22: connection refused
ssh localhost
ssh: connect to host localhost port 22: Connection refused

ssh marcj@192.168.1.204
ssh: connect to host 192.168.1.204 port 22: Connection refused

I only have 1 copy of cygwin1.dll - in c:\cygwin\bin
I installed the openssh pkg at the same time that I did the initial cygwin
install. I am just trying
to get sshd working now.

I have 2 old copies of cygwin: c:\cygwin-old and
H:\Program-Files2\cygwin-not used anymore

I can't edit
/etc/ssh_config file using cygwin or win2k even though I have admin rights
on pc.

#       $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31 markus Exp $

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for various options

# Host *
#   ForwardAgent no
#   ForwardX11 no
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~

I have looked at FAQs, google, archives....

Not sure where to go from here.

Marc

Attachment: cygwin.info.txt
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]