Questions tagged [cygwin]

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

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

sshpass/rsync fails when not redirecting stdout etc

I am having a weird issue and I just can't seem to find the cause and a solution. I am on win11/cygwin (sshpass 1.06,rsync 3.2.7) I call: /usr/bin/sshpass -p $sshpasswd /usr/bin/rsync --dry-run -...
Dominik's user avatar
1 vote
0 answers
112 views

PuTTY, Cygwin, ssh-pageant: unable to connect to pipe, error: 3

On a new Windows 11 system, with Cygwin, using the ssh-pageant version 1.4 which comes with Cygwin, I cannot make it work with PuTTY 0.80. The ssh client reports "unable to connect to pipe, error:...
Thierry Lelegard's user avatar
0 votes
0 answers
71 views

Cygwin SSHD AuthorizedKeysCommand

I'm trying to setup cygwin sshd to call a script via the AuthorizedKeysCommand. I can see the error messsage in the Windows EventViewer stating that: sshd: PID 5178: error: Unsafe ...
gsandorx's user avatar
1 vote
0 answers
360 views

Implement /usr/sbin/apachectl start|stop|restart as a Windows Service

We are running Apache Web Server 2.4 installed as a Cygwin package, on Windows Server 2018. The Apache service manually started after each reboot by running: /usr/sbin/apachectl start From the Cygwin ...
TenG's user avatar
  • 153
0 votes
0 answers
682 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 ...
dillonbrannick's user avatar
4 votes
0 answers
1k 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 ...
kbro's user avatar
  • 270
1 vote
1 answer
754 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 ...
Ali Asadpoor's user avatar
1 vote
0 answers
245 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 ...
user614004's user avatar
0 votes
0 answers
417 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 ...
rgomez's user avatar
  • 153
1 vote
2 answers
4k 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 ...
Richard Thomas's user avatar
0 votes
1 answer
372 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 ...
user630702's user avatar
0 votes
1 answer
2k 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:\...
Anders Lindén's user avatar
1 vote
3 answers
1k 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 .....
Ben's user avatar
  • 268
1 vote
2 answers
884 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 ...
Dany's user avatar
  • 11
1 vote
1 answer
595 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 \...
cxxl's user avatar
  • 123
2 votes
1 answer
254 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 ...
Jeff G's 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 /...
yellowandred's user avatar
2 votes
1 answer
5k 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. ...
Jack Miller's user avatar
0 votes
1 answer
368 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 ...
Amir Hossein Baghernezad's user avatar
1 vote
0 answers
272 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 ...
user630702's user avatar
1 vote
1 answer
4k 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 ...
motig88's user avatar
  • 157
0 votes
1 answer
242 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,...
raphael75's user avatar
  • 133
6 votes
1 answer
6k 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 ...
DarkMatterMatt's user avatar
9 votes
2 answers
17k 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> ...
JP Mattia's user avatar
  • 301
2 votes
1 answer
7k 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 ...
Kidburla's user avatar
  • 131
0 votes
1 answer
302 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....
theking2's user avatar
  • 181
2 votes
1 answer
4k 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 ...
Zaroth's 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 ...
pinkpanther's user avatar
0 votes
1 answer
4k 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. ...
JPB's user avatar
  • 145
2 votes
3 answers
6k 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 ...
John R's user avatar
  • 393
1 vote
0 answers
938 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....
Nocturn's user avatar
  • 133
1 vote
1 answer
7k 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 ...
loicg's user avatar
  • 11
1 vote
2 answers
3k 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 ...
Adam's 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@...
MadPhysicist's 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@...
sootsnoot's user avatar
  • 415
4 votes
0 answers
919 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 ...
Thomas's user avatar
  • 223
0 votes
1 answer
563 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 ...
boardrider's 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 ...
Muposat's user avatar
  • 121
0 votes
2 answers
1k 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 ...
Aravor's user avatar
  • 371
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, ...
uvsmtid's user avatar
  • 897
0 votes
1 answer
500 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 ...
M. Barbieri's user avatar
0 votes
1 answer
3k 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 ...
mpeac's user avatar
  • 101
0 votes
1 answer
462 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 ...
rightaway717's user avatar
2 votes
1 answer
1k 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. ...
Muposat's user avatar
  • 121
3 votes
2 answers
13k 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 ...
hourback's user avatar
  • 289
2 votes
1 answer
2k 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 ...
ADY's user avatar
  • 93
3 votes
1 answer
485 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 ...
Anthony Geoghegan's user avatar
1 vote
0 answers
286 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 ...
Daniel Ball's user avatar
0 votes
1 answer
58 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 ...
davidjmcclelland's user avatar
-3 votes
1 answer
2k 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 /...
Rx3's user avatar
  • 3

1
2 3 4 5 6