Install Mosh on FreeNAS

Status
Not open for further replies.

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Sounds like it's been included in FreeNAS since 11.0.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Where do I find it? I'm looking at my 11.6, and I don't see it in any obvious place.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Where do I find it?
Type mosh in the shell.

Code:
root@freenas:~ # mosh
Usage: /usr/local/bin/mosh [options] [--] [user@]host [command...]
		--client=PATH		mosh client on local machine
								(default: "mosh-client")
		--server=COMMAND	 mosh server on remote machine
								(default: "mosh-server")

		--predict=adaptive	  local echo for slower links [default]
-a	  --predict=always		use local echo even on fast links
-n	  --predict=never		 never use local echo
		--predict=experimental  aggressively echo even when incorrect

-4	  --family=inet		use IPv4 only
-6	  --family=inet6	   use IPv6 only
		--family=auto		autodetect network type for single-family hosts only
		--family=all		 try all network types
		--family=prefer-inet use all network types, but try IPv4 first [default]
		--family=prefer-inet6 use all network types, but try IPv6 first
-p PORT[:PORT2]
		--port=PORT[:PORT2]  server-side UDP port or range
								(No effect on server-side SSH port)
		--bind-server={ssh|any|IP}  ask the server to reply from an IP address
									   (default: "ssh")

		--ssh=COMMAND		ssh command to run when setting up session
								(example: "ssh -p 2222")
								(default: "ssh")

		--no-ssh-pty		 do not allocate a pseudo tty on ssh connection

		--no-init			do not send terminal initialization string

		--local			  run mosh-server locally without using ssh

		--experimental-remote-ip=(local|remote|proxy)  select the method for
							 discovering the remote IP address to use for mosh
							 (default: "proxy")

		--help			   this message
		--version			version and copyright information

Please report bugs to mosh-devel@mit.edu.
Mosh home page: https://mosh.org

 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Well let's give it a try. I really do suppose it's as simple as simply installing it; doesn't need to be a service you toggle on and off because it doesn't actually have any listeners or anything, and the only way to use mosh is if you're authenticated anyway against ssh, so....

Yeah.

Obvious now that you've said it. Will give it a try now.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Well it certainly doesn't work for me out of the box. I made the necessary UDP port forward, changed the command line to accommodate, and I appear to get a proper ssh authentication, and a proper instantiation of mosh, but then there's no communication. Very odd. I will go through it a bit, see what the issue is.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Got it. Idiosyncrasy of Mikro-tik router was the problem.

Works great.
 
Status
Not open for further replies.
Top