Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- my_ssh_port='[CENSORED]'
- my_ssh_user='[CENSORED]'
- my_identity_file='/home/[CENSORED]/.ssh/id_rsa'
- localhost_ip='127.0.0.1'
- black_hole='/dev/null'
- trap cancel 1 2 3 6
- cancel()
- {
- echo
- echo
- echo "Cancelling..."
- exit 1
- }
- # cipher list
- for cipher in
- 3des-cbc aes128-cbc aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se aes128-ctr aes192-ctr
- aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com
- do
- echo
- echo $cipher
- # copy command
- # port
- # SSH option(s)
- # my private key
- # file to copy from localhost RAM disk
- # destination for the file
- scp
- -P "${my_ssh_port}"
- -o Cipher="${cipher}"
- -i "${my_identity_file}"
- /mnt/tmpfs/NonCompressibleEncryptedFile4GiB
- "${my_ssh_user}"@"${localhost_ip}":"${black_hole}"
- done
- 3des-cbc
- NonCompressibleEncryptedFile4GiB 100% 3804MB 269.9MB/s 00:14
- aes128-cbc
- NonCompressibleEncryptedFile4GiB 100% 3804MB 260.9MB/s 00:14
- aes192-cbc
- NonCompressibleEncryptedFile4GiB 100% 3804MB 268.0MB/s 00:14
- aes256-cbc
- NonCompressibleEncryptedFile4GiB 100% 3804MB 269.4MB/s 00:14
- rijndael-cbc@lysator.liu.se
- NonCompressibleEncryptedFile4GiB 100% 3804MB 268.7MB/s 00:14
- aes128-ctr
- NonCompressibleEncryptedFile4GiB 100% 3804MB 265.6MB/s 00:14
- aes192-ctr
- NonCompressibleEncryptedFile4GiB 100% 3804MB 265.9MB/s 00:14
- aes256-ctr
- NonCompressibleEncryptedFile4GiB 100% 3804MB 260.6MB/s 00:14
- aes128-gcm@openssh.com
- NonCompressibleEncryptedFile4GiB 100% 3804MB 265.3MB/s 00:14
- aes256-gcm@openssh.com
- NonCompressibleEncryptedFile4GiB 100% 3804MB 270.8MB/s 00:14
- chacha20-poly1305@openssh.com
- NonCompressibleEncryptedFile4GiB 100% 3804MB 272.1MB/s 00:13
- $ pv < /mnt/tmpfs/NonCompressibleEncryptedFile4GiB > /dev/null
- 3,71GiB 0:00:00 [7,24GiB/s] [================================>] 100%
- fs=/mnt/tmpfs/NonCompressibleEncryptedFile4GiB # source file
- fd=/dev/stdout # send to stdout
- fn=/dev/null # null device
- $ dd if=$fs of=$fn
- 28398935 bytes (28 MB, 27 MiB) copied, 0.16205 s, 175 MB/s
- $ scp $fs $fd | dd of=$fn
- 28398935 bytes (28 MB, 27 MiB) copied, 0.225373 s, 126 MB/s
Add Comment
Please, Sign In to add comment