mosh——Linux下基於UDP的SSH鏈接工具

一:TCP over UDP

一、安裝moshhtml

yum install epel-release
yum
install mosh

 

二、使用客戶端鏈接git

mosh user@ip -p 60001

 

三、查看mosh的鏈接(默認UDP 60001端口,防火牆需放行)github

netstat -unlp | grep mosh

 

二:純UDP鏈接

一、啓動mosh-server服務端redis

mosh-server new -c 256 -s -l LANG=en_US.UTF-8 -p 60000

顯示以下:瀏覽器

MOSH CONNECT 60000 3aaxFsHQzzL6pb35pDzC+Q

mosh-server (mosh 1.3.0) [build mosh 1.3.0]
Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 

二、使用生成的key經過mosh-client鏈接bash

MOSH_KEY=9S9Bz/KDYVMNyiJg2267nw mosh-client ip 60000

 

備註:若是提示字符集問題,請在~/.bashrc中添加工具

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

 

最後,推薦一個經過瀏覽器直接訪問終端的工具gotty(https://github.com/yudai/gottyui

相關文章
相關標籤/搜索