Hi, I’m trying to write a publish script that copies a bunch of files over from a Windows machine to a Linux droplet (Ubuntu). I can successfully SSH into the remote Linux machine and can also run small (single file) scp commands to copy files over.
When I run a recursive copy
scp.exe -r [source dir] [remote dir] of a few megabytes, all SSH connections into my droplet stall. Eventually the original scp command times out with the error message:
ssh: connect to host IPADDRESS port 22: Connection timed out
I’m unable to reconnect to the droplet over ssh for about 5 minutes.
Some things I’ve noticed and tried:
/etc/ssh../sshd_config file (and restarted using
sudo systemctl restart ssh.service)
Anyone know anything else i can try?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.