38
votes
Using rsync from msysgit for binary files
As of now (9/7/2017) it is extremely easy to manually add rsync support to the Git for Windows environment without even having to resort to running the Git for Windows SDK.
I stumbled across this ...
- 821
11
votes
Accepted
ssh on cygwin (win10): read_passphrase: can't open /dev/tty:
Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (...
- 301
9
votes
Cygwin startup error /usr/bin/id: cannot find name for group ID
It appears to be related to my Active Directory username or group memberships. The error went away after running the following command as per this article:
mkpasswd -l -c > /etc/passwd; mkgroup -l ...
- 5,590
7
votes
Accepted
Cygwin Windows < Linux rsync - connection unexpectedly closed
Typical - as soon as I post here I resolve the problem (which persisted through dinner and hours of debugging...)
The OpenSSH server that can be enabled as an optional Windows 10 feature doesn't seem ...
- 241
6
votes
SSH connecting on port 22 but times out on 443
When you telnet (or nc) to a port that has an ssh server listening, you should obtain a string of characters, something like
SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
If you don't obtain a string like ...
- 3,527
6
votes
ssh uses wrong home directory in Cygwin
If your $HOME variable is set, but ssh isn't recognizing it, put this line in /etc/nsswitch.conf:
db_home: /%H
That will set the Cygwin home directory without requiring an /etc/passwd file to exist.
- 171
4
votes
Unattended solution to install cygwin and enable ssh server on Windows?
Write-Host "Downloading Cygwin ..." -ForegroundColor Cyan
$cygwinSetup = '{0}\cygwin-setup.exe' -f $env:SystemDrive
$startBitsTransfer = @{
Source = 'https://www.cygwin.com/setup-x86.exe'
...
- 262
3
votes
Cygwin startup error /usr/bin/id: cannot find name for group ID
None of the modifications of /etc/group nor /etc/passwd helped me (not even those from the cited article). The problem was that I was trying to install babun under Domain User but without connection ...
- 155
3
votes
Cygwin Screen and SSH: Utmp slot not found -> not removed
The answer by ryenus did not work for me. I tried renaming it, removing it, even tried touching /var/run/utmp and chmod'ing it to 0777. However I did find an answer on another forums that did work.
...
- 131
3
votes
Why does ssh-host-config create two users in Cygwin on Windows 8.1?
Original Answer
The separate disabled sshd account is actually not used in Cygwin (with one exception; see below). I asked about this on the Cygwin mailing list:
Is the sshd disabled user account ...
- 258
3
votes
Can't login to Cygwin sshd server with a non-administrator user account
It was hard but I finally figured it out.
Run "mkpasswd -l > /etc/passwd".
Go to the file and open it in notepad++ (c:\cygwin\etc...).
There, you will notice that the account listings is similar ...
- 31
3
votes
ssh uses wrong home directory in Cygwin
In /etc/nsswitch.conf:
db_home: windows
See The db_home setting. This tells Cygwin to just use the Windows %USERPROFILE% directory as the Cygwin $HOME.
This is necessary if, for example, you want ...
- 131
3
votes
SSH on Windows 7/Cygwin periodically fails to resolve hostname
I run Windows 7 with Cygwin in Virtualbox and experienced the same issue. The cause in my case was having blindly enabled the nat dns "resolver mode" in Virtualbox (https://www.virtualbox.org/manual/...
- 131
3
votes
Having trouble piping between cygwin and sqlcmd
I am using MSYS2 (x86-64, installed with the 20150916 and updated using pacman to the latest default packages as of two days ago) but I ended up encountering the same error (which makes sense as MSYS2 ...
- 161
3
votes
ssh on cygwin (win10): read_passphrase: can't open /dev/tty:
If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation
The ssh client come with windows 10 only can be used via cmd.exe not cygwin ...
- 31
3
votes
Why is git not using identity set in ssh config file?
It turned out that setting GIT_SSH_COMMAND="ssh" was enough. This means that git was using some other SSH client. Probably the one of OpenSSH which happened to be on the system path:
$ whereis ssh
...
- 155
3
votes
Cygwin and rsync on Windows 10
I found out that this is because it uses openssh from Windows than doesn't work well with cygwin. Try instal openssh on cygwin - it worked for me.
- 131
2
votes
Can't see certain files under system32 via cygwin shell
Igal's answer is correct, but much of it applies only to outdated Windows versions. Here's a newer answer. It applies only to Windows Server 2008 or newer, or Windows Vista or newer.
Change into the ...
2
votes
How can I run squid in cygwin
There is a Squid MSI Installer at GitHub Squid Windows Installer. It is an open source project to ease installation of Squid on Windows. Currently it is based on Cygwin Squid 3.3.3; 3.5.1 version will ...
- 21
2
votes
Using rsync from msysgit for binary files
Update January 2021:
Since mysys2 is now using zstd you need to download more than just rsync to get this working. As well as
rsync-3.2.3-1-x86_64.pkg
you also need to download and copy
libzstd-1.4.8-...
2
votes
Cygwin startup error /usr/bin/id: cannot find name for group ID
Instead of
mkgroup -l -d > /etc/group
I fixed the groups by issuing the two commands
mkgroup -l > /etc/group
mkgroup -c >> /etc/group
suggested further down in the comments of the ...
- 121
2
votes
Cygwin rsyncd sends too many file names
I solved this by adding use chroot = false to my /etc/rsyncd.conf.
- 125
2
votes
Accepted
some ssh port forwarding operations not permitted, interactive ok, after client upgrade
This isn't much of an answer, it's just what I have observed. I rebooted my Win10 PC, which applied some updates that were pending. I also have Eset Internet Security installed on it, with firewall ...
- 405
2
votes
Use CYGWIN to SSH to EC2 Instance
Try running ssh with the -t option, like this:
ssh -t -i /cygdrive/c/cygwin64/home/user/.ssh/user-pc.pem ec2-user@ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com
By adding the -t option you are telling ...
- 431
2
votes
Unable to ssh from windows 10 machine
For future reference, when you install Nginx, it will block SSH by default with the error message "Resource temporarily unavailable" unless you...
sudo ufw allow ssh
- 345
2
votes
Accepted
Ansible throws an error with SSH connection reset when used under cygwin
Add the following lines to ansible.cfg (either in the playbook folder or in /etc/ansible/ansible.cfg):
[ssh_connection]
ssh_args = -o ControlMaster=no
From what I've gathered, ControlMaster=auto ...
- 153
2
votes
Accepted
How to correctly install Cygwin with chosen packages from powershell?
Eventually I figured out a solution that worked for me, and would like to share the detailed explanation that I couldn't find anywhere in hopes it will assist someone like me in the future.
Step 1: ...
- 157
2
votes
Accepted
how to have multiple nginx apps without using docker
https://www.nginx.com/resources/wiki/start/topics/tutorials/commandline/
You can use the existing nginx installation, and just point it to a different configuration file when starting it. Use the -c ...
- 3,878
1
vote
Accepted
CYGWIN SFTP not working suddenly. Connection closed after authentication
It seems like internal-sftp instead of full executable path works. There is probably problem with executing external binary when running under cygwin.
- 9,465
1
vote
Strange behavior of SCP through .sh file
I just got this behaviour now and the issue was the linebreak. (^M)
Try converting the script file with dos2unix. It solved for me.
- 11
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cygwin × 249ssh × 101
windows × 48
cygwin-sshd × 35
rsync × 24
linux × 15
bash × 13
windows-7 × 11
windows-server-2008 × 10
unix × 8
sftp × 8
windows-server-2003 × 6
windows-server-2012-r2 × 6
ubuntu × 5
permissions × 5
ssh-tunnel × 5
putty × 5
scp × 5
public-key × 5
active-directory × 4
windows-server-2008-r2 × 4
powershell × 4
windows-xp × 4
git × 4
debian × 3