Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k 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 ...
Jason Bateman's user avatar
0 votes
2 answers
169 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 \ '/cygdrive/c/Users/jay/AppData/Local/Google/...
Jay White's user avatar
  • 149
0 votes
4 answers
653 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 ...
anjanb's user avatar
  • 151
0 votes
2 answers
3k 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: /usr/bin/awk:...
jayjaypg22's user avatar
0 votes
1 answer
2k 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 ...
Peter Mounce's user avatar
  • 1,273
0 votes
1 answer
192 views

Cygwin - Overriding packaged installs

Running python from my terminal currently uses the packaged Cygwin install; $ which python /usr/bin/python But I want it to point at; C:\Python27 in other words; /cygdrive/c/Python27/python I ...
gav's user avatar
  • 503
0 votes
2 answers
7k views

bind(): Operation not permitted on Nginx

I just installed Nginx on my machine to run Nginx. After install and config. I try to run nginx and got this problem: bind() to 0.0.0.0:8843 failed (1:Operation not permitted) I have no idea what ...
DucDigital's user avatar
  • 1,541
0 votes
1 answer
365 views

Cygwin Rxvt issue

With a recent version of CYGWIN (installed yesterday) on Windows 7, we are having a weird problem getting rxvt to work. We used to use the following batch file: @echo off C: chdir C:\cygwin\bin ...
SvrGuy's user avatar
  • 1,012
0 votes
1 answer
196 views

Windows XP running as OpenSSH server through cygwin. Can I remotely execute MS-DOS commands?

I tried typing cmd or cmd.exe at the bash line which then takes to the DOS shell. But from there I tried executing something like trial.bat which contains some lines to access a series of executable ...
hatmatrix's user avatar
  • 115
0 votes
1 answer
872 views

Connecting Linux and Windows Amazon EC2 instances through SSH

I have reserved a Linux and a Windows instances in Amazon EC2. I would like to access between the two through SSH. I have installed cygwin (with openssh package) in the Windows instance. How should ...
user avatar
0 votes
1 answer
2k views

SSH from Windows hangs when using insert mode in vim on Dreamhost: Why?

I have SSH set up using Cygwin on Windows XP SP3 to Dreamhost. It works fine except that when I edit a file with vi and use insert mode (eg press 'i' and type in some stuff). I then try and hit escape ...
cletus's user avatar
  • 10.1k
0 votes
3 answers
438 views

cygwin termcap issue running top?

When logging in to a Debian Sarge install from cygwin, if I run top the output is "double spaced" for lack of a better word. The end result is that I can see the last few lines for the last few ...
Kyle's user avatar
  • 1,879
0 votes
0 answers
92 views

sshpass/rsync fails when not redirecting stdout etc

I am having a weird issue and I just can't seem to find the cause and a solution. I am on win11/cygwin (sshpass 1.06,rsync 3.2.7) I call: /usr/bin/sshpass -p $sshpasswd /usr/bin/rsync --dry-run -...
Dominik's user avatar
  • 11
0 votes
0 answers
74 views

Cygwin SSHD AuthorizedKeysCommand

I'm trying to setup cygwin sshd to call a script via the AuthorizedKeysCommand. I can see the error messsage in the Windows EventViewer stating that: sshd: PID 5178: error: Unsafe ...
gsandorx's user avatar
0 votes
0 answers
702 views

rsync-bpc: connection unexpectedly closed after 40GB have been received

After starting a backup it goes for some time before failing, which is what I'm finding hard to understand. I created a fresh test backup that worked flawlessly, it was just a couple of files, but for ...
dillonbrannick's user avatar
0 votes
0 answers
432 views

Cygwin and Kerberos for GSSAPI

I'm trying to setup a Cygwin instance running in Windows Server 2019, joined to a domain. OpenSSH Server is successfully installed in Cygwin and working with password method for AD Users. The goal is ...
rgomez's user avatar
  • 153
0 votes
1 answer
378 views

Powershell - Run SCP command from CYGWIN but also expand variables

