Skip to content

Commit

Permalink
Update ssh cipher benchmark.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Eyed authored Jul 16, 2023
1 parent aed95df commit 948f8f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ssh cipher benchmark.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
```bash
USER=user
HOST=host
for i in `ssh -Q cipher`;
do dd if=/dev/zero bs=1M cunt=100 2> /dev/null \
| ssh -c $i someuser@localhost "(time -p cat) > /dev/null" 2>&1 \
| ssh -c $i $USER@$HOST "(time -p cat) > /dev/null" 2>&1 \
| grep real | awk '{print "'$i': "100 / $2" MB/s" }'; done
```

#ssh #cipher
#ssh #cipher

0 comments on commit 948f8f1

Please sign in to comment.