Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
43 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 ...
0
votes
0answers
9 views

cwrsync hide “[sender] hiding … because of pattern …” from output

I'm setting up a backup with cwRsync from Windows to a RSync Server Linux. I redirected stdout to a logfile. All seems works, but my logfile is full of crap. I set up some extension as excluded (like *...
1
vote
0answers
52 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 ...
0
votes
0answers
51 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 ...
0
votes
2answers
1k 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 ...
0
votes
0answers
78 views

mintty on Cygwin does not work with AWS session-manager-plugin on Windows

I have a Windows 10 machine with Cygwin. I use mintty for most cli work. I am using the Windows version of session-manager-plugin from here with a Cygwin python version of awscli When I launch a ...
0
votes
1answer
113 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 ...
0
votes
1answer
645 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:\...
0
votes
2answers
480 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 .....
1
vote
2answers
420 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 ...
1
vote
0answers
247 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 \...
2
votes
1answer
112 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
850 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 /...
1
vote
1answer
1k 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
75 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
162 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 ...
1
vote
1answer
2k 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
147 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,...
2
votes
1answer
3k 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 ...
8
votes
2answers
12k 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
548 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
176 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....
2
votes
1answer
2k 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
1k 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
2k 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. ...
2
votes
3answers
4k 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
696 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
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 ...
1
vote
2answers
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 ...
2
votes
2answers
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@...
2
votes
1answer
1k 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
717 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
507 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 ...
4
votes
2answers
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 ...
0
votes
2answers
907 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
926 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
410 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
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 ...
0
votes
1answer
372 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
806 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
11k 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
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 ...
3
votes
1answer
409 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
250 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
47 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
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 /...
0
votes
1answer
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. ...
-1
votes
1answer
879 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
113 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
756 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
2 3 4 5