I need to expand variables before running the SCP command as a result I can't use single quote. If I run the script using double quotes in Powershell ISE it works fine. But doesn't work if I run ...
user630702's user avatar
0 votes
1 answer
4k views

Correct place to store key pairs for SSH authentication with VPS (Cygwin and Linux)

I am using Cygwin on windows 10 to try and ssh into my Linux server for the first time. I have a public and private key pair called whm_rsa and whm_rsa.pub in user/user/.ssh on my local computer. ...
JPB's user avatar
  • 145
0 votes
1 answer
565 views

Why this error when executing MongoDB on Cygwin?

I copied the MongoDB executables1 to my Cygwin's /usr/local/bin directory. However, when I try to execute, I get this opaque error message: $ mongod C:/cygwin/usr/local/bin/mongod.exe: error while ...
boardrider's user avatar
0 votes
1 answer
1k views

Make Cygwin installer `setup.exe` authenticate with username and password for proxy automatically

There is --proxy option for Cygwin installer setup.exe, but it only accepts address:port. How to provide username and password if the proxy requires authentication unattendedly? In manual scenario, ...
uvsmtid's user avatar
  • 907
0 votes
1 answer
502 views

cygwin64 on Windows server, syslog data prints out all in one line

I am trying to automatically format syslog data from cygwin64 to print out with line breaks at the end of each line, so I can do some parsing later on. However, I don't see any configs that could ...
M. Barbieri's user avatar
0 votes
1 answer
464 views

How to allow reverse ssh-tunnel connection to my host on demand?

I've set up a reverse ssh-tunnel (no autossh is used right now, but I might be using it)from remote laptop to my pc, but I don't trust much the remote host, as there might be different people using it ...
rightaway717's user avatar
0 votes
1 answer
2k views

rsync maintaining ownership and permissions between linux and windows ssh

I know this is is an extensively documented subject and despite the pages and pages of information ive found on it online I still cant find a definitive answer to this question so please bear with me. ...
Lunakyra's user avatar
0 votes
0 answers
165 views

How do I run dnscmd via ssh?

I am looking for a working solution that would allow me to run dnscmd and other similar commands that do require you to logged in into a domain via SSH, so I can execute them freely from my machine (...
sorin's user avatar
  • 8,236
0 votes
0 answers
922 views

Can't SSH to Windows Server 2012 R2 Essentials

I have setup OpenSSH on a Windows Server 2012 R2 Essentials machine and have sshd running as a service. I have opened up incoming traffic in the firewall rules on port 22 for TCP. I generated keys ...
Zack Macomber's user avatar
0 votes
1 answer
187 views

Freshly cloned mirrored drive with Acronis true image and rsync wrongly detects changed files, windows rsync 3.0.7 cygwin windows

Is there a way to help rsync better detect that files are identical? I did a fresh full disk "clone" mirror with Acronis TrueImage and after did an rsync to test and it detected a bunch of files as ...
htfree's user avatar
  • 481
0 votes
1 answer
1k views

special permissions set to deny on new subfolders of a folder I own with Full Control

I have rsnapshot 1.3.1 installed under cygwin64 (setup 2.870, dll 1.7.35) on win2012r2, all the latest as of today. I configured it to take a single file, current.7z, and make a rotating backup of it....
Kev's user avatar
  • 984
0 votes
1 answer
2k views

SSHD on Cygwin: can't connect as "root" from a Linux box

I'm trying to connect a Linux (CentOS 6.5 x64) server and another server, a Windows Server 2008 R2 running Cygwin, and transfer files daily via SSHD from Linux to Windows, and I will use public keys ...
jiyamesu's user avatar
0 votes
0 answers
867 views

"Jailed" user can access `/dev` directory under SFTP

I set up a jail for a remote user under SSH (Cygwin), and he is jailed at /jail/user/home/user. When he connects with some SFTP client (ex: Filezilla), he can access his /home/user folder and control ...
jiyamesu's user avatar
0 votes
0 answers
213 views

"Lock" a certain user to a certain user in SSH (Cygwin)?

I need to give access to a remote user via SSH (Cygwin) in a Windows 2008 R2 box, but the user must see only his /home folder, and cannot read, write or list contents from another folder. The user ...
jiyamesu's user avatar
0 votes
1 answer
1k views

Cygwin OpenSSH Server Error 1062

I tried to setup an OpenSSH Server on my Windows machine. I installed cygwin and the openssh package. Then configured "ssh-host-conf" an *** Query: Overwrite existing /etc/ssh_config file? (yes/no)...
user2927980's user avatar
0 votes
1 answer
2k views

Cygwin mkpasswd giving The format of the specified domain name is invalid

While trying to finish Cygwin config and running mkpasswd -l -d and mkgroup, it fails with the following error $ mkpasswd -l -u sorins -d /etc/passwd sorins:unused:1012:513:sorins,U-JIRA\sorins,S-1-5-...
sorin's user avatar
  • 8,236
0 votes
1 answer
689 views

Copssh, Chrootdirectory and spurious cygwin directory

I have limited sftp users to their home directory using this answer https://serverfault.com/a/201879/65157. It all seems to be working fine. I only have 1 query though. When I ever issue an 'ls' ...
dagda1's user avatar
  • 247
0 votes
1 answer
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 ...
Ron Romero's user avatar
0 votes
1 answer
2k 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 !) ...
jatanp's user avatar
  • 113
