Skip to content

Instantly share code, notes, and snippets.

@byteshiva
Created April 18, 2017 13:35
Show Gist options
  • Save byteshiva/cdf8bf0cb6b338f2af7652e8c143534e to your computer and use it in GitHub Desktop.
Save byteshiva/cdf8bf0cb6b338f2af7652e8c143534e to your computer and use it in GitHub Desktop.
mosh faster than ssh uses udp ssp
##### load it in the server #####
#!/bin/bash
#mosh-server
#sshd
moshserver=$(ps -aef | grep mosh-server | wc -l);
sshdstate=$(ps -aef | grep sshd | wc -l);
[[ $moshserver > 1 ]] && echo "didnt load mosh-server" || mosh-server
[[ $sshdstate > 1 ]] && echo "didnt load sshd" || sshd
# client side
mosh 192.168.10.110 -ssh "ssh -p 1022"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment