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

learn more… | top users | synonyms

0
votes
2answers
40 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
18 views

How can I make cygwin commands a priority over built in windows commands? [migrated]

If I run ls in powershell the windows built in ls function is run. how can I make cygwin ls run instead? I've tried moving cygwin/bin to top begin system path variable, but that didn't work. is ...
0
votes
0answers
6 views

What exactly does Cygwin do? [migrated]

I understand that it "looks like" Linux by giving me forward slashes and providing a directory structure similar to Linux. I also know that a lot of apps have been ported to Cygwin, but if the source ...
0
votes
0answers
18 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 ...
1
vote
0answers
44 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 ...
3
votes
1answer
115 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
38 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
0answers
59 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
73 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
94 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
21 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
51 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
64 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
103 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
72 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 ...
-4
votes
3answers
218 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
170 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
342 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
50 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
108 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
88 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
121 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
1k 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
133 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
0answers
46 views

Using bzr with SFTP repository on Windows/Cygwin

Note: I'm not sure if this belongs on ServerFault or StackOverflow I'm currently working on a project which has an SFTP-only bzr repository. All works fine using my Linux machine, but when using ...
0
votes
1answer
300 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 ...
0
votes
1answer
88 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
0answers
63 views

Installing php-mcrypt using cygwin

I'm having difficulty getting the mcrypt extension working under cygwin, the httpd logs show: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20100525/mcrypt.dll' - No such ...
0
votes
0answers
226 views

Cygwin sshd refuses login

Installing sshd on a Windows 2008 Server. sorins is local Administrator account and JIRA is the named of the localmachine. This machine is already part of another domain but I do not need to activate ...
0
votes
1answer
447 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
191 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
308 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
113 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
84 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 ...
0
votes
2answers
146 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
682 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
197 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
212 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
117 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
521 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
661 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
108 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
225 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 ...
0
votes
2answers
1k views

How to configure ssh key based authentication in openssh running on cygwin?

I was able to install and configure openssh on cygwin and is running just right but with one problem: I cannot use private/public key authentication, it just doesnt work. I followed the same steps as ...
1
vote
1answer
71 views

Non-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failed

Below you can see the log. The connection is from a Cygwin SSH client to a Cygwin SSHD server. The connection works ok when launched from the command line but fails when launched from Jenkins (Java ...
1
vote
1answer
1k views

ssh localhost exits with “debug1: Exit status -1 ”

I am trying to setup ssh and ssh to localhost on Cygwin, but I am getting the following error. Any suggestions will be appreciated: $ ssh -v localhost OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 ...
2
votes
1answer
259 views

Problems with C^b C^[arrow key] in tmux through a ssh session from a mintty terminal

I have a server that I ssh to from Windows 7 using Cygwin+mintty. On the server I attach to a tmux session. So far so good, but when I try to change the tmux layout using C^b [arrow] and C^b M^[arrow] ...
0
votes
1answer
76 views

Linux sshd suddenly began prompting for “Windows Authentication” from Cygwin ssh

I returned from vacation to find a "helpful" intern had installed some Mandriva 2011.0 updates on a linux server, and he had updated Cygwin to 1.7.16 on a Windows XP machine. Prior to the updates, I ...
1
vote
1answer
929 views

cygwin help: Xlib: connection to “ip:0.0” refused by server

I followed cygwin user guide as below: http://x.cygwin.com/docs/ug/using-remote-apps.html on windows xp, i started Cygwin/X->XWin server, EXPORT DISPLAY=:0.0 ssh -Y user@ip i saw below warning ...
5
votes
1answer
4k views

How do I fix certificate errors when running wget on an HTTPS URL in Cygwin Windows?

I have Cygwin installed in my windows system I am trying to execute wget commad for a website but I am gettign the following error message ERROR: The certificate of xxx.com' is not trusted. ERROR: ...