Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
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
-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
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,216
0 votes
0 answers
916 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
2 votes
1 answer
2k views

CYGWIN SFTP not working suddenly. Connection closed after authentication

I'd installed CYGWIN for SFTP purpose few weeks ago in a few Win 2003 R2 x64 server and initially all of them are working without problem. However this week problem rises where users are not able to ...
nlks's user avatar
  • 132
0 votes
4 answers
3k views

Strange behavior of SCP through .sh file

I'm hitting a strange issue with SCP on cygwin, scp $HOME/deploy.sh user@host:/tmp works fine, files get copied to the remote system. But the same command inside a test.sh won't work. I can see ...
gkns's user avatar
  • 111
1 vote
0 answers
81 views

Cygwin nested groups

I've got cygwin(latest release) running on a 2012 Windows server and having problems with adding domain grups. I succesfully dealt with domain users adding them to /etc/passwd as needed. For domain ...
yaro's user avatar
  • 11
1 vote
0 answers
273 views

Cygwin: Obtain comment field from Active Directory with mkpasswd

Running cygwin on W7x64. Since a generated /etc/passwd file is static, it has to be performed occasionally when new employees are hired. It polls Windows AD, and writes the passwd file. In the past, ...
tralston's user avatar
  • 165
0 votes
1 answer
186 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
8 votes
4 answers
6k views

Cygwin startup error /usr/bin/id: cannot find name for group ID

I use cygwin at work to get quick access to unix tools and as an ssh terminal. I recently installed some new Cygwin packages and now when I try and open a terminal it is very slow and gives the ...
Greg Bray's user avatar
  • 5,670
2 votes
1 answer
204 views

Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)

I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the ...
Sai Chaitanya's user avatar
-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
-2 votes
1 answer
991 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
0 votes
1 answer
226 views

cygwin find -ls behaviour like ls [closed]

I use cygwin find with -ls (find . -ls) option to have a list of files with full path. Due to UTF-16 (windows XP in this case) converted to en_UTF-8 under cygwin, special charactere like accent are ...
NeronLeVelu's user avatar
0 votes
1 answer
436 views

How can I flush and/or rotate cronevents?

Can anyone tell me how I can flush / clean / zeroize or better still rotate the contents of cronevents? I need to solve this, because I am attempting to 'productionize' my fileserver instance-pair ...
johnz's user avatar
  • 314
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
2 votes
1 answer
62 views

Any way to centrally administer cygwin updates?

Is there a way to centrally administer cygwin, i.e. run remote updates on multiple boxes from a central 'admin machine'? basic goal: keep sshd up to date on all instances stretch goal: keep ...
user50460's user avatar
  • 325
0 votes
0 answers
866 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
1 vote
1 answer
2k views

Supervisord as Windows Service on Cygwin

I am attempting to run Celery as a Windows Service using Supervisord. I followed the configuration laid out on the Celery site and here. I have set up a virtual environment to run supervisord through ...
Jason Hawkins's user avatar
4 votes
1 answer
3k views

Cygwin hangs/freezes when installing: won't finish downloading packages

Just stays there. Restarting causes the same problem, and changing mirrors doesn't seem to help.
Andy Chase's user avatar
1 vote
1 answer
5k views

SSH Tunnel - Proxy Not Working From Remote Location (Login is working)

I have just set up a Cygwin SSH server and successfully tunneled to it from a remote location. Logging in works but when I point my browser to localhost 8888 (sock 5), all connections are refused. ...
square_eyes's user avatar
5 votes
2 answers
1k views

Cygwin rsyncd sends too many file names

I have rsyncd running as a Windows service, but when I try to access a module and sync from it, I get the files I want, as well as a lot that I do not — because they are not located in that module on ...
courtlandj's user avatar
1 vote
2 answers
12k views

scp using a password on the command line

I am trying to write a script that will deploy a build created on my desktop machine (windows/cygwin) to a machine in my test environment (linux). I would like to use scp to copy the build to the ...
spierepf's user avatar
  • 113
4 votes
1 answer
4k views

OpenSSH server accepts public key then immediately closes the connection without any error message

I am trying to connect to an SSH server I was able to connect to in the past but using different OpenSSH client versions. Starting from a Cygwin OpenSSH_6.6.1, OpenSSL 1.0.1g 7 Apr 2014 client, going ...
Jean Vincent's user avatar
8 votes
3 answers
18k views

Environment variables are unavailable when running scripts over ssh

