
Я попытался запустить экземпляр своего собственного (я не являюсь пользователем root) sshd-сервера на удаленной машине, но это не удалось:
debug1: sshd version OpenSSH_4.3p2
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: setgroups() failed: Operation not permitted
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: rexec_argv[2]='-f'
debug1: rexec_argv[3]='sshd_config'
debug1: rexec_argv[4]='-h'
debug1: rexec_argv[5]='ssh_host_rsa_key'
debug1: rexec_argv[6]='-p'
debug1: rexec_argv[7]='55000'
debug1: Bind to port 55000 on ::.
debug1: Bind to port 55000 on 0.0.0.0.
Bind to port 55000 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
Часть моего файла sshd_config:
# $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
Port 55000
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress
#ListenAddress ::
Если я раскомментирую адрес прослушивателя и использую любой IP, очевидно, мой собственный IP (172.16.13.126), то возникает следующая ошибка:
Bind to port 55000 on 172.16.13.126 failed: Cannot assign requested address.
Cannot bind any address.
решение1
Bind to port 55000 on 0.0.0.0 failed: Address already in use.
Привет,
как описывает предпоследняя строка вашего вывода sshd, порт 55000, похоже, занят другим процессом. Вы можете попробовать настроить другой порт в вашем sshd_config
файле. Этот ответ здесь также дает хорошее объяснение того, как запустить sshd как непривилегированный пользователь:
Тема: Как запустить sshd от имени определенного пользователя?
Я не пробовал, но на первый взгляд описания кажутся разумными.