![]() Sudo iptables -I INPUT 1 -p udp -dport 60000:61000 -j ACCEPTĪnd if you're running a server on a service like AWS, you'll need to open the ports through their firewall as well. If you are running a firewall like iptables, you'll have to open these ports manually: This isn't a major issue, but opening 1000 ports isn't really good security practice. And while you will usually use the same port for the duration of the connection, it's not guaranteed. Mosh can use any port between 60000-61000, depending on the IP address of the connection. The main issue with Mosh is that it requires a lot of ports to be open. It uses AES-128 encryption for traffic sent over UDP, so your traffic can't be sniffed. Mosh makes the initial connection over SSH, so the authentication is about as secure as SSH is. The benefit here is that if your SSH session gets disconnected, it doesn't affect what's going on on the server, similarly to Mosh. Tmux splits your terminal into multiple panes, each with multiple tabs, that all persist on the server across SSH sessions. If long-term persistence is all you're after, you can instead use tmux It even gives underlined typing predictions, which is also handy. Mosh is more intelligent, and will display your typing in real-time. This is because the SSH client waits for a TCP response from the server before showing your typing, in case the server intercepts it for some reason. It also significantly reduces latency if you've ever tried to SSH to a slow server, you'll notice even your keystrokes become slow and unresponsive. ![]() If your connection drops out for a bit, Mosh will reconnect you as soon as it comes back, leaving your commands in place as you were typing. ![]() Mosh's UDP-based transfer system makes it more stable than traditional SSH, as it handles packet loss much more effectively. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |