Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrew DeFaria
On 01/23/2012 03:02 AM, Andrey Repin wrote: Greetings, Andrew DeFaria! On 1/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. PuTTY using it's own format for SSH2 keys. As explained in help file. That's another thing about these one offs - they

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 1:57 AM, Corinna Vinschen wrote: On Jan 22 16:30, Andrew DeFaria wrote: On 1/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i openssh_key I tried this. It didn't

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Corinna Vinschen
OpenSSH accept these multiline keys? $ man sshd I think the problem is that my home directory is on a file server and that file server is not playing nice. By this I mean: Ltsdo-adefaria:touch foo Ltsdo-adefaria:ls -l foo -rw-r--r-- 1 adefaria clearusers 0 Jan 23 10:59 foo Ltsdo

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrey Repin
Greetings, Andrew DeFaria! What feature does putty have that I need? A GUI dialog box that I need to fill out to connect to a system? No, you don't need a GUI dialog box to connect to your system with PuTTY. Just invoke it with putty.exe -ssh username@address It'll use default session

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrey Repin
Greetings, Andrew DeFaria! I believe that PuTTy is SSH2, while Cygwin is OpenSSH. PuTTY using it's own format for SSH2 keys. As explained in help file. That's another thing about these one offs - they invent there own ways of doing things making them different and not compatible with already

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Len Giambrone
That looks like an SSH2 key, not an OpenSSH key. I downloaded puttygen to see exactly what you see. And after you load a key (generate one) right at the top it says: Public key for pasting into OpenSSH authorized_keys file: _key here_ For example, here is what it says for the key I just

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrew DeFaria
accept these multiline keys? $ man sshd Could you be a bit more vague! ;-) Look, the public key that puttygen saves looks like the above. It's multilined. That's why I asked Does OpenSSH accept these multiline keys. You could answer that question but instead you give me a cryptic reference

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 11:38 AM, Andrey Repin wrote: Greetings, Andrew DeFaria! What feature does putty have that I need? A GUI dialog box that I need to fill out to connect to a system? No, you don't need a GUI dialog box to connect to your system with PuTTY. Just invoke it with putty.exe -ssh

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 11:59 AM, Len Giambrone wrote: That looks like an SSH2 key, not an OpenSSH key. I downloaded puttygen to see exactly what you see. And after you load a key (generate one) right at the top it says: Public key for pasting into OpenSSH authorized_keys file: _key here_ For example,

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Len Giambrone
Well, try adding the key to authorized_keys on a box where you have ssh working and see if it works. If not, you know you have a key problem. If so, you know you have a permissions problem. -Len On Jan 23, 2012, at 3:40 PM, Andrew DeFaria wrote: On 1/23/2012 11:59 AM, Len Giambrone

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 12:45 PM, Len Giambrone wrote: Well, try adding the key to authorized_keys on a box where you have ssh working and see if it works. If not, you know you have a key problem. If so, you know you have a permissions problem. Good approach. Tried it. It worked! More evidence that this

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-22 Thread Len Giambrone
. Also keep an eye on nearby discussion regarding SSHD issues. It may be your case too. I will check when I get back into work (don't run Windows nor PuTTY at home to check things) but I thought Cygwin's sshd logs to /var/log/sshd.log. Otherwise why would I have a file there at all? -- Andrew

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-22 Thread Andrew DeFaria
On 01/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i openssh_key If this is true then it kinda kills the ease of use thing. It's hard enough trying to tell somebody to use

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-22 Thread Andrey Repin
the two. The PuTTY help file, chapter 8.2.12 Dealing with private keys in other formats. Check Windows event log. Though, it's obvious. Also keep an eye on nearby discussion regarding SSHD issues. It may be your case too. I will check when I get back into work (don't run Windows nor PuTTY at home

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-22 Thread Andrew DeFaria
On 1/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i openssh_key I tried this. It didn't work. Same error as before. Read 8.2.12 of the Putty help file - had no idea there was a

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrey Repin
Greetings, Andrew DeFaria! Now putty does work but I like having pre-shared keys with ssh sessions. But I can't seem to get Putty's PuttyGen generated ssh keys to work with Cygwin's sshd. Then you're doing something wrong. http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter8.html

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrew DeFaria
On 01/21/2012 04:39 AM, Andrey Repin wrote: http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter8.html#pubkey http://the.earth.li/%7Esgtatham/putty/0.58/htmldoc/Chapter8.html#pubkey states to basically use PuttyGen to generate the key then copy and paste it into your ~/.ssh/authorized_keys

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrew DeFaria
On 1/21/2012 4:39 AM, Andrey Repin wrote: What key type you generate? How do you save both parts of the key? You said you copied public key, did you saved private key as well? Or you just assumed it was saved somewhere automatically? -- WBR, Andrey Repin (anrdae...@freemail.ru) 21.01.2012,

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrey Repin
Greetings, Andrew DeFaria! What key type you generate? How do you save both parts of the key? You said you copied public key, did you saved private key as well? Or you just assumed it was saved somewhere automatically? -- WBR, Andrey Repin (anrdae...@freemail.ru) 21.01.2012, 16:36 Sorry for

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrew DeFaria
On 01/21/2012 12:34 PM, Andrey Repin wrote: Ok, now we're talking. There's indeed a tricky part involved, let me try to cover it for you. On puttygen part, it seems you did it right. (Though, saving public key part is only required for ssh servers compliant with RFC4716.) On connection part...

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrey Repin
. Even tried to reproduce the problem, got the same error but /var/log/sshd.log remains empty. Check Windows event log. Though, it's obvious. Also keep an eye on nearby discussion regarding SSHD issues. It may be your case too. -- WBR, Andrey Repin (anrdae...@freemail.ru) 22.01.2012, 07:15

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-21 Thread Andrew DeFaria
in this process I need to convert between the two. Check Windows event log. Though, it's obvious. Also keep an eye on nearby discussion regarding SSHD issues. It may be your case too. I will check when I get back into work (don't run Windows nor PuTTY at home to check things) but I thought Cygwin's sshd logs

