37 ms·
Yeah I can see that. How about something like $ ssh -J <bastion> hostX base64 srcfile | ssh -J <bastion> -t "base64 -d /dev/stdin > dstfile" Having to use
by andreareina 5y ago
Yeah I can see that. How about something like
$ ssh -J <bastion> hostX base64 srcfile | ssh -J <bastion> -t "base64 -d /dev/stdin > dstfile"
Having to use the local machine as an intermediary is a bit hacky but I know something like this is how emacs handles remote files (IIRC it also uses gzip).
- tryauuum 5y agono, it's way too hacky, don't want to copy several GBs of files through the intermediary my colleagues used approach with manually launching nc on hosts X and Y to avoid using the intermediate host. But that's also hacky ( though probably faster than ssh due to lack of encryption )