Suppose I have two hosts: A and B with users a and b. B is Windows machine with Cygwin installed, if this matters. B is configured to be accessed from A through SSH without password (it contains A's ...
Silver's user avatar
  • 83
6 votes
2 answers
3k views

Cygwin Screen and SSH: Utmp slot not found -> not removed

When I use screen on my computer and detach, I am taken back to the command prompt and everything is fine. However, if I SSH into my computer remotely and use screen, when I try to detach I get the ...
rwolst's user avatar
  • 161
12 votes
3 answers
16k views

Why does ssh-host-config create two users in Cygwin on Windows 8.1?

In trying to resolve some issues with using Cygwin + SSH on Windows 8.1, I'd like to know why the ssh-host-config script creates two new accounts configuring OpenSSH from scratch? (Is this necessary?) ...
not2qubit's user avatar
  • 282
1 vote
2 answers
639 views

Download cygwin packages from a predefined list (on Windows 7)

I have a very long list of cygwin packages that I need to download (for various reasons I cannot install directly from the internet, instead I need to download the cygwin packages for later ...
user1186155's user avatar
1 vote
1 answer
2k views

publish over ssh jenkins

I have been working on a small project where need to copy files from one windows machine to another through jenkins in a secure way. I have heard about publish over ssh plugin in Jenkins. I tried to ...
Pravish's user avatar
  • 11
1 vote
0 answers
1k views

ssh server not accepting public/private keys (Cygwin)

I am trying to connect my computer to a ssh server (running on Windows 7) using public/private keys. I have generated the keys and used the necessary permissions for files: chmod 700 .ssh chmod 600 ...
synthesis's user avatar
2 votes
2 answers
5k views

Logging ssh info using syslog-ng daemon in Cygwin

I have setup the syslog-ng daemon using Cygwin in Windows 7. What I want to do is to log all of the ssh failed passwords, etc to /var/log/sshd.log. I tried to do this by adding the following line: ...
synthesis's user avatar
1 vote
1 answer
115 views

Permissions error when using WebPi under Cygwin SSH

Trying to install web package in WebPI via Cygwin SSH (for automation) returns this error: There was an error reading IIS configuration schema from 'C:\Windows\system32\inetsrv\config\schema\'. When ...
SyRenity's user avatar
  • 3,189
3 votes
1 answer
11k views

How to use cygwin to access AWS linux server instance

I am trying to use Cygwin to connect to my Amazon server instance I am new to this Currently i have a USA.pem file located at C:\Users\Vinay\Desktop\Devrath I have installed Cygwin I have used this ...
Devrath's user avatar
  • 149
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
-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
-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
0 votes
1 answer
2k views

Proxy port 80 to 443 with Netcat/nc

I have a Windows server running a Rails application via the Thin ruby gem web server through Cygwin 32 bit. The server only listens on port 443 and uses HTTPS because it is using LDAP authentication ...
user avatar
1 vote
1 answer
15k views

How do I grant select, insert privileges in Postgres on Cygwin?

How do I grant permissions in Postgres? I followed the documentation, however it is not working. $ psql tmadev psql (9.2.4) Type "help" for help. tmadev=# grant all privileges on database tmadev to ...
Chloe's user avatar
  • 1,174
0 votes
1 answer
2k views

How do I upgrade Postgres database in Cygwin?

I updated some Cygwin packages and now I can't start Postgres: $ /usr/sbin/postmaster FATAL: database files are incompatible with server DETAIL: The data directory was initialized by PostgreSQL ...
Chloe's user avatar
  • 1,174
0 votes
1 answer
407 views

Vshadow.exe error in Cygwin, but only over ssh with pubkey auth

I'd like to create a volume shadow copy (vshadow 2.2) from within Cygwin over ssh: $ ./vshadow.exe -p -nw C: (...) - Setting the VSS context to: 0x00000019 Creating shadow set {a5e0883e-9485-4243-...
Kev's user avatar
  • 984
0 votes
2 answers
351 views

Why doesn't rsync over ssh work when placed inside a FOR loop in a batch file?

I've placed the ff. code in rsync.bat: for %%A in (%VAR_REMOTE_HOST%) do ( set VAR_TARGET=%USER%@%%A:%VAR_TARGET_DIR% echo Rsync Source Dir: %VAR_SOURCE% setlocal ENABLEDELAYEDEXPANSION echo ...
Jerome Christopher Geronimo's user avatar
8 votes
3 answers
7k views

Unattended solution to install cygwin and enable ssh server on Windows?

Using Cygwin environment on Windows is a very common solution for automation. I am looking for a script that would automate the cygwin installation and enablement of ssh server. I could try to ...
sorin's user avatar
  • 8,216
2 votes
2 answers
11k views

Cygwin ssh issue: Could not resolve hostname awshost1: hostname nor servname provided, or not known

I'm learning "startup engineering", encountered this error when using ssh alias. Below is the detailed steps (executed in Cygwin windows 8): $ mkdir -p ~/.ssh $ cp ~/downloads/skey.pem ~/.ssh/ $ ...
Shinbo's user avatar
  • 31
0 votes
2 answers
410 views

Red5 can't find Java

I'm setting up a Red5 server on Cygwin I get this /usr/share/red5$ sh red5.sh Running on CYGWIN_NT-6.1-WOW64 Unable to locate Java. Please set JAVA_HOME environment variable. However, I can also ...
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,216
2 votes
1 answer
1k views

How to enable varnish daemon in Cygwin?

I've installed the varnish packages (3.0.2-1 or 2.1.5-1) in cygwin (for local testing of VCL on Win7 64bit) and want to start varnish listening on port 80 but the varnishd isn't available: $ varnishd ...
kidata's user avatar
  • 23
0 votes
1 answer
3k views

cygwin sftp chroot cannot view contents of bound mountpoint

I'm trying to give user2 access only to his home directory and full permissions on /cygdrive/e. I created a Data/ directory within his $home, added a bind directive in /etc/fstab (see below), and ...
rojo's user avatar
  • 131
0 votes
1 answer
1k views

Cygwin X crashing on -multiwindow option

A shot in the dark, but can anyone point me in the right direction? Thought this might be similar to this bug (http://cygwin.1069669.n5.nabble.com/1-9-2-0-Xwin-SIGSEGV-when-font-server-should-be-...
Aaron F.'s user avatar
  • 895