我正在尝试以自动化方式在一堆 Windows Server 2003 机器上设置 OpenSSH。我的目标是能够使用安装在网络驱动器上的单个版本的 Cygwin 而不是在每台机器上手动安装它。
我可以很好地安装 cygwin,但是当我尝试运行 ssh-host-config 时开始遇到问题。
$ ssh-host-config
bash: /usr/bin/ssh-host-config: Permission denied
Run Code Online (Sandbox Code Playgroud)
好吧,没什么大不了的。我 chmod 555 一切都在 /usr/bin 中。
$ ssh-host-config
/usr/share/csih/cygwin-service-installation-helper.sh: line 689: /usr/bin/awk: cannot execute binary file
Run Code Online (Sandbox Code Playgroud)
这就是我卡住的地方。跑步
petters@BTSOTTSTBAL507 /usr/bin
$ awk
bash: /usr/bin/awk: cannot execute binary file
Run Code Online (Sandbox Code Playgroud)
下面是awk的内容:
!<symlink>gawk.exe
Run Code Online (Sandbox Code Playgroud)
请注意,我可以很好地运行 gawk.exe 并尝试使用 CYGWIN=winsymlinks 环境变量集安装 Cygwin。
我还注意到以下几点——
petters@BTSOTTSTBAL507 /usr/bin
$ ls -l
total 366592
-rwxr-xr-x 1 ???????? ???????? 54798 Feb 4 19:02 [.exe
-rwxr-xr-x 1 ???????? ???????? 23566 May 18 2010 addftinfo.exe
-rwxr-xr-x …Run Code Online (Sandbox Code Playgroud)