mosh Verified for current stable LTS

Mosh Command: Connect Using Specific Port

Use for connect using specific port with Mosh. Exact CLI syntax to connect using specific port using Mosh.

When to use this: Use for connect using specific port with Mosh.

Command Syntax

mosh --ssh="ssh -p <2222>" <username>@<remote_host>

Command Breakdown

--ssh="ssh
Command Option
Tool-specific option used by this command invocation.
-p
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to connect using specific port using Mosh.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Mosh directory