ssh_util.sh 439 B

123456789101112131415
  1. #############################################################################
  2. #
  3. # SSH Utility Functions
  4. #
  5. #############################################################################
  6. # Get the average and instantanious ssh speed
  7. function sshspd () {
  8. cat /dev/urandom | pv -ra | ssh $1 "cat > /dev/null";
  9. }
  10. function ap-wireshark {
  11. bash -c "wireshark -k -i <(ssh ramatevish@$1 -p 22 tcpdump -i br0 -U -s0 -w - 'not port 22')"
  12. }