[리눅스]Fix the "Bind to port 22 on 0.0.0.0 failed : Address already in use" error
Posted on March 30, 2006
The error when starting and restarting sshd : Mar 30 23:35:11 x sshd[9151]: Server listening on :: port 22.
Mar 30 23:35:11 x sshd[9151]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Mar 30 23:38:07 x sshd[9151]: Received signal 15; terminating.
Mar 30 23:38:07 x sshd[1977]: Server listening on :: port 22.
Mar 30 23:38:07 x sshd[1977]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
A successful connection made to the server despite the issue : Mar 30 23:40:46 x sshd[2421]: Accepted publickey for root from ::ffff:xxx.xxx.xxx.xxx port 13586 ssh2
The fix : disable IPv6 : echo "alias net-pf-10 off" >> /etc/modprobe.conf
restart the machine
Restarting the machine with IPv6 disabled : Mar 30 23:47:57 x sshd[1957]: Server listening on 0.0.0.0 port 22.
Mar 30 23:48:46 x sshd[2470]: Accepted publickey for root from xxx.xxx.xxx.xxx port 13600 ssh2
'02.서버-Linux' 카테고리의 다른 글
[리눅스]Handy Tools for Linux admins (0) | 2013.02.18 |
---|---|
[트러블슈팅]KERNEL: assertion (!sk->sk_forward_alloc) failed at net/core/stream.c (279) and net/ipv4/af_inet.c (148) (0) | 2013.02.07 |
[리눅스]for문 스크립트 (0) | 2013.01.24 |
[리눅스]SWAP 파일 추가 (0) | 2013.01.04 |
[리눅스]아파치 2.4.2 버전 컴파일 (0) | 2012.12.19 |