Putty and pre-shared keys with Cygwin's sshd

2012-01-20 Thread Andrew DeFaria
I use Cygwin a lot and use ssh a lot. I typically set up sshd on my laptop with Cygwin and enjoy ssh'ing (and scp'ing, etc.) around effortlessly between various Unix/Linux and Cygwin machines. I'd like to show this goodness to others but many people don't bother installing Cygwin or at least

Re: Cygiwn's sshd, 2 tunnels and file transfer fails

2012-01-09 Thread Corinna Vinschen
On Jan 6 14:42, Michael Wiedmann wrote: Given the following test scenario: +---+ +-+ +---+ | Client #1 | | Server (XP/7) | | Client #2 | | - ssh | 1)| Cygwin/sshd | 2), 3) | - ssh | | - httpd

Cygiwn's sshd, 2 tunnels and file transfer fails

2012-01-06 Thread Michael Wiedmann
Given the following test scenario: +---+ +-+ +---+ | Client #1 | | Server (XP/7) | | Client #2 | | - ssh | 1)| Cygwin/sshd | 2), 3) | - ssh | | - httpd

Installing sshd on Windows 2008 R2 in a domain

2011-12-22 Thread RITTER, Philippe
Hello, New fresh server. I'm trying to install sshd with all the latest release of cygwin. But when I what to connect as a domain user, I get only this error in the event log : Sshd: PID 3212: fatal: seteuid 10500: Permission denied I have googled all this afternoon, but all tips didn't help

Re: Installing sshd on Windows 2008 R2 in a domain

2011-12-22 Thread Jeremy Bopp
On 12/22/2011 10:06 AM, RITTER, Philippe wrote: Hello, New fresh server. I'm trying to install sshd with all the latest release of cygwin. But when I what to connect as a domain user, I get only this error in the event log : Sshd: PID 3212: fatal: seteuid 10500: Permission denied I

