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

learn more… | top users | synonyms

0
votes
1answer
369 views

Having trouble piping between cygwin and sqlcmd

This simple command fails in bash: echo "print 'tsql'" | sqlcmd -E it works correctly in a regular old command prompt. It used to work with previous versions of cygwin. I've also tried inserting ...
0
votes
1answer
29 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. ...
0
votes
1answer
1k views

Can't connect to windows via ssh

I downloaded cygwin and ran ssh-host-config. I'm trying to connect using ssh -l micah myserver it then says micah@myserver's password: I enter the same password I use to log into windows and it ...
1
vote
2answers
1k views

SSH connection times out

Given: vm - a WinXPsp3 virtual machine hosted by a Win7sp1 physical machine alice is the user on vm srv - a Win2008R2sp1 server bob is the user on srv quake - a linux server mark is the user on ...
3
votes
1answer
20 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 ...
2
votes
3answers
1k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
0
votes
1answer
103 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
1answer
829 views

Improper output in SSH session on OSX using FreeSSHd on Windows with cygwin bash/sh shell

I am testing out running an SSH server on a local Windows VM. I have installed FreeSSHd and set the command shell to "c:\cygwin\bin\sh --login -i" (bash as well) with "Use new console engine" ...
1
vote
2answers
323 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 ...
3
votes
2answers
1k views

cygwin sshd fails to allocate pty for some users

I have (finally) got sshd working under cygwin on Win7 - well, sort of. The sshd runs as user 'cyg_server'. I'm able to successfully ssh to my computer using that same user name. However, if I ...
0
votes
1answer
409 views

Why can't a certain environment-variable be added to my bash profile?

I am having an issue with running a PHP project called Phing with Cygwin. It's not a huge problem because I can make it work but I am looking for a reason or a fix so I can do it differently. In ...
1
vote
0answers
66 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 ...
2
votes
1answer
178 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 ...
2
votes
4answers
3k views

cygWin connect by SSH using RSA key; ssh.exe couldn't create /home/user/.ssh

I'm using Win XP and I'm trying to connect by SSH to remote host using RSA key. I've investigated that cygWin recognizes Documents and Settings dir as home directory Z:\app\cwRsync\bin>cygpath -H ...
1
vote
4answers
11k views

CYGWIN sshd “port 22: Connection refused”

Googled this to death, cannot resolve. I cannot connect to my CYGWIN sshd from another machine. Netstat shows connection is established. Can connect locally, no problem. [oracle@aserver ~]$ ssh ...
0
votes
3answers
1k views

Autostart Cygwin on Windows boot and run a cygwin command

Sometimes my Windows server reboots at night to install new updates. Then the next day I find out that my cygwin instance has been stopped. What I want is on Windows start, also run Cygwin AND run a ...
4
votes
7answers
6k views

How to get rid of QueryServiceStatus: Win32 error 1062 when you try to start sshd on Cygwin?

I installed Cygwin and sshd on Windows 7 but I'm not able to make it work. I followed the guide from http://www.noah.org/ssh/cygwin-sshd.html but I still get: $ cygrunsrv -S sshd cygrunsrv: Error ...
0
votes
2answers
92 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
638 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?) ...
0
votes
0answers
32 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 ...
0
votes
2answers
247 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: ...
0
votes
3answers
354 views

cygwin SSHD auto closes the connection upon connection

I run cygwin/sshd on Windows Vista. I used to be able to use ssh to connect to my computer alright, until recently it started not working (I think I installed and removed some other cygwin packages) ...
3
votes
4answers
3k views

How to run a PowerShell script from Cygwin SSH session?

Hi I have Windows Server 2003 with CopSSH installed on it ( Cygwin + sshd ). W would like to be able to run a PowerShell script via SSH session command and then use it's output. Is there such ...
1
vote
1answer
26 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 ...
0
votes
7answers
2k views

SSH Does Nothing, No Matter What Command Line it Get (Cygwin)

SUMMARY: SSH isn't doing anything. > ssh user@www@.yserver.com > ssh oshdfojsfsdof -psd sdfisdfjdsf (does nothing no matter what you pass to the commandline. No output, no errors, nothing) ...
3
votes
4answers
6k views

Why isn't my public key allowing me to sign in without a password?

On my home network I have a server running Ubuntu and another desktop running Windows 7. I'm using cygwin on the Windows machine to ssh into the server. I attempted to set up keys between these two ...
1
vote
2answers
45 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
125 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
3answers
192 views

X server for Windows

I'm looking to run Cygwin xterm on my machine. For this I need an X server, which one would you recommend? It's important that it won't leak memory too much, and that it would be fast enough to allow ...
11
votes
5answers
3k views

What are the practical differences between Interix and Cygwin?

Both Interix and Cygwin appear to provide a Unix-like user environment in Windows. What are the practical differences between the two, in terms of, for example: Unix-like "feel" Performance Package ...
-1
votes
1answer
175 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 ...
11
votes
5answers
4k views

Cygwin package management

In cygwin, how do I: List all installed packages List files belonging to a package Tell which package a file belongs to Install a new package Uninstall a package Get info about an installed package ...
-3
votes
3answers
451 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
101 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
2answers
751 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: ...
20
votes
4answers
21k views

How to run easy_install in cygwin?

I am trying to install some package in cygwin's python, but I'm getting the following error: "easy_install: command not found". I have tried to run "easy_install.py", the result is also ...
0
votes
1answer
806 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 ...
4
votes
6answers
903 views

Can I compile mutt under cygwin? [closed]

I've been trying to compile mutt under cygwin for a few days. The included version is outdated and does not include things I need like header caching. Anyways, I always get the message: "configure: ...
0
votes
0answers
189 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
vote
4answers
3k views

How can I run squid in cygwin

I've got cygwin installed on a windows machine & I'm trying to run squid. But when I run /usr/sbin/squid -i it does nothing, no response, no log files, nothing. I've tried searching for solutions ...
0
votes
5answers
9k views

Trying to get X11 over SSH working: Connection refused by server

Using Cygwin/X11 Launch command in local Xterm for SSH: xterm -e ssh -Y -v -l MyUser myserver.mydomain.com & After logging in, I've run setenv DISPLAY myclient.mydomain.com:0.0 ...
3
votes
8answers
6k views

How can I use cygwin without wasting HD space?

I love using Cygwin, but I hate all of the extra disk space it seems to use caching stuff I don't need. What can I delete to keep my installation footprint as small as possible? On a related note, ...
-1
votes
3answers
96 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 ...
2
votes
3answers
2k views

Need help with putting Cygwin on DVD for a offline install

I'm trying to put the whole of Cygwin on a DVD, so I can have it with me for an offline install. I downloaded setup.exe, putted "download without install" and selected Current version and under "All" ...
0
votes
1answer
604 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
196 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
62 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
136 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
97 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
205 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 ...