Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
251
questions
2
votes
1
answer
7k
views
cygwin sftp limit user's to home directory
Is there any way to limit users to certain home directories with sftp and cygwin:
For example user1 cannot get out of
/home/user1/
User2
/home/user2/
I don't think there is on windows but maybe ...
2
votes
4
answers
31k
views
CYGWIN sshd "port 22: Connection refused"
Googled this to death, cannot resolve. I cannot connect to my CYGWIN sshd from another machine. Netstat shows connection is established. Can connect locally, no problem.
[oracle@aserver ~]$ ssh myid@...
2
votes
1
answer
871
views
Cygwin SFTP directory security
Here is what we are trying to accomplish:
A client drops off a file on a Windows/Cygwin SFTP folder
A Windows service scans the folder and processes the file
The problem:
The Windows service is ...
2
votes
2
answers
2k
views
Cygwin sshd and LDAP authentication
Is it possible to configure sshd installed via cygwin on WinXP to use LDAP for user authentication? If so, where can I find a howto guide to do this?
2
votes
1
answer
257
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 ...
2
votes
1
answer
204
views
Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)
I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the ...
2
votes
3
answers
12k
views
Non-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failed
Below you can see the log.
The connection is from a Cygwin SSH client to a Cygwin SSHD server.
The connection works ok when launched from the command line but fails when launched from Jenkins (Java ...
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
6
answers
8k
views
How can I run squid in cygwin
I've got cygwin installed on a windows machine & I'm trying to run squid. But when I run /usr/sbin/squid -i it does nothing, no response, no log files, nothing. I've tried searching for solutions ...
1
vote
4
answers
1k
views
Why dd finishes instantly when pipelining to cat?
I start bash on Cygwin and type:
dd if=/dev/zero | cat /dev/null
It finishes instantly. When I type:
dd if=/dev/zero > /dev/null
it runs as expected and I can issue
killall -USR1 dd
to see ...
1
vote
2
answers
12k
views
scp using a password on the command line
I am trying to write a script that will deploy a build created on my desktop machine (windows/cygwin) to a machine in my test environment (linux).
I would like to use scp to copy the build to the ...
1
vote
2
answers
1k
views
How safe is it to run cygwin sshd on a windows 2003 domain controller
I have already installed cygwin (running sshd) on windows 2003 DC several times.
But now another admin who is actually responsible for this domain asked my if this is really safe.
Edit:: I changed ...
1
vote
3
answers
331
views
X server for Windows [closed]
I'm looking to run Cygwin xterm on my machine. For this I need an X server, which one would you recommend?
It's important that it won't leak memory too much, and that it would be fast enough to allow ...
1
vote
1
answer
15k
views
How do I grant select, insert privileges in Postgres on Cygwin?
How do I grant permissions in Postgres? I followed the documentation, however it is not working.
$ psql tmadev
psql (9.2.4)
Type "help" for help.
tmadev=# grant all privileges on database tmadev to ...
1
vote
2
answers
3k
views
Netcat says 'operation not permitted'
I thought I could easily copy a tgz from a linux box to a windows box (cygwin) by doing this on the linux box:
nc -vv -l 4444 < file.tgz
And this on the windows box:
nc -vv 10.13.13.2 4444 > ...
1
vote
4
answers
8k
views
cygwin SSHD auto closes the connection upon connection
I run cygwin/sshd on Windows Vista. I used to be able to use ssh to connect to my computer alright, until recently it started not working (I think I installed and removed some other cygwin packages)
...
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 ...
1
vote
2
answers
2k
views
using strings (the command) to only find english words
My problem in a nutshell is that I want the list of english words that are output when I run 'strings' on a binary file. Currently the file I run it on dumps a lot of trash to the screen, and I'm ...
1
vote
2
answers
496
views
Dropped Connection when trying to SSH from Cygwin to Ubuntu Server
From a Windows Vista client using Cygwin, I am not be able to ssh to a Ubuntu server.
I have two other clients (one Vista and one Windows 7) which can SSH to the server. All three are using Cygwin.
...
1
vote
4
answers
11k
views
Autostart Cygwin on Windows boot and run a cygwin command
Sometimes my Windows server reboots at night to install new updates. Then the next day I find out that my cygwin instance has been stopped.
What I want is on Windows start, also run Cygwin AND run a ...
1
vote
2
answers
3k
views
Cygwin, OpenSSH and Gitosis on Windows Server 2008
I spent serveral hours getting Cygwin, OpenSSH and Gitosis to work together on Windows Server 2008 x64 - unfortunately the tutorials on the web (from e.g. Shannon Cornish) don't seem to have an answer ...
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 ...
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
1
answer
1k
views
Cygwin: how do I disable /cygdrive
I'm using a cygwin based SSHD server and I want to disable the /cygdrive/c and /cygdrive/d paths; is this possible? Using NTFS ACLs to achieve this will be a mess because the user will need access to ...
1
vote
1
answer
1k
views
Getting: "rsync: could not open password file" in cygwin
Running in cygwin
rsync -vrtz --password-file=c:\cygwin\secret --delete /cygdrive/d/Data [email protected]::modulename
But getting
rsync: could not open password file c:cygwinsecret: No such file or ...
1
vote
2
answers
660
views
cd in bash script
I work in a windows environment but prefer to use bash in cygwin as my shell.
To cd to a lengthy path I am given in windows form I type:
cd $(cygpath -u 'Z:\Some\long\windows\path')
..pasting the ...
1
vote
3
answers
960
views
Native Symlink Windows 2008 r2 with cygwin
Is it possible for me to create an ssh session on windows which then does some folder/file manipulation and then creates a NATIVE windows symlink.
i.e. a symlink that will be recognised by IIS and ...
1
vote
2
answers
3k
views
Cygwin User/home folder non existant
I'm a novice at cygwin/linux administration so please be patient with my ignorance:
I'm trying to change my .bashrc profile and setup (.gitconfig ) I can't seem to find my home folder.
My hypothesis ...
1
vote
4
answers
8k
views
Best way to have full Python install under cygwin/XP?
Pythons installed under WinXP have dirs like DLLs, DOC, include, etc. but python (2.5) installed with cygwin is a bare python.exe. My motivation for asking is that 'things' under XP don't seem to be ...
1
vote
1
answer
763
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
1
answer
604
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 \...
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 ...
1
vote
1
answer
5k
views
SSH Tunnel - Proxy Not Working From Remote Location (Login is working)
I have just set up a Cygwin SSH server and successfully tunneled to it from a remote location. Logging in works but when I point my browser to localhost 8888 (sock 5), all connections are refused.
...
1
vote
1
answer
2k
views
publish over ssh jenkins
I have been working on a small project where need to copy files from one windows machine to another through jenkins in a secure way. I have heard about publish over ssh plugin in Jenkins. I tried to ...
1
vote
1
answer
2k
views
Cygwin does not see Windows share as folder - no “d” attribute?
I migrated this question from StackOverflow as it really fell outside the scope of programming questions they generally prefer, so hopefully I'll find a more suitable audience here...
I've installed ...
1
vote
1
answer
2k
views
cygwin help: Xlib: connection to "ip:0.0" refused by server
I followed cygwin user guide as below:
http://x.cygwin.com/docs/ug/using-remote-apps.html
on windows xp, i started Cygwin/X->XWin server,
EXPORT DISPLAY=:0.0
ssh -Y user@ip
i saw below warning
...
1
vote
1
answer
2k
views
Rync connection problems from Windows to CentOS
Trying to connect to rsync on CentOS from Cygwin on Windows 7 but getting the following errors:
$ rsync -vrtz -vvv --password-file=c:\cygwin\secret --delete /cygdrive/d/Data [email protected]::...
1
vote
1
answer
833
views
Cygwin: Run SSH.exe (without cygwin.bat) with a keypair
I have a box I'm trying to create an SSH tunnel to using a keypair without a password. If I run cygwin.exe and generate a keypair without a password using ssh-keygen and put the public key on the ...
1
vote
1
answer
552
views
Odd SSH port disconnect
Currently I have ssh set up using openSSH on cygwin. I port forwarded from my router to the computer, and added an exception for port 22 on my windows firewall. I have free AVG which I believe does ...
1
vote
1
answer
1k
views
How to change environment variable for already installed Cygwin services
For example, I need to switch Cygwin sshd service from 'ntsec' to 'nontsec' mode on quite a few Windows machines without re-installing the service.
1
vote
9
answers
2k
views
X11 tunnelling through SSH from Fedora 3 server to Windows Vista client fails to work
Okay, I've tried using Xming and PuTTY, as well as Cygwin/X and Cygwin ssh, and it is not working.
I've been able to run X applications locally, so it's not a client-side X problem.
I've connected ...
1
vote
3
answers
825
views
svnstat script
So I'm building out a shell script to check out all of our relevant svn repositories for analysis in svnstat. I've gotten all of this to work manually, now I'm writing up a bash script in cygwin on my ...
1
vote
2
answers
2k
views
Cygwin/X startx gives blank gray screen
So I know I've had this working before, but after a fresh install of Windows XP and Cygwin, I can't seem to get the Cygwin/X server to give me anything other than a gray screen and an hourglass cursor....
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 ...