Re: Installation problems with home path and sshd

2011-11-28 Thread Michael Lutz
Am 27.11.2011 11:37 schrieb gabier: cygrunsrv: Error starting a service: StartService: Win32 error 1069: (Following sentence translated from French) The failure to open a session has prevented the start of the service. Open the properties of the service and enable Allow service to interact

Re: Installation problems with home path and sshd

2011-11-28 Thread Andy Koppe
On 27 November 2011 10:37, gabier wrote: I got sshd to work between a Windows 7 computer and a FreeNAS/FreeBSD server, and it works well now, thanks to you here. Now I try to implement the same thing on a Vista laptop which is in the same home network. I installed the same Cygwin, following

Re: Installation problems with home path and sshd

2011-11-28 Thread gabier
contains @echo off C: chdir C:\cygwin\bin bash --login -i Should I make mintty call the same bat file ? :) gabier -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32878103.html Sent from the Cygwin list mailing list archive at Nabble.com

Re: Installation problems with home path and sshd

2011-11-28 Thread gabier
!!! :) Gabier -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32878115.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com

Installation problems with home path and sshd

2011-11-27 Thread gabier
Hi everybody, I got sshd to work between a Windows 7 computer and a FreeNAS/FreeBSD server, and it works well now, thanks to you here. Now I try to implement the same thing on a Vista laptop which is in the same home network. I installed the same Cygwin, following the same howto

Re: Installation problems with home path and sshd

2011-11-27 Thread Marc Girod
marc /etc/passwd marc:unused:1000:513:U-sartre\marc,S-1-5-21-1848142070-2449128644-2827604881-1000:/home/marc:/bin/bash ~ echo $HOME /home/marc Marc -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32877389.html Sent from the Cygwin

Re: Installation problems with home path and sshd

2011-11-27 Thread Marc Girod
marc /etc/passwd marc:unused:1000:513:U-sartre\marc,S-1-5-21-1848142070-2449128644-2827604881-1000:/home/marc:/bin/bash ~ echo $HOME /home/marc Marc -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32877390.html Sent from the Cygwin

Re: Installation problems with home path and sshd

2011-11-27 Thread Marc Girod
~ echo $HOME /home/marc Marc -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32877391.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ

Re: Installation problems with home path and sshd

2011-11-27 Thread Marc Girod
~ echo $HOME /home/marc Marc -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32877392.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ

Re: Installation problems with home path and sshd

2011-11-27 Thread Marc Girod
~ echo $HOME /home/marc Marc -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32877393.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ

Re: Installation problems with home path and sshd

2011-11-27 Thread gabier
, the user name is in the computer name, so the grep command was not effective and I got all users listed. I noticed the following entry. sshd unused 1002 513 sshd privsep,U-PC-de-Josette\sshd,S-1-5-21-81082327-430422718-1981534784-1002 /var/empty /bin/false Does it seem also correct ? If not it could

Re: Installation problems with home path and sshd

2011-11-27 Thread Marc Girod
gabier wrote: So it seems quite correct. ... I noticed the following entry. ... Does it seem also correct ? If not it could explain my sshd problems ? Yes: your home seems correct. I didn't install sshd on my PC so that I cannot comment your sshd account, but it doesn't seem wrong

Re: Installation problems with home path and sshd

2011-11-27 Thread gabier
Marc Girod wrote: Yes: your home seems correct. yes, but I do not know why my console does not open in the home directory. Maybe there is console config file somewhere ? Marc Girod wrote: I didn't install sshd on my PC so that I cannot comment your sshd account, but it doesn't seem

Re: Can't get sshd to work

