Last active
September 18, 2021 15:33
-
-
Save fionn/47e7d7c20eea858dc87c36196dd93f70 to your computer and use it in GitHub Desktop.
iperf server and client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=iperf3 server | |
After=network.target | |
[Service] | |
User=nobody | |
ExecStart=/usr/bin/iperf3 -s --rsa-private-key-path /etc/iperf3/private_not_protected.pem --authorized-users-path /etc/iperf3/iperf.auth | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
host=some.host | |
user=username | |
public_key=/path/to/public.key | |
t=timelimit | |
iperf3 -c $host --rsa-public-key-path $public_key --username $user -t $t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment