
원격 컴퓨터에서 내 자신(루트가 아님) 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를 실행하는 방법에 대한 좋은 설명도 제공합니다.
나는 그것을 시도하지 않았지만 설명은 첫눈에 합리적으로 보입니다.