2011-11-06 Thread gabier
a typographical error, but not the one you guessed. It was a Gabriel/gabriel problem due to windows pecularities. Anyway, it works now Thank you for considering my problem :) gabier -- View this message in context: http://old.nabble.com/Can%27t-get-sshd-to-work-tp32779981p32788675.html Sent from

Re: Can't get sshd to work

2011-11-05 Thread S. Cowles
On Fri, 4 Nov 2011, gabier wrote: $ssh gabriel@freennas Password etc... Welcome... OK $scp gabriel@192.168.1.103:/cygdrive/E/gabriel/testfile.txt ~/gabriel/testfile.txt Now the connection is established but there is a password problem Permission denied, please try again. Permission denied,

Can't get sshd to work

2011-11-04 Thread gabier
Hi everybody, First post here, I am a Cygwin newbie. I try to implement ssh connectivity between my Windows 7 desktop and a FreeBSD/FreeNAS server. Openssh shell commands seem to work, but sshd is not running and thus network commands issued from the server abort because of connection refused

Re: Can't get sshd to work

2011-11-04 Thread Ken Brown
On 11/4/2011 8:17 AM, gabier wrote: Hi everybody, First post here, I am a Cygwin newbie. I try to implement ssh connectivity between my Windows 7 desktop and a FreeBSD/FreeNAS server. Openssh shell commands seem to work, but sshd is not running and thus network commands issued from the server

Re: Can't get sshd to work

2011-11-04 Thread gabier
Ken Brown-6 wrote: On 11/4/2011 8:17 AM, gabier wrote: Hi everybody, First post here, I am a Cygwin newbie. I try to implement ssh connectivity between my Windows 7 desktop and a FreeBSD/FreeNAS server. Openssh shell commands seem to work, but sshd is not running and thus network

Re: Can't get sshd to work

2011-11-04 Thread Jeremy Bopp
On 11/4/2011 08:58, gabier wrote: Ken Brown-6 wrote: On 11/4/2011 8:17 AM, gabier wrote: Hi everybody, First post here, I am a Cygwin newbie. I try to implement ssh connectivity between my Windows 7 desktop and a FreeBSD/FreeNAS server. Openssh shell commands seem to work, but sshd

Re: Can't get sshd to work

2011-11-04 Thread gabier
seem to work, but sshd is not running and thus network commands issued from the server abort because of connection refused. The sshd windows service is automatically started at windows startup, but it is not running. If I start the service by Windows command, it starts and stops immediately

OpenSSH - sshd logon failure

2011-10-01 Thread gsingh93
I had set this up a while ago on a different computer, but I can't get it running now. I've followed the directions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html and I'm getting the following error. Gulshan@GSJK-PC ~ $ cygrunsrv -S sshd cygrunsrv: Error starting a service: StartService

Re: sshd win2003 CYGWIN_NT-5.2 1.7.7(0.230/5/3)

2011-08-31 Thread Larry Hall (Cygwin)
On 8/26/2011 11:08 AM, Drew Patten wrote: # ls -ld /var/empty drwxr-xr-x+ 1 cyg_server root 0 Mar 9 14:39 /var/empty # ls -ld /etc/ssh* -rw-r--r-- 1 root 1555 Aug 26 07:56 /etc/ssh_config -rw--- 1 cyg_server None 668 Mar 9 14:39 /etc/ssh_host_dsa_key -rw-r--r-- 1 cyg_server

sshd win2003 CYGWIN_NT-5.2 1.7.7(0.230/5/3)

2011-08-26 Thread Drew Patten
Hello Having an issue with Cygwin and sshd service starting.  This was working at one point and these machines were handed off to QA and now when deploying templates from said machine the Cygwin permissions seemed to be fubar'd.  When running Cygwin with any account we have a # prompt instead

Re: SSHD Issue Windows 2003 64 bit

2011-08-23 Thread Gary
installation where you only install Cygwin once? * OpenSSH is one of these installations.  You are virtually guaranteed  of a non-working 'sshd' if you install this 3rd party app.  If  you want to use Cygwin's 'sshd', don't install OpenSSH.  If you  prefer to use OpenSSH, install

