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

learn more… | top users | synonyms

-1
votes
0answers
9 views

Tell Java on Cygwin it's running on Unix

I have a strange, proprietary Java program that's made for Linux. It actually runs fine on Mac, but it was really made for Linux in mind. For example, so if its parts are started with bash scripts. I ...
0
votes
0answers
20 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 ...
-3
votes
0answers
19 views

How do I go to the bottom of cygwin terminal? [migrated]

I have a very simple problem. When running scripts in cygwin I often go higher to see some first results of the script. The script itself is still running and is giving output too. To get down ...
-1
votes
2answers
58 views

reverse ssh: can connect to the remote, but can't ssh back [on hold]

$ ssh -R 7869:localhost:22 adminuser@192.168.0.6 adminuser@192.168.0.6's password: Last login: Tue Sep 16 13:08:47 2014 from 192.168.0.4 [adminuser@localhost ~]$ ssh localhost -p 7869 ...
0
votes
0answers
15 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
32 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
85 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 ...
1
vote
1answer
68 views

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

See image: http://i.imgur.com/gbb1XZz.png Just stays there. Restarting causes the same problem, and changing mirrors doesn't seem to help.
0
votes
1answer
78 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
50 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
1k 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 ...
1
vote
0answers
184 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 ...
0
votes
2answers
347 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 ...
0
votes
0answers
42 views

Cygwin - Squid SSL bump

I've done a full installation of cygwin on a windows server 2008 r2. I installed squid through the setup.exe My problem is this: I need ssl-crtd to be enabled on my Squid. When I did this on Ubuntu I ...
3
votes
1answer
303 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 ...
5
votes
1answer
2k 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
62 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
163 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
196 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 ...
0
votes
2answers
482 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
37 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
452 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
136 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? ...
0
votes
0answers
261 views

vagrant ssh always works, ssh using cygwin only works on some boxes

On Windows I like to use cygwin to access my Vagrant box via ssh. This works: vagrant init <an existing base box>, vagrant up, vagrant ssh. Instead of vagrant ssh I can use cygwin to ssh into ...
-1
votes
3answers
123 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
3answers
1k 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
237 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
885 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
74 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
159 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
104 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 ...
-1
votes
1answer
321 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 ...
-1
votes
2answers
2k 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/ $ ...
-1
votes
2answers
148 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 ...
0
votes
1answer
504 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 ...
1
vote
1answer
192 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 ...
0
votes
1answer
752 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 ...
0
votes
0answers
347 views

Server unexpectedly closed network connection when connecting to cygwin through ssh

I followed Noah's guide on how to run the OpenSSH SSHD server on Windows using Cygwin and it worked great until I shut down my PC and then rebooted it. Now every time I try to connect I get ...
0
votes
1answer
384 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 ...
0
votes
3answers
156 views

Why “jobs -p | kill -n 15” doesn't work?

I'm very new to Linux. And as a matter of fact I use Cygwin now and not Linux itself. I'm trying to install RVM (Ruby Version Manager). I was doing rm -r ./.rvm -i command. I wanted to remove .rvm ...
-1
votes
2answers
107 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 ...
2
votes
3answers
285 views

cygwin ssh works locally, not remotely

I have Cygwin with SSH server installed (Windows 7). After setting up I can login locally using "ssh localhost -l [myUsername]". I input my password. Success. However, trying to SSH to the machine ...
0
votes
0answers
1k views

ssh with cygwin for amazon ec2 gives permission denied (publickey)

I looked at all other posts that are similar. I'm probably missing something simple since I'm relatively new to this. I have an Amazon-EC2 instance with Amazon Linux. I'm using Cygwin on Windows 7. ...
0
votes
1answer
353 views

Cygwin does not see Windows share as folder - no ā€œdā€ attribute?

I migrated this question from StackOverflow as it really fell outside the scope of programming questions they generally prefer, so hopefully I'll find a more suitable audience here... I've installed ...
1
vote
2answers
321 views

using strings (the command) to only find english words

My problem in a nutshell is that I want the list of english words that are output when I run 'strings' on a binary file. Currently the file I run it on dumps a lot of trash to the screen, and I'm ...
3
votes
2answers
127 views

`sh` access denied over ssh connection

I have an ubuntu server and a windows XP client running Cygwin. The server ssh's into the client and tries to execute a shell script with some params, with the following command: ssh user@IP_ADDR 'sh ...
4
votes
1answer
882 views

Socat to share a serial link between multiple processes

I have a scenario where multiple processes on the same box want to communicate with a serial device. Process A needs two-way communications with the serial port, and Process B only needs to be able ...
0
votes
0answers
963 views

cygwin sshd times out for remote login

I have configured SSHD using Cygwin on Windows 7. I have checked and double-checked all of the following points: Port forwarding is correctly configured Windows Firewall is configured to pass port ...
2
votes
1answer
114 views

cygwin sshd service crashes whenever I open certain file in /etc

When I try to vim /etc/profile or vim /etc/motd it stops. When I try to touch those files it stops. Any ideas? Nothing in the ssh logs that seems to be pertinent.
1
vote
1answer
265 views

Cygwin: how do I disable /cygdrive

I'm using a cygwin based SSHD server and I want to disable the /cygdrive/c and /cygdrive/d paths; is this possible? Using NTFS ACLs to achieve this will be a mess because the user will need access to ...