Question

The following code does not work

scp /home/username/public_html/site/pictures/* myUsernameAtMyMac@myIpAddress:/home/Masi/Desktop/

I have "Allow only essential services" in my Mac's firewall.

How can you solve the problem?

[edit]

I get the following error after I have "Remote Login" in the list of allowed services. I also allowed "All users".

scp favicon.ico Masi@11.111.11.111:/home/Masi/Dropbox/
ssh: connect to host 11.111.11.111 port 22: Connection timed out
lost connection

[edit] I tried to login to my computer from another Macbook unsuccessfully by the following command

ssh Masi@11.111.11.111

I get an operation timeout error.

I managed once to connect from my server to my computer with the above command, but the connection was quickly timeout.

Was it helpful?

Solution

You need to add the SSH service to the allowed applications in the firewall configuration of your Mac and change your firewall settings to “Set access for specific services and applications.”.

Having your firewall set to “Allow only essential services.” blocks incoming connections to services running on your machine.

See also on the Apple support site: http://docs.info.apple.com/article.html?path=Mac/10.5/en/11783.html

OTHER TIPS

The scp command itself is OK.

As for your problem, impossible to say with the information given. Can you ping the machine? Try to ssh with the "-v" switch to see if you get some more relevant info about the connection procedure.

Try this command using your mac. Should work without any firewall modifications or router settings.

scp yourUsernameAtYourServer@YourServer:/home/username/public_html/site/pictures/* /home/Masi/Desktop/

If you are using NAT to get more then one box connected to the internet this does not work. The IP of your Mac is not visible outside your home network. In this case you have to add a port forwarding rule to yout router.

myUsernameAtMyMac@myIpAddress
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top