Re: SSHD Issue Windows 2003 64 bit

2011-08-23 Thread Larry Hall (Cygwin)
that installation or remove the install directory from your path. * You have installed Cygwin multiple times on this machine. Can you create a new installation where you only install Cygwin once? * OpenSSH is one of these installations. You are virtually guaranteed of a non-working 'sshd' if you

Re: SSHD Issue Windows 2003 64 bit

2011-08-22 Thread Larry Hall (Cygwin)
for you. 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service:OpenService: Win32 error 1060:The specified service does not exist as an installed service. 'net start sshd' -- the service name is invalid. More help is available by typing NET HELPMSG 2185. Not surprising since 'ssh-host

Re: SSHD Issue Windows 2003 64 bit

2011-08-22 Thread Gary
Typing 'set -x' into the 'bash' shell before running the above might provide some helpful debugging feedback info for you. 'cygrunsrv -S sshd'  -- cygrunsrv: Error starting a service:OpenService:  Win32 error 1060:The specified service does not exist as an installed service. 'net start sshd

Re: SSHD Issue Windows 2003 64 bit

2011-08-22 Thread Larry Hall (Cygwin)
directory from your path. * You have installed Cygwin multiple times on this machine. Can you create a new installation where you only install Cygwin once? * OpenSSH is one of these installations. You are virtually guaranteed of a non-working 'sshd' if you install this 3rd party app

Re: SSHD Issue Windows 2003 64 bit

2011-08-19 Thread Gary
I've re-installed cygwin on a fresh virtual machine (offline install) and have tried running: 'ssh-host-config' -- still no echo from the terminal 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service:OpenService: Win32 error 1060:The specified service does not exist as an installed service

Re: SSHD Issue Windows 2003 64 bit

2011-08-19 Thread Gary
I've re-installed cygwin on a fresh virtual machine (offline install) and have tried running: 'ssh-host-config' -- still no echo from the terminal 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service: OpenService: Win32 error 1060:The specified service does not exist as an installed

Re: SSHD Issue Windows 2003 64 bit

2011-08-16 Thread Gary
Sounds good I'll take those steps; In the meantime my cygwin.bat file looks like this: [at]echo off (note: at sign removed because it was causing false positives on an email filter) CYGWIN=binmode tty ntsec C: chdir C:\Cygwin\bin bash --login -i -- Gary Phelps -- Problem reports:

Re: SSHD Issue Windows 2003 64 bit

2011-08-16 Thread Larry Hall (Cygwin)
On 8/16/2011 6:25 PM, Gary wrote: Sounds good I'll take those steps; In the meantime my cygwin.bat file looks like this: [at]echo off (note: at sign removed because it was causing false positives on an email filter) CYGWIN=binmode tty ntsec C: chdir C:\Cygwin\bin bash --login -i FWIW, you

Re: SSHD Issue Windows 2003 64 bit

2011-08-15 Thread Gary
/bin/mkgroup - l -c /etc/group passwd files looks good now, moved passwd file and re-ran ./000-cygwin-post-install.sh Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe

Re: SSHD Issue Windows 2003 64 bit

2011-08-15 Thread Larry Hall (Cygwin)
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/READ ME.privsep. *** Query: Should privilege separation be used? (yes/no) yes *** Info: Note

Re: sshd on win7 x64

2011-08-15 Thread Larry Hall (Cygwin)
On 8/12/2011 11:49 AM, Alexey Luchko wrote: Hi! I've got back and tried to set up sshd again. Now it tricks me in other way. It fails on seteuid() when I try to connect with a domain user. $ /usr/sbin/sshd.exe -dd snip debug1: temporarily_use_uid: 11135/10513 (e=1003/513) seteuid 11135

Re: SSHD Issue Windows 2003 64 bit

