The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Networking (http://hintsforums.macworld.com/forumdisplay.php?f=14)
-   -   port mapping (http://hintsforums.macworld.com/showthread.php?t=59866)

hayne 09-04-2006 11:45 PM

Quote:

Originally Posted by cristofori (Post 319490)
When I run the command you specified (sudo lsof -i -P) I get the following message:

sudo: no passwd entry for root!

and nothing more.

This is quite odd.
Have you changed something in your 'sudo' configuration?
Have you changed something in NetInfo Manager?

voldenuit 09-05-2006 08:51 AM

While you get the sudo thing sorted, you can use

netstat -an

to find out whether sshd runs. It'll work fine for plain admin accounts.

cristofori 09-05-2006 10:36 PM

I've never messed with NetInfo Manager and know not how to use it. Also, what is the specified command "netstat -an" supposed to show me; how do I interpret its list?

voldenuit 09-05-2006 10:56 PM

If you don't know what NetInfo Manager is, chances are, you didn't mess with it...
Copy the first part of the netstat output here, we'll figure it out for you, it shows open ports on your Mac.

cristofori 09-06-2006 09:15 AM

Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 10.0.1.4.55594 72.14.223.147.80 ESTABLISHED
tcp4 0 0 10.0.1.4.55591 65.212.92.109.80 ESTABLISHED
tcp4 0 0 10.0.1.4.55587 64.154.80.250.80 ESTABLISHED
tcp4 0 702 10.0.1.4.55581 64.154.80.250.80 FIN_WAIT_1
tcp4 0 0 10.0.1.4.55578 63.245.209.10.80 ESTABLISHED
tcp4 0 0 10.0.1.4.55577 63.245.209.10.80 ESTABLISHED
tcp4 0 0 10.0.1.4.55574 63.245.209.21.80 ESTABLISHED
tcp4 0 0 10.0.1.4.55573 63.245.209.11.80 ESTABLISHED
tcp4 0 0 *.* *.* CLOSED
tcp4 0 0 *.9502 *.* LISTEN
tcp4 0 0 *.* *.* CLOSED
tcp4 0 0 *.427 *.* LISTEN
tcp4 0 0 *.* *.* CLOSED
tcp4 0 0 *.* *.* CLOSED
tcp4 0 0 *.548 *.* LISTEN
tcp46 0 0 *.548 *.* LISTEN
tcp4 0 0 *.80 *.* LISTEN
tcp4 0 0 *.631 *.* LISTEN
tcp4 0 0 127.0.0.1.1033 127.0.0.1.51231 ESTABLISHED
tcp4 0 0 127.0.0.1.51231 127.0.0.1.1033 ESTABLISHED
tcp4 0 0 127.0.0.1.1033 *.* LISTEN
udp4 0 0 *.* *.*
udp4 0 0 *.427 *.*
udp4 0 0 *.* *.*
udp4 0 0 *.* *.*
udp4 0 0 *.631 *.*
udp4 0 0 127.0.0.1.49157 127.0.0.1.1022
udp4 0 0 127.0.0.1.49156 127.0.0.1.1022
udp4 0 0 10.0.1.4.123 *.*
udp4 0 0 127.0.0.1.123 *.*
udp4 0 0 *.123 *.*
udp4 0 0 127.0.0.1.1022 *.*
udp4 0 0 127.0.0.1.49153 127.0.0.1.1023
udp4 0 0 127.0.0.1.1023 *.*
udp4 0 0 *.5353 *.*
udp4 0 0 *.68 *.*
udp4 0 0 127.0.0.1.1033 *.*
udp4 0 0 *.514 *.*
udp6 0 0 *.514 *.*
icm6 0 0 *.* *.*
icm6 0 0 *.* *.*

voldenuit 09-06-2006 12:28 PM

It looks like you misclicked in the sharing prefpane:
You have web-sharing switched on instead of remote login, just one line down.

cristofori 09-06-2006 05:28 PM

I have both web sharing and remote login turned on.

voldenuit 09-06-2006 05:36 PM

Then there should be a line like the one hayne mentioned in post #19 in the output of netstat.

Check your logs for launch failures of sshd (uncheck and check again remote login in the sharing prefpane) and post the contents of /etc/sshd_config and the result of

grep ssh /etc/services

.


All times are GMT -5. The time now is 09:47 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.