Questions tagged [cygwin]

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

What it doesn't provide is "a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows."

Cygwin home page
Cygwin on Wikipedia

249 questions
0
votes
1 answer

Pubkey authentication with SSH server running on Cygwin - session closes immediately

I am connecting from Linux via SSH to a Windows machine running SSH in Cygwin. I authenticate with a certificate. The session opens but closes immediately thereafter. With password authentication it works well - the session remains active until I…
Tomas Kohl
  • 203
  • 2
  • 6
0
votes
1 answer

On Windows, how do I set up sshd such that I can ssh in via key-based authentication from another windows box?

I am working to set up some deployment automation, and one of the things I'm trying is to use Ruby's Capistrano to remotely execute commands over ssh. I have used cygwin's openssh to run sshd on the box I'm using as the test victim. Out of the…
Peter Mounce
  • 1,253
  • 5
  • 16
  • 29
0
votes
1 answer

Cygwin - Overriding packaged installs

Running python from my terminal currently uses the packaged Cygwin install; $ which python /usr/bin/python But I want it to point at; C:\Python27 in other words; /cygdrive/c/Python27/python I could add an alias in my ~/.profile but this feels…
gav
  • 503
  • 2
  • 7
  • 17
0
votes
2 answers

bind(): Operation not permitted on Nginx

I just installed Nginx on my machine to run Nginx. After install and config. I try to run nginx and got this problem: bind() to 0.0.0.0:8843 failed (1:Operation not permitted) I have no idea what this problem is and how to fix it. Google cannot…
DucDigital
  • 1,491
  • 3
  • 18
  • 26
0
votes
1 answer

Cygwin Rxvt issue

With a recent version of CYGWIN (installed yesterday) on Windows 7, we are having a weird problem getting rxvt to work. We used to use the following batch file: @echo off C: chdir C:\cygwin\bin rxvt -fn 18x18 -bg black -fg white -g 85x55 -sr -e…
SvrGuy
  • 1,012
  • 3
  • 17
  • 29
0
votes
1 answer

Can't remove tunnel created by Cygwin

I need to make a tunnel from Linux to my Windows 7 machine. I have been able to get it to work with Cygwin, but it's not possible to remove the tunnel later. To create the tunnel, I type: ssh -f -N -L 5001:localhost:3306 target The tunnel goes up…
User1
  • 2,486
  • 5
  • 20
  • 21
0
votes
1 answer

How to start Cygwin's NFS server in read-write mode?

Installed Cygwin's NFS server. It works. But I can't make it allow writing to the filesystem. Why does it fail? Server: $ cat /etc/exports #/ 10.99.98.2(rw,no_root_squash) /cygdrive/c/foranevia…
Vi.
  • 841
  • 11
  • 19
0
votes
1 answer

Windows XP running as OpenSSH server through cygwin. Can I remotely execute MS-DOS commands?

I tried typing cmd or cmd.exe at the bash line which then takes to the DOS shell. But from there I tried executing something like trial.bat which contains some lines to access a series of executable commands, but to no avail. Is this the correct way…
hatmatrix
  • 115
  • 5
0
votes
4 answers

Starting and stopping Mongrel service over SSH on Windows Server 2003

I have a Rails app running under mongrel as a windows service on a Windows Server 2003 installation. I'd like to automate deploying new versions of the app from my Ubuntu dev server. Cygwin is installed on the Windows server for this purpose. I…
cpm
  • 143
  • 2
  • 5
0
votes
1 answer

Connecting Linux and Windows Amazon EC2 instances through SSH

I have reserved a Linux and a Windows instances in Amazon EC2. I would like to access between the two through SSH. I have installed cygwin (with openssh package) in the Windows instance. How should I configure it for accessing to the Linux…
Allan Baquerizo
0
votes
0 answers

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 AuthorizedKeysCommand "/tmp/myscript": bad ownership or modes for…
gsandorx
  • 9
  • 4
0
votes
0 answers

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 Terminal (bash). I tried creating the Windows…
TenG
  • 143
  • 6
0
votes
0 answers

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 the whole drive it fails after a while, in this…
0
votes
0 answers

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 to enable GSSAPI for SSO login. However Kerberos…
rgomez
  • 153
  • 1
  • 2
  • 10
0
votes
1 answer

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 the script through command prompt. I'm using zabbix…
user630702
  • 495
  • 10
  • 32
1 2 3
16
17