Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
91 views

Function wcwidth not found - python

I installed wcwidth through pip on cygwin but I get this error when I try to run Ansible-playbook binary through powershell. Ansible-playbook binary works fine from cygwin but doesn't work from ...
user avatar
  • 333
0 votes
0 answers
37 views

Ansible playbook to install Java from within Cygwin

Is it possible to install Java on Windows through Cygwin and ansible roles? I've been told to install Java using ansible playbook but ansible is running inside cygwin. I'm not clear about the fact if ...
user avatar
  • 333
0 votes
0 answers
311 views

rsync-bpc: connection unexpectedly closed after 40GB have been received

After starting a backup it goes for some time before failing, which is what I'm finding hard to understand. I created a fresh test backup that worked flawlessly, it was just a couple of files, but for ...
user avatar
0 votes
0 answers
210 views

Change to remote directory getting Couldn't canonicalise: No such file or directory Cygwin sftp

Hope everyone safe and healthy. Since 10 days, I'm breaking my head to figure out change directory issues with Cygwin SSH sFTP server. Cygwin has installed in Windows 2016 server and account using ...
user avatar
1 vote
0 answers
432 views

How to use Windows 10 OpenSSH ssh-agent service with Cygwin?

I'm using the Visual Studio Code Remote - SSH extension on a Windows 10 laptop to access a bunch of Linux development servers. I followed these instructions to set up the Windows built-in ssh-agent ...
user avatar
  • 183
1 vote
1 answer
236 views

How to use scp when cygwin is used as default shell

I have installed openssh-server from optional features on a Windows machine. I can ssh and scp (I need upload only) from my Linux box; However I don't like cmd shell, so I installed Cygwin and set it ...
user avatar
1 vote
0 answers
149 views

rsync over ssh getting permission denied errors in Cygwin

I have a ubuntu 20.04 server I just set up and I'm trying to backup a few windows computers to it using rsync over ssh. I've set up password less keys and that seems to work. I've also setup the ...
user avatar
0 votes
0 answers
178 views

Cygwin and Kerberos for GSSAPI

I'm trying to setup a Cygwin instance running in Windows Server 2019, joined to a domain. OpenSSH Server is successfully installed in Cygwin and working with password method for AD Users. The goal is ...
user avatar
  • 143
1 vote
2 answers
3k views

Cygwin and rsync on Windows 10

I'm trying to use rsync in a Cygwin terminal to sync some folders with my linux server. The problem is, the password prompt comes up ok but when I enter the password, it is echoed to the screen and ...
user avatar
0 votes
1 answer
189 views

Powershell - Run SCP command from CYGWIN but also expand variables

I need to expand variables before running the SCP command as a result I can't use single quote. If I run the script using double quotes in Powershell ISE it works fine. But doesn't work if I run ...
user avatar
  • 1
0 votes
1 answer
1k views

"cannot execute binary file" with cygwin [closed]

I have installed 64-bit cygwin in the folder C:\cygwin Running "C:\cygwin\bin\sh.exe" /bin/ls results in /bin/ls: /bin/ls: cannot execute binary file Why? Runnin sh and ls separately works. C:\...
user avatar
1 vote
3 answers
819 views

SSH authentication failed and sshd reports setuid error: not such device or address after Cygwin update

I just updated Cygwin for git on server. And after restarting the sshd service. No accounts can ever logon anymore. Both domain user and local user are not able to logon ssh... ssh server1 -v gives .....
user avatar
  • 238
1 vote
2 answers
625 views

Cygwin - SSH DOMAIN user restrictions

In our company we are using cygwin on each of our machines to be able to run our projects with GNU make (everyone uses Windows 10)! I also developed a tool, with which all employees are able to ...
user avatar
  • 11
1 vote
0 answers
331 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 \...
user avatar
  • 121
2 votes
1 answer
155 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 ...
user avatar
  • 121
1 vote
1 answer
1k 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 ChrootDirectory /...
user avatar
2 votes
1 answer
2k 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. ...
user avatar
0 votes
1 answer
116 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 ...
user avatar
1 vote
0 answers
196 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 ...
user avatar
  • 21
1 vote
1 answer
3k 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 ...
user avatar
  • 157
0 votes
1 answer
160 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,...
user avatar
  • 133
4 votes
1 answer
4k 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 ...
user avatar
9 votes
2 answers
15k 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> ...
user avatar
  • 301
2 votes
1 answer
3k 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 ...
user avatar
  • 121
0 votes
1 answer
198 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....
user avatar
  • 159
2 votes
1 answer
3k 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 ...
user avatar
  • 153
1 vote
0 answers
2k 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 ...
user avatar
0 votes
1 answer
3k 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. ...
user avatar
  • 145
2 votes
3 answers
5k 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 ...
user avatar
  • 383
1 vote
0 answers
810 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....
user avatar
  • 133
1 vote
1 answer
6k 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 ...
user avatar
  • 11
1 vote
2 answers
2k 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 ...
user avatar
  • 236
2 votes
2 answers
2k 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@...
user avatar
2 votes
1 answer
2k 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@...
user avatar
  • 395
4 votes
0 answers
774 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 ...
user avatar
  • 223
0 votes
1 answer
530 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 ...
user avatar
4 votes
2 answers
2k 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 ...
user avatar
  • 121
0 votes
2 answers
996 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 ...
user avatar
  • 271
0 votes
1 answer
1k 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, ...
user avatar
  • 847
0 votes
1 answer
440 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 101
0 votes
1 answer
411 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 ...
user avatar
2 votes
1 answer
900 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. ...
user avatar
  • 121
3 votes
1 answer
12k 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 ...
user avatar
  • 288
2 votes
1 answer
1k 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 ...
user avatar
  • 73
3 votes
1 answer
449 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 ...
user avatar
1 vote
0 answers
264 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 ...
user avatar
0 votes
1 answer
48 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 ...
user avatar
-3 votes
1 answer
1k 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 /...
user avatar
  • 3
0 votes
1 answer
1k 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. ...
user avatar

1
2 3 4 5