News for hackers. Stuff that matters.
Re:Remote Code Execution in OpenSSH’s forwarded SSH-agent by tetha on Wednesday July 19, 2023 @02:06PM (#36790655)
Useful, I didn't know that so far.

We don't use bastion servers. My only real use case for ssh agent forwarding is if I need some scp / rsync between two remote systems during emergencies and those systems have no trust via SSH keys setup between them. In that very specific case, I don't know a better way than <ssh -A> to the first system and have some <rsync -e ssh> from there to the second system. Still doesn't feel great, even though I know only the people who could steal my keys are on my team.

Re:Remote Code Execution in OpenSSH’s forwarded SSH-agent by spladug on Wednesday July 19, 2023 @02:12PM (#36790749)
Ah yeah. Not sure on that one. scp does have the `-3` option to copy between two remote hosts via the local host, but that can be significantly slower if the remote hosts are in the same network and local host is not.
Re:Remote Code Execution in OpenSSH’s forwarded SSH-agent by tetha on Wednesday July 19, 2023 @02:26PM (#36790989)
Exactly. If I need to move a few megabytes around, <scp -3> and a coffee or a few simple tickets is a good way. A year ago or so, I needed 600GB moved between two systems ASAP during an outage that'd turn into a money-bleed at 6am. If I piped that through the VPN and my workstation, I'd probably still be waiting today.
Re:Remote Code Execution in OpenSSH’s forwarded SSH-agent by LinuxBender on Wednesday July 19, 2023 @02:36PM (#36791154)
Some time take a look at lftp [1] and its mirror subsystem for this. It can break up a batch of files or even one large file into multiple SFTP streams. Another upside is that it can replicate most rsync behavior in a SFTP-Only Chroot account. Downside is that without a corresponding daemon like rsync on the other end directory enumeration is slow which isn't a problem if one does not have a complex directory structure.

Play around with the built in rate limit options total and per thread to keep the network people happy.

[1] - https://linux.die.net/man/1/lftp