Tag Archives: mobile shell

Ubuntu: mosh

mosh (Mobile shell)

Ubuntu 14.04 LTS

1
2
3
4
5
6
7
8
9
10
11
12
echo >> /etc/apt/sources.list.d/mosh.list << EOF
deb http://ppa.launchpad.net/keithw/mosh/ubuntu trusty main
deb-src http://ppa.launchpad.net/keithw/mosh/ubuntu trusty main
EOF


apt-get update
get error about key(for example: 7BF6DFCD) copy it and insert
gpg --keyserver hkp://keys.gnupg.net --recv-keys 7BF6DFCD
gpg -a --export 7BF6DFCD | sudo apt-key add -

apt-get update
apt-get install mosh

OS X

1
brew install mosh

Usage

1
2
mosh example.com # it connects with current user on default ssh port(22)
mosh --ssh="ssh -p33" alter@example.com # it connects with user "alter" to port 33