Cygwin - automatic installation of OpenSSH server

I am wondering if there is a way that can help me not only automatically install cygwin, but also help me install an OpenSSH server using cygwin. Is it possible to do this in one script?

+3
source share
4 answers

I am sure that this will require at least two scripts.

The silent installation of cygwin is a kind of possible, but tedious . This requires that you go through the installation process at least partially manually once. At the end of this link is the section "- If you want to configure something automatically after running setup.exe," which you will have to adapt to complete the installation after the installation, which is necessary to run ssh server in cygwin .

0
source

Silent installation of cygwin openssh and apt-cyg:

setup -q -D -s http://mirrors.xmission.com/cygwin -l C:\cygwin -L C:\cygwin -P wget,git,git-svn,openssh
C:\cygwin\bin\wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
C:\cygwin\bin\install apt-cyg /bin
C:\cygwin\bin\mkpasswd -l > C:\cygwin\etc\passwd    
C:\cygwin\bin\mkgroup -l > C:\cygwin\etc\group
C:\cygwin\bin\bash --login -c "/bin/ssh-user-config -y -p paswordforusersshd"
netsh advfirewall firewall add rule name=SSH dir=in action=allow protocol=tcp localport=22
net start sshd
+2
source

, , . Batch script " Cygwin OpenSSH...

J2897 Pastebin

. , , , authorized_keys .

+1

, , ; Windows, , Cygwin OpenSSH Windows:

https://github.com/Bill-Stewart/Cygwin-OpenSSH

Cygwin v3, ( SYSTEM).

, OpenSSH rsync, () Windows, , Windows:

  • Windows PowerShell is a remote interactive shell
  • It creates a local SSH user group for authentication and sets it by default to sshd_config; nested groups are supported (for example, if you want to manage membership through a GPO)
  • Supports sftp account access only
  • Includes rsync

The package requires Vista / Server 2008 or later and Windows PowerShell 2.0 or later. This is not a universal installation of Cygwin; The intention is to provide easy-to-use pre-packaged OpenSSH for Windows.

0
source

All Articles