Я - поклонник Linux, но из-за плохих драйверов беспроводных устройств Intel в Linux, я должен был переключиться на Windows 7. Я установил Cygwin в Windows и хочу настроить SSH для удаленного соединения с моим ноутбуком.
Я искал с Google и нашел информацию для установки openssh сервером на Win 7, но я получаю следующую ошибку при выполнении ssh-host-config
:
bala@bala-PC ~ $ ssh-host-config yes *** Info: Creating default /etc/ssh_config file *** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes *** Info: Creating default /etc/sshd_config file *** Info: Privilege separation is set to yes by default since OpenSSH 3.3. *** Info: However, this requires a non-privileged account called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh/READ ME.privsep. *** Query: Should privilege separation be used? (yes/no) no *** Info: Updating /etc/sshd_config file *** Warning: The following functions require administrator privileges! *** Query: Do you want to install sshd as a service? *** Query: (Say "no" if it is already installed as a service) (yes/no) yes *** Query: Enter the value of CYGWIN for the daemon: [] *** Info: On Windows Server 2003, Windows Vista, and above, the *** Info: SYSTEM account cannot setuid to other users -- a capability *** Info: sshd requires. You need to have or to create a privileged *** Info: account. This script will help you do so. *** Warning: The owner and the Administrators need *** Warning: to have .w. permission to /var/run. *** Warning: Here are the current permissions and ACLS: *** Warning: drwxr-xr-x 1 bala None 0 2010-01-17 22:34 /var/run *** Warning: # file: /var/run *** Warning: # owner: bala *** Warning: # group: None *** Warning: user::rwx *** Warning: group::r-x *** Warning: other:r-x *** Warning: mask:rwx *** Warning: *** Warning: Please change the user and/or group ownership, *** Warning: permissions, or ACLs of /var/run. *** ERROR: Problem with /var/run directory. Exiting.
Полномочия этой папки показывают как только для чтения (только относится к этой папке), зарегистрированный серый. Я пытался снять флажок, но после того, как я открываю свойства снова, флажок снова устанавливается. Существует ли способ изменить полномочия этой папки?
Я работаю Cygwin 1.7 на Windows 7 X64 и SSHD. Я не помню, чтобы получить эту ошибку, когда я запустил sshd_config, но я просто посмотрел на каталог my / var / run, и он установлен на 777.
Попробуйте это в Cygwin Shell CHMOD 777 / var / Run
В оболочке cygwin убедитесь, что вы являетесь администратором:
takeown /F "C:\cygwin" /R
icacls "C:\cygwin" /grant Everyone:\(F\) /T
icacls "C:\cygwin"
chmod 777 -R "c:\cygwin"