Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cygwin]

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

0
votes
0answers
26 views

Cannot run ssh -X apps from remote machine through WSL or Cygwin (but local Xorg works)

I'm running... Windows 10 Enterprise 1803 Ubuntu 18 (WSL app) Cygwin 3.0.5(0.338/5/3) VcXsrv 1.20.1.4 I've installed the appropriate Xorg stuff in both Cygwin and WSL - and it works fine for the ...
0
votes
0answers
14 views

How can OpenSSH SSHD log date/time as well?

I use OpenSSH SSHD in Cygwin under Windows. I start SSHD with option "-e -D" in Registry Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Parameters\AppArgs to enable logging to file \...
0
votes
0answers
51 views

Yubikey SSH on Cygwin fails yet Putty succeeds

I am trying to set up my Yubikey on Windows such that I am able to SSH with it to my server. I successfully generated keys on it and extracted the public key in SSH format (I did this on a linux VM)....
2
votes
1answer
24 views

Cygwin 2.9.0 cat/tac Commands Fail on Large Files when Piping to grep -q -m1

I am seeing some odd behavior using Cygwin x64 2.9.0 on Windows 10 Pro x64. The command I am attempting to run is the following: tac <file> | grep -q -m1 -F "literal string" The above command ...
1
vote
1answer
310 views

cygwin: chroot jail - cannot run any command

I have installed Cygwin with Apache, PHP, Mercurial, MYSQL, OpenSSH, PYTHON I have updated sshd_config to chroot jail to access user-defined folders example: Match group sftp_users ...
0
votes
1answer
129 views

Why is git not using identity set in ssh config file? [closed]

I am trying to connect to my local Gitea server. I have set it up to use the integrated SSH server on port 2222. I am running Windows. Gitea is running fine. Now I want to connect using Cygwin's git. ...
0
votes
1answer
51 views

how to have multiple nginx apps without using docker

I am using Windows Server 2008 as my server and I have installed cygwin on it. I have installed nginx on cygwin and it is working fine. I am running 2 projects on this server and each one has its ...
1
vote
0answers
69 views

Cygwin ssh with keys error - A specified logon session does not exist

Update: The issue is only on Windows server 2008 R2. I created a Windows server 2012 R2 VM and it works fine. I want to run some windows query through ssh, but this is a interesting issue which I'm ...
0
votes
0answers
84 views

Pass shell script to cygwin ssh from mac with arguments

How can I run a shell script from mac on a Windows openssh installation and pass arguments? This is what I currently have: ( cat run.sh ) | ssh -t user@host How can I modify this to pass arguments ...
0
votes
1answer
615 views

How to correctly install Cygwin with chosen packages from powershell?

I'm working on a Powershell automation script that deploys various dependencies on a Windows Server box (as prep for creating an AMI from it) and one of the dependencies is Cygwin with various ...
0
votes
1answer
60 views

can cygwin run things at startup

In normal Linux I can put things in rc.local to run at startup. Is there a way to do this in Cygwin? It seems that when I start the Cygwin terminal it doesn't automatically run anything. Specifically,...
0
votes
1answer
635 views

Cygwin Windows < Linux rsync - connection unexpectedly closed

I'm trying to backup my Raspberry Pi 3 (Raspbian) to my desktop computer (Windows 10 Pro). At the moment I can SSH each way, specifying the private key file. To SSH into the RPi from Windows: ssh ...
6
votes
2answers
3k views

ssh on cygwin (win10): read_passphrase: can't open /dev/tty:

Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows: % ssh -tt -vvv <user@host> ...
1
vote
1answer
143 views

Fatal: unable to initialise SFTP: could not connect

I'm running OpenSSH on Cygwin, which I'm trying to use as an SFTP server only. I installed it first with just the default settings (external SFTP server sftp-server) and it worked. I was able to run ...
0
votes
1answer
114 views

Files created on server appear read only

When I create a file on a windows server with cygwin the resulting file appears to be read-only. For example echo > hallo.txt results in a file with these rights: Path : Microsoft....
1
vote
1answer
588 views

Ansible throws an error with SSH connection reset when used under cygwin

