You need to copy a 500 GB directory between two servers on a 1 Gbps link as fast as possible. What do you use?
IntermediateScenarioNetworking, SSH and remote access
Answer
Situation read → Throughput and resumability matter.
What I'd do →
rsync -aHAX --info=progress2 --partial -e "ssh -T -c [email protected] -o Compression=no" /data/ dst:/data/
For many small files, parallelise: ls /data | xargs -P4 -I{} rsync -aHAX /data/{} dst:/data/. On a trusted network, tar | mbuffer | nc avoids encryption overhead.
Why → rsync resumes and only sends differences; a fast AES-GCM cipher with hardware support keeps CPU from becoming the bottleneck.
Interview tip → Calculate first: 500 GB at ~110 MB/s is roughly 80 minutes, so set expectations.
More on Networking, SSH and remote access
A key belonging to a departed engineer may be in `authorized_keys` on 300 servers. How do you rotate SSH keys across the fleet?IntermediateYou need to reach a database on a private subnet from your laptop through a bastion. How?BeginnerYour security team wants SSH hardened on all servers. What changes do you make?BeginnerA new server needs a static IP, gateway and DNS on RHEL 9. How do you configure it persistently?BeginnerYou're changing the network config of a remote server over SSH and could lose access. How do you protect yourself?IntermediateA web server should accept HTTP/HTTPS from anywhere but SSH only from the office. Configure the firewall.Beginner