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 :

And the reply is this:

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

4 Answers

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

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

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.

1

Settings -> Sharing -> Check Remote Access -> Right panel, allow full disk access

screenshot

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like