Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
48
questions with no upvoted or accepted answers
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 ...
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 ...
3
votes
2
answers
5k
views
SSH connection times out
Given:
vm - a WinXPsp3 virtual machine hosted by a Win7sp1 physical machine
alice is the user on vm
srv - a Win2008R2sp1 server
bob is the user on srv
quake - a linux server
mark is the user on quake
...
3
votes
1
answer
1k
views
Inetd / xinetd isn't working under cygwin, why?
I am trying to use xinetd (or inetd) with netcat to act as a TCP proxy. This setup works on Linux without issue.
Under Cygwin, either as a service or from the a Cygwin command line, the (x)inetd ...
2
votes
0
answers
1k
views
cygwin's ps -W doesn't show all processes when running through an ssh session
I hope this is the right place to ask this question: I have two machines (Win7) running cygwin. Machine A connects to Machine B through an ssh session. When I run ps -W in the ssh terminal on A, the ...
2
votes
1
answer
1k
views
strftime returning time for wrong timezone
I'm trying to get "dts" to echo the current local time in vim (cygwin under Windows 7) byt the output is GMT+1 instead of the localtime (GMT-7). My abbreviation works fine on other machines, but I can'...
1
vote
0
answers
117
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:...
1
vote
0
answers
369
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 ...
1
vote
0
answers
247
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 ...
1
vote
3
answers
2k
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
886
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
0
answers
276
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
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 ...
1
vote
0
answers
940
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
0
answers
289
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 ...
1
vote
0
answers
81
views
Cygwin nested groups
I've got cygwin(latest release) running on a 2012 Windows server and having problems with adding domain grups. I succesfully dealt with domain users adding them to /etc/passwd as needed. For domain ...
1
vote
0
answers
273
views
Cygwin: Obtain comment field from Active Directory with mkpasswd
Running cygwin on W7x64. Since a generated /etc/passwd file is static, it has to be performed occasionally when new employees are hired. It polls Windows AD, and writes the passwd file.
In the past, ...
1
vote
1
answer
2k
views
Supervisord as Windows Service on Cygwin
I am attempting to run Celery as a Windows Service using Supervisord. I followed the configuration laid out on the Celery site and here. I have set up a virtual environment to run supervisord through ...
1
vote
0
answers
1k
views
ssh server not accepting public/private keys (Cygwin)
I am trying to connect my computer to a ssh server (running on Windows 7) using public/private keys.
I have generated the keys and used the necessary permissions for files:
chmod 700 .ssh
chmod 600 ...
1
vote
1
answer
168
views
Cygwin shell is overriding my Windows shell
I'm not sure what I did, but I've somehow got Cygwin installed in such a way that even when I try to run an ordinary windows shell, Cygwin is interfering. I have batch scripts that I want to run in ...
1
vote
1
answer
491
views
Fabric and cygwin don't work with windows UNC paths
I have some strange problems with fabric deployment to Windows Server 2008r2.
The thing I try to accomplish is to copy some files to a shared folder with a fabric script (this script does a lot of ...
1
vote
0
answers
2k
views
How to fix "SignTool Error: IStore2::Load returned error: 0x80090345"
I have a Jenkins job running the signtool utility on a remote node, the console log looks like so:
Started by user anonymous
Building remotely on vm-builder
[VE] $ cmd /c call "C:\Documents and ...
1
vote
0
answers
739
views
What could cause this ProFTPD directory listing error?
The error I get in Filezilla is "Cannot get directory listing". In Firefox it just keeps on loading and nothing happens. For both clients the same messages appear in proftpd.log.
Computer - error ...
1
vote
1
answer
1k
views
How do I arrange for an ssh key with a passphrase to be loaded and available in ssh-agent to other processes on Windows startup?
I'm setting up automated deployment of applications in a Windows environment from continuous integration (TeamCity build-agents), and using cygwin + openssh to perform the remote-execution part of ...
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 /...
0
votes
0
answers
86
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 -...
0
votes
0
answers
73
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 ...
0
votes
0
answers
689
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 ...
0
votes
0
answers
424
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
1
answer
374
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
565
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 ...
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
463
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 ...
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.
...
0
votes
0
answers
165
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
0
answers
916
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 ...
0
votes
1
answer
186
views
Freshly cloned mirrored drive with Acronis true image and rsync wrongly detects changed files, windows rsync 3.0.7 cygwin windows
Is there a way to help rsync better detect that files are identical? I did a fresh full disk "clone" mirror with Acronis TrueImage and after did an rsync to test and it detected a bunch of files as ...
0
votes
1
answer
1k
views
special permissions set to deny on new subfolders of a folder I own with Full Control
I have rsnapshot 1.3.1 installed under cygwin64 (setup 2.870, dll 1.7.35) on win2012r2, all the latest as of today.
I configured it to take a single file, current.7z, and make a rotating backup of it....
0
votes
1
answer
2k
views
SSHD on Cygwin: can't connect as "root" from a Linux box
I'm trying to connect a Linux (CentOS 6.5 x64) server and another server, a Windows Server 2008 R2 running Cygwin, and transfer files daily via SSHD from Linux to Windows, and I will use public keys ...
0
votes
0
answers
866
views
"Jailed" user can access `/dev` directory under SFTP
I set up a jail for a remote user under SSH (Cygwin), and he is jailed at /jail/user/home/user. When he connects with some SFTP client (ex: Filezilla), he can access his /home/user folder and control ...
0
votes
0
answers
213
views
"Lock" a certain user to a certain user in SSH (Cygwin)?
I need to give access to a remote user via SSH (Cygwin) in a Windows 2008 R2 box, but the user must see only his /home folder, and cannot read, write or list contents from another folder. The user ...
0
votes
1
answer
1k
views
Cygwin OpenSSH Server Error 1062
I tried to setup an OpenSSH Server on my Windows machine.
I installed cygwin and the openssh package.
Then configured "ssh-host-conf" an
*** Query: Overwrite existing /etc/ssh_config file? (yes/no)...
0
votes
1
answer
687
views
Copssh, Chrootdirectory and spurious cygwin directory
I have limited sftp users to their home directory using this answer https://serverfault.com/a/201879/65157.
It all seems to be working fine. I only have 1 query though.
When I ever issue an 'ls' ...
0
votes
1
answer
2k
views
CVSROOT problem because of username string
I have always been SVN user but currently I have to use CVS as the source repository. I am quite new to CVS and really got confused many a times (reason being I always tried to access CVS like SVN !)
...
0
votes
1
answer
567
views
Cygwin Scp or Rsync permissions
Why is it that whenever I Scp or Rsync files from my Windows machine using cygwin to my Ubuntu server. The copied files will all have no permissions. Rsync doesn't even work because it cannot copy ...
0
votes
1
answer
737
views
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 ...
0
votes
1
answer
422
views
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 ...
-1
votes
1
answer
86
views
Cygwin find integration
I would like to find all NON read-only files in my directory using cygwin's find command.
Is it possible ?