Browse Source

Break out ssh_util

R. Alex Matevish 1 year ago
parent
commit
6c63edcebb
2 changed files with 15 additions and 15 deletions
  1. 0 15
      ssh.sh
  2. 15 0
      ssh_util.sh

+ 0 - 15
ssh.sh

@@ -62,18 +62,3 @@ function fix-gpg-agent () {
     start-gpg-keychain;
 }
 
-#############################################################################
-#
-# SSH Utility Functions
-#
-#############################################################################
-
-
-# Get the average and instantanious ssh speed
-function sshspd () {
-    cat /dev/urandom | pv -ra | ssh $1 "cat > /dev/null";
-}
-
-function ap-wireshark {
-    bash -c "wireshark -k -i <(ssh ramatevish@$1 -p 22 tcpdump -i br0  -U -s0 -w - 'not port 22')"
-}

+ 15 - 0
ssh_util.sh

@@ -0,0 +1,15 @@
+#############################################################################
+#
+# SSH Utility Functions
+#
+#############################################################################
+
+
+# Get the average and instantanious ssh speed
+function sshspd () {
+    cat /dev/urandom | pv -ra | ssh $1 "cat > /dev/null";
+}
+
+function ap-wireshark {
+    bash -c "wireshark -k -i <(ssh ramatevish@$1 -p 22 tcpdump -i br0  -U -s0 -w - 'not port 22')"
+}