Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On my Linode sudo netstat -tulp gives me:

Proto Recv-Q Send-Q Local Address    Foreign Address   State    PID/Program name   
tcp        0      0 *:ssh            *:*               LISTEN   2030/sshd           
tcp        0      0 *:http           *:*               LISTEN   2178/httpd          
tcp        0      0 *:ssh            *:*               LISTEN   2030/sshd           
udp        0      0 *:bootpc         *:*                        1937/dhclient 

Why is sshd on there twice?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

One of those is listening for IPv4 connections, one is listening for IPv6 connections:

michael:~> netstat -tl |grep ssh
tcp        0      0 *:ssh                   *:*                     LISTEN      
tcp        0      0 *:ssh                   *:*                     LISTEN      
michael:~> netstat -tln |grep 22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp        0      0 :::22                   :::*                    LISTEN      
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.