2011-08-15 Thread Gary
\bin On Tue, Aug 9, 2011 at 1:47 PM, Gary gary.mphe...@gmail.com wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local

Re: SSHD Issue Windows 2003 64 bit

2011-08-15 Thread Larry Hall (Cygwin)
On 8/15/2011 7:11 PM, Gary wrote: Yup, that's the output I get on my 32-bit windows machine, I'm not seeing any value in environment for 'TERM'. This should be set to cygwin if you're running from 'cygwin.bat'. Are you referring to PATH?

Re: sshd on win7 x64

2011-08-12 Thread Alexey Luchko
Hi! I've got back and tried to set up sshd again. Now it tricks me in other way. It fails on seteuid() when I try to connect with a domain user. $ /usr/sbin/sshd.exe -dd ... debug1: userauth-request for user domain_user service ssh-connection method publickey debug1: attempt 1 failures 0

Re: SSHD Issue Windows 2003 64 bit

2011-08-12 Thread Gary
./000-cygwin-post-install.sh Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Thorsten Kampe
* Gary (Wed, 10 Aug 2011 15:59:14 -0700) The logs specify: /var/empty must be owned by root and not group or world-writable. That's pretty clear, isn't it? I've tried changing permissions, What exactly did you try? and also looking on the forums for this

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Larry Hall (Cygwin)
from the stock sshd message that specifies 'root' where on Cygwin it really needs to be the user set up to run the service ('LocalSystem' on XP x86 and, typically, 'cyg_server' on everything else). -- Larry _ A: Yes. Q: Are you

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Gary
I've attempted chmod from the terminal and to change the permissions through the standard UI. I've attempted to chown to SYSTEM, but the user does not exist. Here ar e the permission settings for the /var/empty folder: bash-4.1$ getfacl empty # file: empty # owner: Administrator # group:

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Thorsten Kampe
* Gary (Thu, 11 Aug 2011 10:01:58 -0700) I've attempted chmod from the terminal and to change the permissions through the standard UI. Terminal is better. Try again chmod 700 /var/empty. I've attempted to chown to SYSTEM, but the user does not exist. It should: % grep -i system /etc/passwd

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Gary
I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Thorsten Kampe
* Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Gary
Created the passwd and group files from: /bin/mkpasswd -l -c /etc/passwd /bin/mkgroup - l -c /etc/group passwd files looks good now, moved passwd file and re-ran ./000-cygwin-post-install.sh Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate

Re: SSHD Issue Windows 2003 64 bit

2011-08-11 Thread Larry Hall (Cygwin)
-cygwin-post-install.sh That you didn't really need, though it probably did no harm. Can you check if SYSTEM is in '/etc/group' and '/etc/passwd' though still? Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. Did you run ssh

Re: sshd on win7

2011-08-10 Thread Larry Hall (Cygwin)
On 8/8/2011 12:30 PM, Alexey Luchko wrote: Today I tried login to sshd running as windows service. ssh client told: user@localhost's password: Last login: Mon Aug 8 19:21:03 2011 from ::1 /bin/bash: Permission denied Connection to localhost closed. However, /bin/bash exists and the user

Re: SSHD Issue Windows 2003 64 bit

2011-08-10 Thread Gary
, Csaba Raduly rcs...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:47 PM, Gary  wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service

Re: SSHD Issue Windows 2003 64 bit

2011-08-10 Thread Gary
for this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't figure it out.  Let me know, thanks! On Tue, Aug 9, 2011 at 10:27 PM, Csaba Raduly rcs...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:47 PM, Gary  wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've

SSHD Issue Windows 2003 64 bit

2011-08-09 Thread Gary
I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started and then stopped.  Some services stop automatically

Re: SSHD Issue Windows 2003 64 bit

2011-08-09 Thread Csaba Raduly
On Tue, Aug 9, 2011 at 10:47 PM, Gary wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started

Re: sshd on win7

2011-08-08 Thread Alexey Luchko
Hi! Today I tried login to sshd running as windows service. ssh client told: user@localhost's password: Last login: Mon Aug 8 19:21:03 2011 from ::1 /bin/bash: Permission denied Connection to localhost closed. However, /bin/bash exists and the user is able to run it and the privilege

Re: Re: sshd failes allocating /dev/tty[0-9]

2011-08-03 Thread Alexey Luchko
On 21:59, Larry Hall (Cygwin) wrote: On 8/2/2011 7:32 AM, Alexey Luchko wrote: Cygwin Configuration Diagnostics atteched. Maybe crank up the debugging flags to maximum? I assume sshd is still stopped from your last run of sshd -d. If that doesn't sound right to you, you may want

sshd failes allocating /dev/tty[0-9]

2011-08-02 Thread Alexey Luchko
Cygwin Configuration Diagnostics atteched. Maybe crank up the debugging flags to maximum? I assume sshd is still stopped from your last run of sshd -d. If that doesn't sound right to you, you may want to investigate why it's not running now. sshd was stopped while that run because it did

Re: sshd failes allocating /dev/tty[0-9]

2011-08-02 Thread Larry Hall (Cygwin)
On 8/2/2011 7:32 AM, Alexey Luchko wrote: Cygwin Configuration Diagnostics atteched. Maybe crank up the debugging flags to maximum? I assume sshd is still stopped from your last run of sshd -d. If that doesn't sound right to you, you may want to investigate why it's not running now

sshd conflicts with mintty allocating /dev/tty[0-9]

2011-08-01 Thread Alexey Luchko
Hi, everyone! I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config, turned on privilege separation, installed it as a service. 'CYGWIN sshd' service starts normally but it closes connection right after successful login: $ ssh localhost user@localhost's password: Connection

Re: sshd conflicts with mintty allocating /dev/tty[0-9]

2011-08-01 Thread Christopher Faylor
On Mon, Aug 01, 2011 at 06:51:04PM +0300, Alexey Luchko wrote: Hi, everyone! I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config, turned on privilege separation, installed it as a service. 'CYGWIN sshd' service starts normally but it closes connection right after successful

Re: sshd conflicts with mintty allocating /dev/tty[0-9]

2011-08-01 Thread Alexey Luchko
On 01.08.2011 18:51, Alexey Luchko wrote: I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config, turned on privilege separation, installed it as a service. 'CYGWIN sshd' service starts normally but it closes connection right after successful login: $ ssh localhost user

Re: sshd conflicts with mintty allocating /dev/tty[0-9]

2011-08-01 Thread Larry Hall (Cygwin)
On 8/1/2011 12:41 PM, Alexey Luchko wrote: On 01.08.2011 18:51, Alexey Luchko wrote: I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config, turned on privilege separation, installed it as a service. 'CYGWIN sshd' service starts normally but it closes connection right after

cygwin's ssh/sshd and case insensitive user names in windows

2011-07-12 Thread Dmitry Bolshakov
Hi windows user names are case insensitive so I can be bdimych on one computer in domain and Bdimych on another but ssh/sshd consider they are different users so I could not just ssh host1 but need to ssh Bdimych@host1 this was unexpected for me and I spent some time to understand this trick I

Re: OpenSSH: 5791 [main] sshd 9288! spawn_guts: CreateDesktop failed, Win32 error 8

2011-06-15 Thread roadworrier
that use many USER and GDI objects (Photoshop, Illustrator, TOAD (and Parallels for good measure)) and then I was able to ssh in to my server without making any changes to cygwin configuration, and without restarting sshd or anything. - Stefan Carsten.Porzler wrote: Dear Cygwin community

Re: OpenSSH: 5791 [main] sshd 9288! spawn_guts: CreateDesktop failed, Win32 error 8

2011-06-15 Thread Corinna Vinschen
of RAM. However, I went and quit some programs that use many USER and GDI objects (Photoshop, Illustrator, TOAD (and Parallels for good measure)) and then I was able to ssh in to my server without making any changes to cygwin configuration, and without restarting sshd or anything. - Stefan

