Allow incoming SCP connections on Mac

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 [email protected]:

And the reply is this:

ssh: connect to remothe.machine port 22: Connection refused
lost connection

Solution 1:

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

Solution 2:

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

Solution 3:

You might have to open a port. My router's address is 192.168.0.1, 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.