cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.

learn more… | top users | synonyms

2
votes
2answers
3k views

Why is my ssh connection failing?

I'm trying to use SSH authentication between my WinXP desktop running Cygwin and a Mac laptop, and for the life of me, I can't get it working. My public key is on the macbook in the authorized_keys ...
5
votes
3answers
5k views

Using rsync from msysgit for binary files

I have three windows boxes that are connected to a linux box on my network in various ways (one's local to the network, one is a laptop and may or may not be local, and the other is my work desktop). ...
3
votes
3answers
2k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
-1
votes
2answers
135 views

cygwin's xd. what package is it in? [closed]

I am looking for the unix utility xd for Cygwin. What package do I need to install?
1
vote
2answers
2k views

rsync on Windows - permissions in remote folder not set properly

I am having a slight problem. I use rsync (Cygwin) in Window and the files that are synced in my remote folder is not right. rsync -r /cygdrive/c/xampp/htdocs/mysite/* ...
4
votes
1answer
1k views

Shared Cygwin Install

I'm attempting to set up OpenSSH on a bunch of Windows Server 2003 machines in an automated fashion. My goal is to be able to do so using a single version of Cygwin installed on a network drive ...
2
votes
0answers
502 views

SSH on Windows 7/Cygwin periodically fails to resolve hostname

Whenever I run ssh inside of cygwin on Windows 7 I get the error: ssh: Could not resolve hostname ... Non-recoverable failure in name resolution lost connection If I try the same command ...
21
votes
1answer
354 views

Is there a device file that just blocks?

... something similar to /dev/null, but that just blocks all bytes that are written to it? What I need is a trick to hold an arbitrary executable in memory by blocking its output. Pipes don't seem ...
1
vote
1answer
466 views

Cygwin: Run SSH.exe (without cygwin.bat) with a keypair

I have a box I'm trying to create an SSH tunnel to using a keypair without a password. If I run cygwin.exe and generate a keypair without a password using ssh-keygen and put the public key on the ...
1
vote
0answers
512 views

What could cause this ProFTPD directory listing error?

The error I get in Filezilla is "Cannot get directory listing". In Firefox it just keeps on loading and nothing happens. For both clients the same messages appear in proftpd.log. Computer - error ...
0
votes
2answers
91 views

Are there any incompatibility issues when running cygwin sshd on a windows 2003 domain controller?

I am asking for incompatibility here. Safety was already covered in that question.
1
vote
2answers
529 views

How safe is it to run cygwin sshd on a windows 2003 domain controller

I have already installed cygwin (running sshd) on windows 2003 DC several times. But now another admin who is actually responsible for this domain asked my if this is really safe. Edit:: I changed ...
0
votes
1answer
489 views

Having trouble piping between cygwin and sqlcmd

This simple command fails in bash: echo "print 'tsql'" | sqlcmd -E it works correctly in a regular old command prompt. It used to work with previous versions of cygwin. I've also tried inserting ...
6
votes
5answers
6k views

How to run a PowerShell script from Cygwin SSH session?

Hi I have Windows Server 2003 with CopSSH installed on it ( Cygwin + sshd ). W would like to be able to run a PowerShell script via SSH session command and then use it's output. Is there such ...
0
votes
1answer
2k views

Can't run Cygwin/X as administrator on windows 7

When I run Cygwin/X as administrator, I get periodic errors when I try to run, e.g., xterm. I can get around this by running as not administrator, but I've been getting these errors when running exim ...
0
votes
1answer
809 views

cygwin ssh stops after adding user

I'm trying to set up a backuppc client using ssh+rsync via cygwin on Win 7. SSH was working fine. I added the backuppc user then used mkpasswd to add the user to /etc/passwd. Now ssh fails with: ...
1
vote
1answer
256 views

Odd SSH port disconnect

Currently I have ssh set up using openSSH on cygwin. I port forwarded from my router to the computer, and added an exception for port 22 on my windows firewall. I have free AVG which I believe does ...
0
votes
1answer
749 views

rsync ubuntu to windows under cygwin - way to avoid 'invalid argument 22' error?

I'm doing a backup from a ubuntu server to a windows machine running cygwin. I'm using the following command: rsync -avx --timeout=30 --delete-excluded --exclude '.git' ...
0
votes
1answer
306 views

Disable SSH on cwrsyncserver?

I installed cwrsyncserver, the rsyncd.conf makes no mention of ssh and I am not specifying to use ssh when I connect. Yet, the error I get is connection to port 22 refused. My rsyncd.conf is thus: ...
0
votes
1answer
845 views

Trouble with cwRsync on Windows

I have just setup cwRsyncServer on my 2008 server, it is permitted by the firewall, and I have configured a module with write access. The rsync server is running and listening. I have cnfigured an ...
0
votes
2answers
131 views

Rsync problem…filenames

I'm trying to back up users Chrome Sessions with Rsync with the following command: rsync -e "ssh -i new.key" -r --verbose -tz --stats --progress --delete \ ...
0
votes
1answer
661 views

CVSROOT problem because of username string

I have always been SVN user but currently I have to use CVS as the source repository. I am quite new to CVS and really got confused many a times (reason being I always tried to access CVS like SVN !) ...
0
votes
3answers
2k views

Autostart Cygwin on Windows boot and run a cygwin command

Sometimes my Windows server reboots at night to install new updates. Then the next day I find out that my cygwin instance has been stopped. What I want is on Windows start, also run Cygwin AND run a ...
0
votes
4answers
467 views

which is the recommended way to install sshd in cygwin on windows 7 enterprise

What is the recommended procedure to install sshd on Windows 7 Enterprise ? I have already installed cygwin and openssh on this computer. i'm open to non-cygwin sshd as long as there won't be any ...
1
vote
2answers
721 views

Netcat says 'operation not permitted'

I thought I could easily copy a tgz from a linux box to a windows box (cygwin) by doing this on the linux box: nc -vv -l 4444 < file.tgz And this on the windows box: nc -vv 10.13.13.2 4444 > ...
0
votes
1answer
904 views

Cygwin sshd service starts but only produces errors

I know this has been asked before, but I looked at the other questions and they didn't help, so here goes... I installed cygwin (only OpenSSH and whatever else it automatically chose for it). I ran ...
-1
votes
1answer
73 views

Cygwin find integration

I would like to find all NON read-only files in my directory using cygwin's find command. Is it possible ?
0
votes
2answers
2k views

Can't connect to windows via ssh

I downloaded cygwin and ran ssh-host-config. I'm trying to connect using ssh -l micah myserver it then says micah@myserver's password: I enter the same password I use to log into windows and it ...
0
votes
1answer
359 views

Cygwin Scp or Rsync permissions

Why is it that whenever I Scp or Rsync files from my Windows machine using cygwin to my Ubuntu server. The copied files will all have no permissions. Rsync doesn't even work because it cannot copy ...
1
vote
1answer
306 views

How do I arrange for an ssh key with a passphrase to be loaded and available in ssh-agent to other processes on Windows startup?

I'm setting up automated deployment of applications in a Windows environment from continuous integration (TeamCity build-agents), and using cygwin + openssh to perform the remote-execution part of ...
0
votes
1answer
357 views

rsync doesn't use delta transfer on first run

I'm trying to synchronize a large local directory (with a batch file using rsync 3.0.7 on Cygwin, Windows 7 x64, 30k files, 200gb size) to a remote server (Debian x64 with kernel 2.6, rsyncd 3.0.7) ...
0
votes
1answer
1k views

Improper output in SSH session on OSX using FreeSSHd on Windows with cygwin bash/sh shell

I am testing out running an SSH server on a local Windows VM. I have installed FreeSSHd and set the command shell to "c:\cygwin\bin\sh --login -i" (bash as well) with "Use new console engine" ...
2
votes
3answers
2k views

ssh_exchange_identification: Connection closed by remote host [duplicate]

Possible Duplicate: ssh_exchange_identification: Connection closed by remote host I see this is a common error but I have read through many questions and answers and nothing of it seems to ...
4
votes
3answers
2k views

Get exact size in bytes of a disk & partitions in windows

I'm using dd (under cygwin) to copy a shadow image of a disk in windows. Shadow copy will only give me a partion, so what I am doing is: 1) using dd to grab the disk header (32k on Win2003) 2) using ...
1
vote
2answers
864 views

nfs server on cygwin slow

The setup: We run an instance of cygwin nfsd on a Windows 2008 Server (Xeon 3,2 GHz). There are several Sun Solaris and SunOS machines accessing the shares. This is the exports file: /disk3 ...
0
votes
2answers
469 views

remotely running find -exec options

I'm trying to setup a bash process for deploying my django project onto a linux server. Through cygwin, I'm running a script that is calling scp to copy my files over. Is there a similar command to ...
0
votes
4answers
479 views

Why dd finishes instantly when pipelining to cat?

I start bash on Cygwin and type: dd if=/dev/zero | cat /dev/null It finishes instantly. When I type: dd if=/dev/zero > /dev/null it runs as expected and I can issue killall -USR1 dd to see ...
1
vote
2answers
330 views

cd in bash script

I work in a windows environment but prefer to use bash in cygwin as my shell. To cd to a lengthy path I am given in windows form I type: cd $(cygpath -u 'Z:\Some\long\windows\path') ..pasting the ...
1
vote
1answer
2k views

Access NFS share from cygwin?

We have a Windows 2003 Server on which we have installed Microsoft's Services for UNIX, and we have mounted a few NFS shares that contain shared resources that we need to access from this box. When I ...
0
votes
2answers
1k views

cygwin, PATH problem?

I run a .ksh containing a awk call. awk.exe and his shortcut awk is in /bin/awk, /bin is in the PATH environment variable. But when I try to launch awk, I have this error message : bash: ...
0
votes
1answer
2k views

ksh not find by bash in my cygwin installation but present in the folder bin/ksh with a lnk extension

I have installed cygwin on my windows XP desktop on C:. It works fine except when I launch a .ksh. I had this error message : bash: ./xxx.ksh: /bin/ksh : Bad interpreter:No such file or directory I ...
3
votes
1answer
1k views

Cgywin - issue setting /var permissions for ssh

I am having trouble to install ssh via Cygwin on my latest new Windows machine with the latest Cygwin version. *** Warning: The permissions on the directory /var are not correct. *** Warning: They ...
2
votes
2answers
2k views

How to run a cygwin executable with Windows XP TaskScheduler without opening a terminal?

Using Windows XP Task Scheduler, I've scheduled the execution of a cygwin program (C:\cygwin\bin\svn.exe update). It is working fine, but when it executes, a terminal window titled svchost.exe opens. ...
0
votes
2answers
498 views

cygwin permissions for executing .bat files

I have a .bat file, which contains the following contents ... jar cfm myjar.jar manifest.txt *.class ... Which executes well under windows command prompt, but when executed under cygwin, I get the ...
2
votes
1answer
4k views

mget: filename.xlsx: file already existst and xfer:clobber is unset

I am getting this: mget: filename.xlsx: file already existst and xfer:clobber is unset error when I try to download the contents of my ftp server. Basically it is setup using cygwin. We recently ...
0
votes
1answer
535 views

Pubkey authentication with SSH server running on Cygwin - session closes immediately

I am connecting from Linux via SSH to a Windows machine running SSH in Cygwin. I authenticate with a certificate. The session opens but closes immediately thereafter. With password authentication it ...
0
votes
1answer
526 views

On Windows, how do I set up sshd such that I can ssh in via key-based authentication from another windows box?

I am working to set up some deployment automation, and one of the things I'm trying is to use Ruby's Capistrano to remotely execute commands over ssh. I have used cygwin's openssh to run sshd on the ...
1
vote
3answers
719 views

Native Symlink Windows 2008 r2 with cygwin

Is it possible for me to create an ssh session on windows which then does some folder/file manipulation and then creates a NATIVE windows symlink. i.e. a symlink that will be recognised by IIS and ...
1
vote
4answers
14k views

CYGWIN sshd “port 22: Connection refused”

Googled this to death, cannot resolve. I cannot connect to my CYGWIN sshd from another machine. Netstat shows connection is established. Can connect locally, no problem. [oracle@aserver ~]$ ssh ...
0
votes
2answers
518 views

Cygwin User/home folder non existant

I'm a novice at cygwin/linux administration so please be patient with my ignorance: I'm trying to change my .bashrc profile and setup (.gitconfig ) I can't seem to find my home folder. My hypothesis ...