Questions tagged [cygwin-sshd]
The cygwin-sshd tag has no usage guidance.
46 questions
0
votes
0
answers
22
views
Cygwin SSH service rejects local user connection attempt
I've set up Cygwin on a Windows machine, with the OpenSSH server sshd as a Windows service, up and running. I used ssh-host-config -y; and in /etc/sshd_config I've uncommented: PubkeyAuthentication ...
0
votes
0
answers
162
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
91
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
530
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
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 /...
1
vote
0
answers
283
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 ...
2
votes
1
answer
8k
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 ...
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
529
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
482
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
1k
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
1
answer
512
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
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. ...
0
votes
0
answers
170
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
960
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 ...
2
votes
1
answer
2k
views
CYGWIN SFTP not working suddenly. Connection closed after authentication
I'd installed CYGWIN for SFTP purpose few weeks ago in a few Win 2003 R2 x64 server and initially all of them are working without problem. However this week problem rises where users are not able to ...
0
votes
2
answers
1k
views
How to resolve ssh/sftp log data not getting picked up by syslog-ng in cywgin64?
I've installed ssh and syslog-ng through cygwin (V3.2) on a Windows Server 2012 and attempting to get log output out of sshd. I'm using the default /etc/syslog-ng/syslog-ng.conf file...
@version: 3.2
...
2
votes
1
answer
208
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 ...
0
votes
0
answers
574
views
Lock Down Users on Cygwin SFTP Server
How do I lock down sftp users in Cygwin so that they can't read from random directories such as /etc. i set up local windows accounts for each sftp user on the machine. I've used /etc/fstab file to ...
-2
votes
1
answer
1k
views
Error starting cygwin sshd on Windows 8 [closed]
After installing sshd via cygwin on Windows 8 on a system that is not on a domain, the service will not start but gives an error such as:
Error 1068: The dependency service or group failed to start.
...
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 ...
2
votes
1
answer
64
views
Any way to centrally administer cygwin updates?
Is there a way to centrally administer cygwin, i.e. run remote updates on multiple boxes from a central 'admin machine'?
basic goal: keep sshd up to date on all instances
stretch goal: keep ...
1
vote
0
answers
177
views
CygWin SSHD and UTF-8 BOM
The CygWin ssh server configuration file "config_sshd" seems to need to be written minus a byte order marker. The server will accept UTF-8 but obviously becomes confused if it sees what it thinks is ...
12
votes
3
answers
16k
views
Why does ssh-host-config create two users in Cygwin on Windows 8.1?
In trying to resolve some issues with using Cygwin + SSH on Windows 8.1, I'd like to know why the ssh-host-config script creates two new accounts configuring OpenSSH from scratch? (Is this necessary?)
...
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)...
8
votes
3
answers
7k
views
Unattended solution to install cygwin and enable ssh server on Windows?
Using Cygwin environment on Windows is a very common solution for automation.
I am looking for a script that would automate the cygwin installation and enablement of ssh server.
I could try to ...
0
votes
1
answer
2k
views
Cygwin mkpasswd giving The format of the specified domain name is invalid
While trying to finish Cygwin config and running mkpasswd -l -d and mkgroup, it fails with the following error
$ mkpasswd -l -u sorins -d /etc/passwd
sorins:unused:1012:513:sorins,U-JIRA\sorins,S-1-5-...
2
votes
2
answers
2k
views
SeTcbPrivilege not working, RSoP.msc, gpresult show it's enabled, whoami /priv shows disabled
I'm trying to install Cygwin with SSHd on a Windows Server 2008 R2 domain controller. I have installed Cygwin and SSHd several times on other machines, with no issues.
Being a domain controller, the ...
5
votes
4
answers
4k
views
cygwin ssh works locally, not remotely
I have Cygwin with SSH server installed (Windows 7). After setting up I can login locally using "ssh localhost -l [myUsername]". I input my password. Success.
However, trying to SSH to the machine ...
2
votes
1
answer
227
views
cygwin sshd service crashes whenever I open certain file in /etc
When I try to vim /etc/profile or vim /etc/motd it stops.
When I try to touch those files it stops.
Any ideas?
Nothing in the ssh logs that seems to be pertinent.
3
votes
1
answer
159
views
Log places to look for when a Vista service stops immediatly
I'm trying to diagnose why cygwin sshd service starts and stops immediately. In the Vista application event log I found:
sshd: PID 3480: `sshd' service stopped, exit status: 255
It doesn't help much....
3
votes
1
answer
306
views
User's rights to run a service on Vista
What rights a user needs to run cygwin sshd as a service on vista? A ssh-host-config creates user cyg_server with 5 rights:
$ editrights.exe -l -u cyg_server
SeAssignPrimaryTokenPrivilege
...
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 ...
3
votes
3
answers
9k
views
How to configure ssh key based authentication in openssh running on cygwin?
I was able to install and configure openssh on cygwin and is running just right but with one problem: I cannot use private/public key authentication, it just doesnt work.
I followed the same steps as ...
3
votes
1
answer
13k
views
ssh localhost exits with "debug1: Exit status -1 "
I am trying to setup ssh and ssh to localhost on Cygwin, but I am getting the following error. Any suggestions will be appreciated:
$ ssh -v localhost
OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012
debug1:...
9
votes
1
answer
23k
views
How can the Address condition in a Match conditional block in sshd_config be negated?
I would like to force users into a specific command when they log in from outside my LAN via SSH to my LAN. My idea was, to use ForceCommand in a Match conditional block, that matches all addresses ...
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 ...
1
vote
1
answer
500
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 ...
4
votes
1
answer
99
views
Cygwin key-based auth
I have a server running Windows 2003 that is using Cygwin's SSHD. Where do I save my public key to in order to allow key-based auth? The Linux equivalent is ~/.ssh/authorized_keys.
0
votes
1
answer
995
views
Empty homedir name when SSHing to localhost
I am trying to start a system (Hadoop, but that should not matter much for this question), and need to be able to ssh to localhost. I do this on windows with cygwin. The cygwin SSHD service is running,...
7
votes
11
answers
23k
views
How to get rid of QueryServiceStatus: Win32 error 1062 when you try to start sshd on Cygwin?
I installed Cygwin and sshd on Windows 7 but I'm not able to make it work.
I followed the guide from http://www.noah.org/ssh/cygwin-sshd.html but I still get:
$ cygrunsrv -S sshd
cygrunsrv: Error ...
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 ...
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 ...
4
votes
2
answers
6k
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
...
0
votes
2
answers
11k
views
cygwin ssh connection to server port 22 connection refused on localhost
I set up a ssh server through ssh-host-config. Then I started the server.
net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.
When I try to connect ...
0
votes
2
answers
142
views
Are there any incompatibility issues when running cygwin sshd on a windows 2003 domain controller?
I am asking for incompatibility here.
Safety was already covered in that question.