0 votes
1 answer
1k 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 ...
Sagar's user avatar
  • 544
0 votes
1 answer
568 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 ...
verhogen's user avatar
  • 333
0 votes
1 answer
4k 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 '...
jayjaypg22's user avatar
0 votes
1 answer
738 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 ...
Tomas Kohl's user avatar
0 votes
1 answer
422 views

Can't remove tunnel created by Cygwin

I need to make a tunnel from Linux to my Windows 7 machine. I have been able to get it to work with Cygwin, but it's not possible to remove the tunnel later. To create the tunnel, I type: ssh -f -N ...
User1's user avatar
  • 2,556
0 votes
1 answer
2k views

How to start Cygwin's NFS server in read-write mode?

Installed Cygwin's NFS server. It works. But I can't make it allow writing to the filesystem. Why does it fail? Server: $ cat /etc/exports #/ 10.99.98.2(rw,no_root_squash) /cygdrive/c/foranevia *(rw,...
Vi.'s user avatar
  • 841
0 votes
2 answers
1k 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 ...
user avatar
-1 votes
1 answer
1k views

SSH connecting on port 22 but times out on 443 [closed]

I'm trying to connect to an ssh sever running on cygwin on my home computer through putty on my laptop, this works fine both inside my network and outside on port 22 but on port 443 it times out. ...
CMCK123's user avatar
-1 votes
3 answers
1k views

How to replace a certain path from the PATH variable? [closed]

I am using Cygwin and would like to modify the following PATH via bash shell: /usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VSTSDB/Deploy:/cygdrive/c/Program ...
Danijel's user avatar
  • 256
-1 votes
1 answer
12k views

Cygwin sshd won't start

Getting the below error msg while starting the cygwin services on windows 2003 server , the SSHD file is showing 0KB. $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service ...
vikas's user avatar
  • 359
-1 votes
2 answers
440 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?
unixman83's user avatar
  • 1,952
-1 votes
2 answers
204 views

cygwin bash getting last modified userid of a specific file

I am trying to get the username of the person who modified a specific file: stat -c "%u" somefilename.name this script returns a number like 544 what does that mean? i was hoping to get the ...
Alex Gordon's user avatar
-1 votes
1 answer
86 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 ?
m_vitaly's user avatar
  • 139
-2 votes
4 answers
32k views

How to install cygwin additional packages?

how to install the additional packages like gcc, gcc-objc, gcc-g++, make, patch, xorg-x11-base, xorg-x11-devel. The basic package is installed.
Edward's user avatar
  • 25
-2 votes
1 answer
992 views

Error starting cygwin sshd on Windows 8 [closed]

After installing sshd via cygwin on Windows 8 on a system that is not on a domain, the service will not start but gives an error such as: Error 1068: The dependency service or group failed to start. ...
gymbrall's user avatar
  • 169