When I try to do anything, even something basic with ansible under cygwin, I get the following error: $ ansible all -m ping example.org | UNREACHABLE! => { "changed": false, "msg": "Failed ...
1
vote
0answers
822 views

A specified logon session does not exist. It may already have been terminated (only from SSH)(for the accounts not specified in Log On tab)

Some progress: This is working for the cyg_server user. That is the user by which the sshd is service is running. But this is not working other users. Some more progress: This is working for any ...
0
votes
1answer
542 views

Correct place to store key pairs for SSH authentication with VPS (Cygwin and Linux)

I am using Cygwin on windows 10 to try and ssh into my Linux server for the first time. I have a public and private key pair called whm_rsa and whm_rsa.pub in user/user/.ssh on my local computer. ...
1
vote
1answer
2k views

How to run cron service in cygwin?

I have run installed cygwin with openssh, rysnc and cron. I've run cygserver-config and cron-config cygcheck -c | grep cron cron 4.1-65 OK cygrunsrv -Q ...
1
vote
0answers
426 views

SOCKS connection through cygwin and proxy fails

I have serverA with a rhel 6 flavor with no connection to internet and serverB with Win Server and Cygwin that connects to internet through a proxy namely I can do something like wget http://google....
1
vote
1answer
4k views

Unable to ssh from windows 10 machine

Im trying to ssh a machine from my Windows 10 machine using a linux shell. I tried using Bash programm included in Windows 10 and i have got the following error: "Resource temporarily unavailable" I ...
1
vote
2answers
1k views

How do I set up the SSL certificates with a certificate bundle?

I am trying to set up an encrypted connection from the MySQL database command line client to the MySQL database instance on AWS. AWS provided a certificate bundle which seems to have all their ...
1
vote
2answers
1k views

Use CYGWIN to SSH to EC2 Instance

I am trying to SSH to EC2 from a Windows machine. After installing the CYGWIN (SSH enabled), I tried running the following command: ssh -i /cygdrive/c/cygwin64/home/user/.ssh/user-pc.pem ec2-user@...
2
votes
1answer
584 views

some ssh port forwarding operations not permitted, interactive ok, after client upgrade

Host: Amazon Linux with OpenSSH 6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015 Client: Win 10 with Cygwin OpenSSH 7.3p1, OpenSSL 1.0.2h 3 May 2016 I can ssh interactively with no problem: win10$ ssh user@...
4
votes
0answers
526 views

Denied permission of a symbolic link to a shared folder

I use Microsoft Remote Desktop to connect my Mac to Microsoft Azure VM. I follow this thread (apple.stackexchange.com/a/140506/20747) to share a Mac folder named Music with the VM. It works fine, here ...
0
votes
1answer
383 views

Why this error when executing MongoDB on Cygwin?

I copied the MongoDB executables1 to my Cygwin's /usr/local/bin directory. However, when I try to execute, I get this opaque error message: $ mongod C:/cygwin/usr/local/bin/mongod.exe: error while ...
3
votes
2answers
1k views

cygwin grep running 680 times faster via ssh than via remote desktop

Running grep by opening Cygwin terminal via Microsoft Remote Desktop to Windows Server 1012 R2(same as natively?): Administrator@MYSERV /cygdrive/d/bin/beta $ time grep -inowf ...
0
votes
2answers
544 views

rsync on Windows copies executables all over again

I am using rsync via cygwin to create incremental backups from a Windows 8.1 machine. It worked perfect for over a year. But a few weeks ago it started to re-copy existing files (and these files have ...
0
votes
1answer
584 views

Make Cygwin installer `setup.exe` authenticate with username and password for proxy automatically

There is --proxy option for Cygwin installer setup.exe, but it only accepts address:port. How to provide username and password if the proxy requires authentication unattendedly? In manual scenario, ...
0
votes
1answer
300 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
838 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
265 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 ...
2
votes
1answer
600 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. ...
3
votes
1answer
8k views

Ansible: Failed to connect to the host via ssh

Anyone know why this isn't working? I'm using Ansible on Cygwin using a compiled version of sshpass. I followed the instructions at http://www.jeffgeerling.com/blog/running-ansible-within-windows ...
2
votes
1answer
779 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 ...
3
votes
1answer
339 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 ...
1
vote
0answers
210 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 am ...
0
votes
1answer
43 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 ...
-3
votes
1answer
622 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
1answer
905 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. ...
-1
votes
1answer
779 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. ...
0
votes
0answers
82 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 (...
0
votes
0answers
441 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 ...
1
vote
1answer
1k 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
3answers
1k 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
58 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
164 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
1answer
131 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
990 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....
8
votes
4answers
4k 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 ...