LINUX.ORG.RU

траблы с файловой системой


0

0

Доброго всем времени суток
почему-то один и тот же файл в разных программах показывает разное содержимое 

vladka@blackICE:/home/www/barrel/sync$ sh rsync.sh
/etc/ssh/ssh_config: line 25: Bad configuration option: PublicAuthentication
/etc/ssh/ssh_config: terminating, 1 bad configuration options
rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync error: unexplained error (code 255) at io.c(1122) [sender=2.6.9]
vladka@blackICE:/home/www/barrel/sync$yakuake &
[1] 9460
vladka@blackICE:/home/www/barrel/sync$

все бы ничего ошибка в конфиге но 

#sudo vim /etc/ssh/sshd_config

  1 # Package generated configuration file
  2 # See the sshd(8) manpage for details
  3
  4 # What ports, IPs and protocols we listen for
  5 Port 22
  6 # Use these options to restrict which interfaces/protocols sshd will bind to
  7 #ListenAddress ::
  8 #ListenAddress 0.0.0.0
  9 Protocol 2
 10 # HostKeys for protocol version 2
 11 HostKey /etc/ssh/ssh_host_rsa_key
 12 HostKey /etc/ssh/ssh_host_dsa_key
 13 #Privilege Separation is turned on for security
 14 UsePrivilegeSeparation yes
 15
 16 # Lifetime and size of ephemeral version 1 server key
 17 KeyRegenerationInterval 3600
 18 ServerKeyBits 768
 19
 20 # Logging
 21 SyslogFacility AUTH
 22 LogLevel INFO
 23
 24 # Authentication:
 25 LoginGraceTime 120
 26 PermitRootLogin yes
 27 StrictModes yes
 28

root@blackICE:/etc/ssh# head -n ssh_config
head: ssh_config: invalid number of lines


root@blackICE:/etc/ssh# head -25 ssh_config

совсем другой файл

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

....
Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
RSAAuthentication yes
PublicAuthentication yes              25 строчка

root@blackICE:/etc/ssh#                                        

ествественно / раздел
что нужно делать ?
почему и как это могло произойти ?

пошел делать fschck, файловая система - reiserfs, debian eth
anonymous

С больной головы на здоровую?

/etc/ssh/ssh_config: line 25: Bad configuration option: PublicAuthentication

> все бы ничего ошибка в конфиге но

Вот именно -- ошибка в конфиге.

> #sudo vim /etc/ssh/sshd_config

Вы разницу между sshd_config и ssh_config понимаете?

> root@blackICE:/etc/ssh# head -25 ssh_config

> совсем другой файл

Не понял. А что должно было быть?

> Host *
> #   ForwardAgent no
> #   ForwardX11 no
> #   ForwardX11Trusted yes
> #   RhostsRSAAuthentication no
> RSAAuthentication yes
> PublicAuthentication yes              25 строчка
  ^^^^^^^^^^^^^^^^^^^^

Нет такой опции.

> что нужно делать ?

Убрать ошибочную строку и курить man ssh_config до полного просветления.

> почему и как это могло произойти ?

Кто-то криво отредактировал конфиг. Я уж не знаю, кто на Вашей машине
редактирует конфиги. Могу предположить, что Вы.

Dselect ★★★
()

А я вот не смог на модеме настроить port forwarding, поэтому никакого ssh на машину из внешней сети не получится :'(

anonymous
()
Ответ на: комментарий от anonymous

> действительно, как ни странно ssh_config и sshd_config - разные файлы =)

странно, что конфиг клиента и конфиг демона - разные файлы?

overmind88 ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.