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

learn more… | top users | synonyms

0
votes
1answer
23 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 ...
0
votes
0answers
17 views

Why am I able to SSH locally and start Windows services, but unable to do the same remotely?

I have a Windows Server 2008 R2 virtual machine that is running Cygwin and SSH. I'm able to SSH using my id_dsa key by issuing command ssh svc@IP "hostname;whoami", which returns what I would expect. ...
0
votes
2answers
22 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 ...
1
vote
0answers
8 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 ...
1
vote
0answers
13 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, ...
0
votes
0answers
45 views

How to add a domain user to passwd for OpenSSH in Cygwin?

I have OpenSSH installed on a Windows Server machine (package from MLS Software). I want to add some domain user to the passwd file. I do mkpasswd -d -u username, but the program just hangs because ...
1
vote
0answers
18 views

Cygwin command runs with one user, but bricks with another [closed]

I have two users on my Windows machine (developer and appuser) and they are both in the windows administrator group. I have a simple command-line windows utility (made by me as the developer user) ...
0
votes
0answers
21 views

Unable to add domain account on cygwin

Recently we have configured CYGWIN 1.6 version on windows 2012R2 successfully and the services on the server are running fine , but when we are trying to add the account for SFTP we are prompted with ...
0
votes
1answer
26 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 ...
0
votes
1answer
149 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 ...
0
votes
0answers
94 views

Howto setup socks proxy for sftp on windows

I have a windows server and I want to setup a sftp server over socks proxy. A firewall is running but my ports are open. First, I have installed an sftp server with a local test account. It is up and ...
1
vote
1answer
628 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 ...
2
votes
1answer
43 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 ...
0
votes
0answers
103 views

How to (best) configure updatedb in cygwin to search windows shares?

Context: Finding Files Quickly Across the Network A confession. I'm more of a bash/linux developer type than a windows admin. Our deployments have over 80 servers. Recently a software bug required ...
-1
votes
1answer
260 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 ...
-2
votes
1answer
131 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. ...
0
votes
1answer
50 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 ...
0
votes
0answers
35 views

Enable activity logging on Cygwin open SSH (sftp) server install on Windows Server 2008 [duplicate]

I've successfully installed and configured OpenSSH using the Cygwin package on a Windows 2008 Server. I have also installed the Syslog-ng Cygwin package and configured it so that I receive basic ...
-1
votes
1answer
95 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 ...
0
votes
1answer
524 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 ...
2
votes
1answer
37 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 ...
0
votes
0answers
116 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 ...
0
votes
0answers
113 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 ...
0
votes
0answers
111 views

Supervisord Windows service started then stopped

I am trying to run Supervisord through Cygwin. The service installs/works correctly but, if I stop the windows service created, it will not start again. It will only work once after restarting the ...
0
votes
0answers
272 views

Running Django Test Server - Segmentation fault (core dumped)

I am running the Django test server from a virtualenv - necessary to use supervisord to run Celery as a background process. When I try: "python manage.py runserver" from the cygwin shell I get the ...
1
vote
1answer
326 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 ...
2
votes
1answer
821 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.
0
votes
1answer
153 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. ...
4
votes
1answer
165 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 ...
1
vote
2answers
3k 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 ...
4
votes
0answers
672 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 ...
1
vote
2answers
2k 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 ...
3
votes
1answer
758 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 ...
6
votes
2answers
5k 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?) ...
1
vote
2answers
108 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 ...
0
votes
1answer
352 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 ...
0
votes
0answers
475 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 ...
1
vote
2answers
1k 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: ...
1
vote
1answer
54 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 ...
-1
votes
1answer
2k 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 ...
0
votes
1answer
340 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? ...
-1
votes
3answers
195 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 ...
-3
votes
4answers
6k 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.
0
votes
1answer
357 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
116 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 ...
0
votes
1answer
219 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 ...
0
votes
2answers
121 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 ...
0
votes
1answer
1k 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 ...
0
votes
2answers
4k 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/ $ ...