Overly broad permissions can turn one compromised account into a much larger security problem. Learn how to reduce unnecessary access, review privileges, and apply least privilege across modern Linux systems. Review Linux Privileges×

Alerts This Week
Warning Icon 1 491
Alerts This Week
Warning Icon 1 491

Tips On Secure File Transfers Using SCP Through Gateways

General Esm H446
Quick summary on some scp tricks. "Recall that the command: "$ scp ... S:file ..." actually runs ssh in a subprocess to connect to S and invoke a remote scp server. Now that we've gotten ssh working from client C . . . Quick summary on some scp tricks. "Recall that the command: "$ scp ... S:file ..." actually runs ssh in a subprocess to connect to S and invoke a remote scp server. Now that we've gotten ssh working from client C to server S, you'd expect that scp would work between these machines with no further effort. Well, it almost does, but it wouldn't be software if there weren't a couple of small problems to work around:
  • Problems invoking the ssh subprocess, due to the forced command
  • Authentication difficulties due to lack of a tty