Created
April 18, 2017 13:35
-
-
Save byteshiva/cdf8bf0cb6b338f2af7652e8c143534e to your computer and use it in GitHub Desktop.
mosh faster than ssh uses udp ssp
This file contains hidden or 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
##### 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