Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I allow incoming scp connections on my Mac (OS X 10.6.4) from other machines on the same network?

Every time I’m trying to scp something on the machine I get a Connection refused error.

Later edit:

The command used is this:

scp path/to/local.file user@remote.machine:

And the reply is this:

ssh: connect to remothe.machine port 22: Connection refused
lost connection
share|improve this question
can you post the format of the statement you are using to make this connection? – MaQleod Sep 20 '10 at 8:08
@MaQleod: see my edit – Alex Sep 20 '10 at 8:16
It sounds as if you need to enable SSH/SCP. – MaQleod Sep 20 '10 at 8:30
up vote 22 down vote accepted

System Preferences pane → Sharing applet → check the Remote Login checkbox. This will enable SSH, and in turn, SCP.

share|improve this answer

In the settings there is the option to activate SSH. I think it’s under SharingRemote Login.

share|improve this answer

You might have to open a port. My router's address is, it's default name is admin and password is, I think, password. Yours might be the same. Check the bottom of your router. Default port is 22.

share|improve this answer

Your Answer


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.