SSH I need more speed!

1 month ago
2

Increasing transfer speeds when using scp/sftp/ssh. Work in older environments and newer environments. Only need to try out new ciphers and maybe macs, No need to install anything which is a plus.
Bonus high speed ssh: HPN-SSH
00:00 Intro
1:35 benchmark the systems
7:03 comparing ciphers
15:30 HPN-SSH

Check for ssh/sshd for available ciphers and macs
Server side:
sudo sshd -T | egrep "cipher|macs"
nmap --script ssh2-enum-algos -sV -p 22 127.0.0.1

Client side:
ssh -Q cipher
ssh -Q mac
Also you can ssh look through debug logs for ciphers,macs
ssh –vv {SERVER}

Example using different cipher and mac
scp -c CIPHER -o "MACs=NEWMAC” file.to.copy SERVER:.
ssh -c CIPHER -m NEWMAC centos9

Testing: Network: iperf3
Server side: iperf3 -s -p 5555
Client side: iperf3 -c SERVERIP -p 5555

Testing Disk read:
hdparm -tT /dev/md0
dd if=/FILE of=/dev/null bs=4096 status=progress

Example sending data not using disk:
dd if=/dev/zero bs=4096 | ssh -c aes128-gcm@openssh.com centos9 'dd of=/dev/null bs=4096 status=progress

dd if=/dev/zero bs=4096 | hpnssh -oCipher=aes128-ctr centos9 -p 2222 'dd of=/dev/null bs=4096 status=progress'
dd if=/dev/zero bs=4096 | hpnssh -oNoneSwitch=yes -oNoneEnabled=yes -oNoneMacEnabled=yes centos9 -p 2222 'dd of=/dev/null bs=4096 status=progress'

Loading comments...