LINUX.ORG.RU

История изменений

Исправление SANyaSmol, (текущая версия) :

PidFile то кто в конфиге будет указывать?

Да, все просто оказалось))). Теперь все работает как и нужно!! Спасибо за подсказку"!

cat sshd_config_2

[code] Port 2022 PidFile /run/sshd_2.pid #ListenAddress :: #ListenAddress 0.0.0.0 Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key SyslogFacility AUTH LogLevel INFO LoginGraceTime 120 PermitRootLogin prohibit-password StrictModes yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys IgnoreRhosts yes HostbasedAuthentication no #IgnoreUserKnownHosts yes PermitEmptyPasswords no ChallengeResponseAuthentication no PasswordAuthentication no X11Forwarding yes X11DisplayOffset 10 PrintMotd yes PrintLastLog yes TCPKeepAlive yes #UseLogin no #MaxStartups 10:30:60 #Banner /etc/issue.net AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes ClientAliveInterval 60 UseDNS no [/code]

зачем вам SSHD_OPTS_2, если вы его не используете?

Я в нее пишу «-f /etc/ssh/sshd_config_2». По другому не придумал как передать конфиг в демон

Исходная версия SANyaSmol, :

PidFile то кто в конфиге будет указывать?

Да, все просто оказалось. Теперь все работает как и нужно!!

cat sshd_config_2 [code] Port 2022 PidFile /run/sshd_2.pid #ListenAddress :: #ListenAddress 0.0.0.0 Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key SyslogFacility AUTH LogLevel INFO LoginGraceTime 120 PermitRootLogin prohibit-password StrictModes yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys IgnoreRhosts yes HostbasedAuthentication no #IgnoreUserKnownHosts yes PermitEmptyPasswords no ChallengeResponseAuthentication no PasswordAuthentication no X11Forwarding yes X11DisplayOffset 10 PrintMotd yes PrintLastLog yes TCPKeepAlive yes #UseLogin no #MaxStartups 10:30:60 #Banner /etc/issue.net AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes ClientAliveInterval 60 UseDNS no [/code]

зачем вам SSHD_OPTS_2, если вы его не используете?

Я в нее пишу «-f /etc/ssh/sshd_config_2». По другому не придумал как передать конфиг в демон