Re: Help me please install OpenSSH Server on Windows Vista
What does it tell ? SSH Server is running - but it does not offer login or user name to enter. Why? Did you read '/usr/share/doc/Cygwin/openssh.readme'? Did you run ssh-user-config? I will have to revive this topic... It still does not work: namely used ssh-user-config it created 3 keys: SSH1 RSA, SSH2 RSA, SSH2 DSA. But it fails in similar way with: ssh_exchange_identification: Connection closed by remote host Any ideas? -- -Alexey Eromenko Technologov, 26.1.2009. -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
On Mon, Jan 26, 2009 at 7:46 AM, Alexey Eremenko al4...@gmail.com wrote: I will have to revive this topic... It still does not work: namely used ssh-user-config it created 3 keys: SSH1 RSA, SSH2 RSA, SSH2 DSA. But it fails in similar way with: ssh_exchange_identification: Connection closed by remote host It just worked for me! See my last two posts. -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
On Sun, Jan 18, 2009 at 6:03 AM, Dmitry Semyonov linu...@gmail.com wrote: On Sun, Jan 18, 2009 at 16:12, Alexey Eremenko wrote: $ cygrunsrv -S sshd and I hope SSH service started but have no idea if it really started... cygrunsrv -Q sshd Thanks Dmitry... u...@user-pc ~ $ cygrunsrv -Q sshd Service : sshd Display name: CYGWIN sshd Current State : Running Controls Accepted : Stop Command : /usr/sbin/sshd -D C:\cygwin\binssh localhost ssh_exchange_identification: Connection closed by remote host It still does not work. What else info I can provide? man ssh: -v Verbose mode. Causes ssh to print debugging messages about its progress. This is helpful in debugging connection, authentication, and configuration problems. Multiple -v options increase the verbosity. The maximum is 3. C:\cygwin\binssh -v localhost OpenSSH_5.1p1, OpenSSL 0.9.8h 28 May 2008 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to localhost [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/identity type -1 debug1: identity file /home/user/.ssh/id_rsa type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 ssh_exchange_identification: Connection closed by remote host What does it tell ? SSH Server is running - but it does not offer login or user name to enter. Why? -- -Alexey Eromenko Technologov -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
Alexey Eremenko wrote: On Sun, Jan 18, 2009 at 6:03 AM, Dmitry Semyonov linu...@gmail.com wrote: On Sun, Jan 18, 2009 at 16:12, Alexey Eremenko wrote: $ cygrunsrv -S sshd and I hope SSH service started but have no idea if it really started... cygrunsrv -Q sshd Thanks Dmitry... u...@user-pc ~ $ cygrunsrv -Q sshd Service : sshd Display name: CYGWIN sshd Current State : Running Controls Accepted : Stop Command : /usr/sbin/sshd -D C:\cygwin\binssh localhost ssh_exchange_identification: Connection closed by remote host It still does not work. What else info I can provide? man ssh: -v Verbose mode. Causes ssh to print debugging messages about its progress. This is helpful in debugging connection, authentication, and configuration problems. Multiple -v options increase the verbosity. The maximum is 3. C:\cygwin\binssh -v localhost OpenSSH_5.1p1, OpenSSL 0.9.8h 28 May 2008 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to localhost [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/identity type -1 debug1: identity file /home/user/.ssh/id_rsa type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 ssh_exchange_identification: Connection closed by remote host What does it tell ? SSH Server is running - but it does not offer login or user name to enter. Why? Did you read '/usr/share/doc/Cygwin/openssh.readme'? Did you run ssh-user-config? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
On Wed, Jan 14, 2009 at 10:29 AM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Alexey Eremenko wrote: Seeing the output (*attached*) from 'cygcheck -s -r -v' as requested by http://cygwin.com/problems.html would help. What does 'ls -ld /etc' say? What does 'getfacl /etc' say? What about 'cacls c:\cygwin\etc'? In other words, who has permissions to change '/etc' and who's it's owner? Sounds like you need to rejigger ownerships/permissions to make this work. Perhaps try that based on the output of the above. I have attached output in text-files. You've sanitized your cygcheck output so that I can't see what groups user belongs to. According to your 'ls'/'getfacl' output, user is the owner of '/etc' (and I assume '/var/log'). Try 'chmod 755 /etc' from the command line instead. ok I did: chmod -Rvf 0777 /etc /var then: ssh-host-config completed successfully (at last !) I did: $ cygrunsrv -S sshd and I hope SSH service started but have no idea if it really started... On the same machine I opened cmd.exe and did: C:\cygwin\binssh cyg_ser...@localhost ssh_exchange_identification: Connection closed by remote host C:\cygwin\binssh localhost ssh_exchange_identification: Connection closed by remote host It still does not work. What else info I can provide? -- -Alexey Eromenko Technologov -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
On Sun, Jan 18, 2009 at 16:12, Alexey Eremenko wrote: $ cygrunsrv -S sshd and I hope SSH service started but have no idea if it really started... cygrunsrv -Q sshd C:\cygwin\binssh localhost ssh_exchange_identification: Connection closed by remote host It still does not work. What else info I can provide? man ssh: -v Verbose mode. Causes ssh to print debugging messages about its progress. This is helpful in debugging connection, authentication, and configuration problems. Multiple -v options increase the verbosity. The maximum is 3. -- ...Bye..Dmitry. -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
Seeing the output (*attached*) from 'cygcheck -s -r -v' as requested by http://cygwin.com/problems.html would help. What does 'ls -ld /etc' say? What does 'getfacl /etc' say? What about 'cacls c:\cygwin\etc'? In other words, who has permissions to change '/etc' and who's it's owner? Sounds like you need to rejigger ownerships/permissions to make this work. Perhaps try that based on the output of the above. I have attached output in text-files. -- -Alexey Eromenko Technologov u...@user-pc ~ $ ls -ld /stc ls: cannot access /stc: No such file or directory u...@user-pc ~ $ ls -ld /etc dr-xr-x---+ 10 user Users 4096 Jan 14 10:21 /etc u...@user-pc ~ $ getfacl /etc # file: /etc # owner: user # group: Users user::--- group::r-x group:root:rwx group:SYSTEM:rwx mask:rwx other:--- default:group:root:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx u...@user-pc ~ $ cacls c:\cygwin\etc The system cannot find the file specified. u...@user-pc ~ $ whoami user Cygwin Configuration Diagnostics Current System Time: Wed Jan 14 11:16:23 2009 Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6000 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\Windows\system32 c:\Windows c:\Windows\System32\Wbem SysDir: C:\Windows\system32 WinDir: C:\Windows USER = 'user' PWD = '/home/user' HOME = '/home/user' MAKE_MODE = 'unix' HOMEPATH = '\Users\user' MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' APPDATA = 'C:\Users\user\AppData\Roaming' HOSTNAME = 'user-PC' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 2 Stepping 3, GenuineIntel' WINDIR = 'C:\Windows' PUBLIC = 'C:\Users\Public' OLDPWD = '/etc/skel' PROGRAMDATA = 'C:\ProgramData' USERDOMAIN = 'user-PC' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\ProgramData' TEMP = '/cygdrive/c/Users/user/AppData/Local/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' USERNAME = 'user' PROCESSOR_LEVEL = '6' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' USERPROFILE = 'C:\Users\user' PS1 = '\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER = '\\USER-PC' PROCESSOR_ARCHITECTURE = 'x86' LOCALAPPDATA = 'C:\Users\user\AppData\Local' !C: = 'C:\cygwin\bin' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\Windows\system32\cmd.exe' TMP = '/cygdrive/c/Users/user/AppData/Local/Temp' SYSTEMROOT = 'C:\Windows' PRINTER = 'Microsoft XPS Document Writer' CVS_RSH = '/bin/ssh' PROCESSOR_REVISION = '0203' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '1' COMPUTERNAME = 'USER-PC' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd FAT 1Mb 1% CPUN c: hd NTFS 20477Mb 46% CP CS UN PA FC d: cd CDFS20Mb 100%CS UN cygwin C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\crontab.exe Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Found: C:\cygwin\bin\kill.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Not Found: patch Not Found: perl Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\ssh.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe Found: C:\cygwin\bin\test.exe Not Found: vi Not Found: vim 61k 2008/04/01 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 cygbz2-1.dll v0.0 ts=2008/3/31 20:37 7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0 cygcrypt-0.dll v0.0 ts=2003/10/19 0:57 1057k 2008/06/09 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0 cygcrypto-0.9.8.dll v0.0 ts=2008/6/9 9:33 40k 2006/11/15
Re: Help me please install OpenSSH Server on Windows Vista
Alexey Eremenko wrote: Seeing the output (*attached*) from 'cygcheck -s -r -v' as requested by http://cygwin.com/problems.html would help. What does 'ls -ld /etc' say? What does 'getfacl /etc' say? What about 'cacls c:\cygwin\etc'? In other words, who has permissions to change '/etc' and who's it's owner? Sounds like you need to rejigger ownerships/permissions to make this work. Perhaps try that based on the output of the above. I have attached output in text-files. You've sanitized your cygcheck output so that I can't see what groups user belongs to. According to your 'ls'/'getfacl' output, user is the owner of '/etc' (and I assume '/var/log'). Try 'chmod 755 /etc' from the command line instead. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
On Mon, Jan 12, 2009 at 4:32 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Alexey Eremenko wrote: On Mon, Jan 12, 2009 at 4:47 AM, Alexey Eremenko al4...@gmail.com wrote: Hi All ! I have installed Cygwin on Vista -- but was unable to install SSH server on it. ssh-host-config returns an error no matter what I do. Diabling UAC doesn't help. Here is what I get when I try to setup SSH on Vista: $ ssh-host-config chmod: changing permissions of `/etc': Permission denied setfacl: Permission denied chmod: changing permissions of `/var/log': Permission denied setfacl: Permission denied Are you running with elevated Administrator permissions? Yes, I tried running that with:-- right click-run as administrator-cygwin bash shell If this is what you mean by elevated Administrator permissions... or something else? It does not help. -- -Alexey Eromenko Technologov -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
Alexey Eremenko wrote: On Mon, Jan 12, 2009 at 4:32 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Alexey Eremenko wrote: On Mon, Jan 12, 2009 at 4:47 AM, Alexey Eremenko al4...@gmail.com wrote: Hi All ! I have installed Cygwin on Vista -- but was unable to install SSH server on it. ssh-host-config returns an error no matter what I do. Diabling UAC doesn't help. Here is what I get when I try to setup SSH on Vista: $ ssh-host-config chmod: changing permissions of `/etc': Permission denied setfacl: Permission denied chmod: changing permissions of `/var/log': Permission denied setfacl: Permission denied Are you running with elevated Administrator permissions? Yes, I tried running that with:-- right click-run as administrator-cygwin bash shell If this is what you mean by elevated Administrator permissions... or something else? It does not help. Seeing the output (*attached*) from 'cygcheck -s -r -v' as requested by http://cygwin.com/problems.html would help. What does 'ls -ld /etc' say? What does 'getfacl /etc' say? What about 'cacls c:\cygwin\etc'? In other words, who has permissions to change '/etc' and who's it's owner? Sounds like you need to rejigger ownerships/permissions to make this work. Perhaps try that based on the output of the above. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
On Mon, Jan 12, 2009 at 4:47 AM, Alexey Eremenko al4...@gmail.com wrote: Hi All ! I have installed Cygwin on Vista -- but was unable to install SSH server on it. ssh-host-config returns an error no matter what I do. Diabling UAC doesn't help. Here is what I get when I try to setup SSH on Vista: $ ssh-host-config chmod: changing permissions of `/etc': Permission denied setfacl: Permission denied chmod: changing permissions of `/var/log': Permission denied setfacl: Permission denied *** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes *** Info: Creating default /etc/ssh_config file *** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes *** Info: Creating default /etc/sshd_config file *** Info: Privilege separation is set to yes by default since OpenSSH 3.3. *** Info: However, this requires a non-privileged account called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh/RE ME.privsep. *** Query: Should privilege separation be used? (yes/no) ye *** Query: Should privilege separation be used? (yes/no) yes *** Warning: The file /etc/passwd is not readable by all. *** Warning: Please run 'chmod +r /etc/passwd'. *** Warning: The file /etc/group is not readable by all. *** Warning: Please run 'chmod +r /etc/group'. *** ERROR: Problem with LocalSystem or Adminstrator IDs -- -Alexey Eromenko Technologov -- 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/
Re: Help me please install OpenSSH Server on Windows Vista
Alexey Eremenko wrote: On Mon, Jan 12, 2009 at 4:47 AM, Alexey Eremenko al4...@gmail.com wrote: Hi All ! I have installed Cygwin on Vista -- but was unable to install SSH server on it. ssh-host-config returns an error no matter what I do. Diabling UAC doesn't help. Here is what I get when I try to setup SSH on Vista: $ ssh-host-config chmod: changing permissions of `/etc': Permission denied setfacl: Permission denied chmod: changing permissions of `/var/log': Permission denied setfacl: Permission denied Are you running with elevated Administrator permissions? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/