Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
249
questions
0
votes
0
answers
66
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 ...
1
vote
0
answers
291
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 ...
0
votes
0
answers
596
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 ...
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 ...
1
vote
1
answer
671
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 ...
1
vote
0
answers
213
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
0
answers
342
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 ...
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 ...
0
votes
1
answer
322
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
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:\...
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 .....
1
vote
2
answers
824
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
1
answer
501
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
1
answer
229
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
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 /...
2
votes
1
answer
4k
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
1
answer
249
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
0
answers
250
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
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 ...
0
votes
1
answer
217
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,...
5
votes
1
answer
5k
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 ...
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>
...
2
votes
1
answer
6k
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
1
answer
290
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
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 ...
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 ...
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.
...
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 ...
1
vote
0
answers
911
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
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 ...
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 ...
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@...
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@...
4
votes
0
answers
871
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
1
answer
558
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
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 ...
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 ...
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, ...
0
votes
1
answer
489
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
1
answer
2k
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
1
answer
448
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
1
answer
989
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
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 ...
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 ...
3
votes
1
answer
469
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
0
answers
284
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
1
answer
56
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
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 /...
0
votes
1
answer
2k
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
1
answer
1k
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. ...