Failed to scp from my server to computer

The following code does not work

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

I have "Allow only basic services" on my Mac firewall.

How can you solve the problem?

[edit]

I get the following error after I have a "Remote Login" to the list of allowed services. I also enabled 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 log in to my computer from another Macbook unsuccessfully with 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 using the command above, but the connection was quickly disconnected.

+3
source share
3
+6

scp .

, . ? ssh "-v", , .

+1

, mac. - .

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

If you use NAT to get more than one window connected to the Internet, this will not work. Your Mac's IP does not appear outside your home network. In this case, you need to add a port forwarding rule to the yout router.

myUsernameAtMyMac@myIpAddress
0
source

Source: https://habr.com/ru/post/1704491/


All Articles