[SSHD/mkgroup] sshd can't determine user-group relation when AllowGroups is used

2011-06-06 Thread Andrey Repin
Greetings, All! Setting up an OpenSSH server on remote system, I hit an issue with authorization. When setting SSHD to, i.e., AllowGroups RAdmin I get a response from server sshd: PID 540: User anrdaemon from 192.168.56.1 not allowed because none of user's groups are listed in AllowGroups

Re: sshd in a domain

2011-05-05 Thread Robert Jacobson
On 6/24/2010 9:24 AM, Robert Jacobson |cygwin/Example Allow| wrote: I need some help to get sshd working so that when I login using public-key auth to my domain account (which has local administrator privileges), it actually has the Adminisitrator privs. The platform is Windows XP Pro

Re: sshd in a domain

2011-05-05 Thread Corinna Vinschen
On May 5 07:57, Robert Jacobson wrote: Is there some reason (other than the reboot-after-cygwin-update requirement) that ssh-host-config doesn't automatically run cyglsa-config as well? Yes, because it installs a kind of driver into the OS and it's not really necessary in all circumstances.

Re: Volume Shadow Copy in SSHD connection

2011-03-23 Thread Bruno Galindro da Costa
.  seteuid is a system API called by sshd.  You don't have to call any function yourself nor do you have to create an application to do this.  You just have to follow the instructions given under method 2 and/or method 3.  Either set up LSA authentication using the cyglsa-config script, or use

Re: Volume Shadow Copy in SSHD connection

2011-03-22 Thread Corinna Vinschen
On Mar 21 17:56, Bruno Galindro da Costa wrote: Corinna, I´m need to build a small C++ program to exec the vssadmin list writers with another user context at the remote host? Huh? No, of course not. As the document describes, all of the methods are implemented in the Cygwin DLL as part

Re: Volume Shadow Copy in SSHD connection

2011-03-22 Thread Bruno Galindro da Costa
Ok Corinna, thanks for return, but I don´t understand how can I call these methods. Is there a bash functions? bruno.galindro@SUNTECHDHFG1 ~ $ seteuid bash: seteuid: command not found As I understand, these are C / C++ methods available when I include these two libraries on my code header:

Re: Volume Shadow Copy in SSHD connection

2011-03-22 Thread Corinna Vinschen
On Mar 22 09:37, Bruno Galindro da Costa wrote: Ok Corinna, thanks for return, but I don´t understand how can I call these methods. Is there a bash functions? The methods are built into the Cygwin DLL. seteuid is a system API called by sshd. You don't have to call any function yourself nor

Volume Shadow Copy in SSHD connection

2011-03-21 Thread Bruno Galindro da Costa
Hi! Why Volume Shadow Copy Service doesn´t works via sshd connection? If I execute the following command locally (in MS-DOS or Cygwin shell), the bellow result was printed: ### LOCAL: ### C:\vssadmin list writers vssadmin 1.1 - Volume Shadow Copy Service administrative command-line

Re: Volume Shadow Copy in SSHD connection

2011-03-21 Thread Corinna Vinschen
On Mar 21 14:53, Bruno Galindro da Costa wrote: Hi! Why Volume Shadow Copy Service doesn´t works via sshd connection? Maybe the documentation helps: http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview Corinna -- Corinna Vinschen Please, send mails

Re: Volume Shadow Copy in SSHD connection

2011-03-21 Thread Bruno Galindro da Costa
an example, but I need to acomplish the Method 1 and this method needs the NtCreateToken function that I don´t know how to use... 2011/3/21 Corinna Vinschen : On Mar 21 14:53, Bruno Galindro da Costa wrote: Hi!    Why Volume Shadow Copy Service doesn´t works via sshd connection? Maybe

<    5   6   7   8   9   10   11   12   13   14   >