Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd Bind to port 22 on 0.0.0.0 failed: [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 465
Location: Hokkaido Japan

PostPosted: Fri Dec 07, 2007 4:07 pm    Post subject: sshd Bind to port 22 on 0.0.0.0 failed: [solved] Reply with quote

I've seen this issue on a couple of gentoo machines but couldn't find any advice
in the gentoo forums, so I'm posting the solution.

After upgrading or installing ssh I wasn't able to login via ssh. A look at the logs
revealed:

Code:
Dec  8 08:14:01 [sshd] Server listening on :: port 22.
Dec  8 08:14:01 [sshd] error: Bind to port 22 on 0.0.0.0 failed: Address already in use.


A google search brought me to this post:
http://www.linuxquestions.org/questions/linux-security-4/logwatch-reports-sshd-killed-failed-to-bind-0.0.0.0-port-22-352499/

Which says to do something like this:
Code:
vim /etc/ssh/sshd_config

and change this:
Code:
#ListenAddress 0.0.0.0

to this:
Code:
ListenAddress 0.0.0.0


Hope this helps anyone facing the same issue.

Cheers,
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sat Dec 08, 2007 9:21 am    Post subject: Reply with quote

Moved from Networking & Security to Documentation, Tips & Tricks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum