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

learn more… | top users | synonyms

3
votes
3answers
2k 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 ...
1
vote
2answers
2k 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 ...
2
votes
1answer
1k 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" ...
0
votes
1answer
26 views

cygwin64 on Windows server, syslog data prints out all in one line

I am trying to automatically format syslog data from cygwin64 to print out with line breaks at the end of each line, so I can do some parsing later on. However, I don't see any configs that could ...
0
votes
1answer
35 views

“Resource temporarily unavailable” error from exim running under cygwin

I have recently setup exim version 4.86.1 running as a Cygwin service in Windows Server 2008 R2. If I send a single email at a time, it works fine. However, if I try and send 10 emails, each ...
0
votes
1answer
35 views

How to allow reverse ssh-tunnel connection to my host on demand?

I've set up a reverse ssh-tunnel (no autossh is used right now, but I might be using it)from remote laptop to my pc, but I don't trust much the remote host, as there might be different people using it ...
0
votes
1answer
64 views

How Do I Compile Samba for Windows - Mainly SMBClient.exe?

I am using Pydio on a Windows Server 2012 R2 server for "cloud" file sharing. A situation has come up where we would like to connect to a existing share on another 2012 R2 server. Pydio has a SMB ...
2
votes
1answer
112 views

cygwin sshd “getnameinfo failed”

I run an Openssh sshd service from Cygwin. When an RSA connection is established: $ ssh Administrator@ZETA Last login: Wed May 11 13:58:50 2016 from 10.1.1.140 -- there is no error message. ...
1
vote
2answers
3k views

ssh-add under cygwin

I'm having trouble with ssh-agent under cygwin. The crazy part is that it was working, but stopped after a reboot one day. Here is an example: sthomas@sthomas-tcg ~ $ keychain ~/.ssh/id_rsa ...
0
votes
1answer
172 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 ...
7
votes
3answers
9k views

Using rsync from msysgit for binary files

I have three windows boxes that are connected to a linux box on my network in various ways (one's local to the network, one is a laptop and may or may not be local, and the other is my work desktop). ...
3
votes
1answer
51 views

Create domain policy to assign user rights

I’m a Unix administrator who also has to work with various MS Windows servers. For various tasks, I’m a lot more productive using the Unix tools that I’m familiar with and for a long time, I’ve been ...
5
votes
1answer
2k views

Shared Cygwin Install

I'm attempting to set up OpenSSH on a bunch of Windows Server 2003 machines in an automated fashion. My goal is to be able to do so using a single version of Cygwin installed on a network drive ...
0
votes
0answers
48 views

Preserving destination's permissions using Cygwin's rsync

I am using Cygwin with rsync to sync files from my windows 7 computer, to a CIFS share on a Freenas Server. The command I am using is: D:\Utility\Cygwin\bin\rsync.exe -rt --delete --verbose "/...
-3
votes
4answers
13k 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.
15
votes
5answers
6k 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 (...
0
votes
0answers
43 views

ssh -Y using Cygwin/X without needing xterm

I manage a large farm of Linux servers/desktops from a Windows desktop machine and would like to reduce the complexity of this task by not having to use xterm for X Forwarding. This is my setup: I ...
2
votes
1answer
2k 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
0answers
59 views

cygwin tar preserving Windows file permissions

In addition to our VM level backups, I would like to have a 2nd backup of certain files that changed in the last 24 hours written to an archive on another server. I have 1 windows and 1 linux server ...
0
votes
1answer
27 views

run a script that prompts for input just in command line

Testing a batch script, I execute it in bash. I want to see prompts and respond by inputting variables. For example, the following works, but I want to prompt for these inputs, not put literals in my ...
13
votes
3answers
22k views

How do I install a cygwin package from the command line?

I can install a cygwin package when I first install cygwin, but is there something like: cyginstall git kind of like apt-get?
2
votes
2answers
3k views

How to run a cygwin executable with Windows TaskScheduler without opening a terminal?

Using Windows XP Task Scheduler, I've scheduled the execution of a cygwin program (C:\cygwin\bin\svn.exe update). It is working fine, but when it executes, a terminal window titled svchost.exe opens. ...
-3
votes
1answer
74 views

Run Windows Explorer on remote system from its cygwin shell through SSH [closed]

Please consider my problem :) 1) I Have a Windows 7 - x64 system with cygwin installed and SSHD running. 2) From another Windows machine , from futty, SSH to the above machine. 3) Command "TaskKill /...
0
votes
2answers
4k 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 ...
3
votes
3answers
16k views

Can't login to Cygwin sshd server with a non-administrator user account

I'm having some difficulties logging in to my Windows 2008 server (a DC) running Cygwin sshd. I can log in fine with an account that is a member of the Domain Admins group, but when I try with a ...
0
votes
1answer
163 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. ...
0
votes
0answers
30 views

how to properly setup permission for cygwin chrooted ssh server?

Can someone point me in the right direction about how to properly configure the permissions for a chrooted ssh server (sftp only in my case)? Specifically on a windows computer and how the folder ...
3
votes
2answers
2k views

How to SSH to Windows 7 as a privileged user

Once openSSH/Cygwin is installed and working on Windows 7, it seems like any user you use to ssh into the Windows 7 box takes on plain user privileges. That is, the user cannot execute privileged ...
-1
votes
1answer
229 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. ...
1
vote
2answers
659 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 ...
3
votes
5answers
6k 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 ...
6
votes
2answers
2k 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 ...
0
votes
0answers
26 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 (...
5
votes
2answers
350 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 ...
0
votes
0answers
88 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 ...
0
votes
3answers
143 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
1answer
2k 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 ...
4
votes
1answer
1k 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
871 views

Cygwin User/home folder non existant

I'm a novice at cygwin/linux administration so please be patient with my ignorance: I'm trying to change my .bashrc profile and setup (.gitconfig ) I can't seem to find my home folder. My hypothesis ...
0
votes
1answer
409 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 ...
5
votes
3answers
5k views

ssh uses wrong home directory in Cygwin

$ ssh usaname@login.somehost.no Could not create directory'/cygdrive/c/Documents and Settings/vidar kongsli/.ssh'. The authenticity of host 'login.somehost.no (...)' can't be established. RSA key ...
1
vote
0answers
18 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
59 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, ...
4
votes
1answer
806 views

SSH on Windows 7/Cygwin periodically fails to resolve hostname

Whenever I run ssh inside of cygwin on Windows 7 I get the error: ssh: Could not resolve hostname ... Non-recoverable failure in name resolution lost connection If I try the same command ...
1
vote
0answers
22 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) ...
24
votes
4answers
37k 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 "easy_install....
3
votes
2answers
3k views

Cgywin - issue setting /var permissions for ssh

I am having trouble to install ssh via Cygwin on my latest new Windows machine with the latest Cygwin version. *** Warning: The permissions on the directory /var are not correct. *** Warning: They ...
0
votes
1answer
77 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 ...
1
vote
4answers
380 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 ...
0
votes
1answer
383 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....