Tip: MOSH SSH Alternative (working)

proxxmoxx

Member
Jul 10, 2020
5
2
8
54
As an alternative to traditional SSH, I have successfully installed MOSH on Proxmox VE 6.2-9 and can manage it from Ubuntu 18.04.04.

This is not surprising, as PVE is now Debian-based (which is excellent). But if you are looking for a way to manage the Proxmox console remotely that is highly resistant to disconnected sessions, this may be helpful to you. It is different from screen and not necessarily better for all tasks. But it far exceeds Putty's capabilities in many situations, such as moving between different IPs within the same network or even when changing physical media (e.g. from wireless to wired docks).

To learn more about MOSH, you may wish to read here and here.

PVE Console> # apt install mosh
workstation> sudo apt install mosh
workstation> mosh root@<proxmox-ve.mydomain>


MOSH is key-based so on first connect you will be 'warned' the key is not confirmed as authentic. Once accepted you will only be warned if the accepted (server) key is different than previously accepted as authentic.

workstation> The authenticity of host 'proxmox-ve.mydomain (<no hostip for proxy command>)' can't be established.
workstation> ECDSA key fingerprint is SHA256: {long fingperprint}
workstation> Are you sure you want to continue connecting (yes/no)? yes
workstation> Warning: Permanently added 'proxmox-ve.mydomain' (ECDSA) to the list of known hosts.
workstation> root@proxmox-ve.mydomain's password:


When finished with your MOSH session, simply type 'exit' as you probably expect. It will dump you right back into your regular local terminal program.
 
Last edited:
  • Like
Reactions: Stoiko Ivanov
Thanks for sharing your experience here! - maybe you could add the 'TUTORIAL' prefix to the thread - that helps others to see that this is a HOWTO :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!