<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>mosh &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/mosh/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Wed, 27 Aug 2025 13:13:13 +0000</lastBuildDate>
	<language>en-GB</language>
	<copyright>© Terence Eden. 🄯 CC BY-SA. See https://shkspr.mobi/blog/copyright-and-copyleft/</copyright>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>mosh &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Mosh supports .ssh/config]]></title>
		<link>https://shkspr.mobi/blog/2023/08/mosh-supports-ssh-config/</link>
					<comments>https://shkspr.mobi/blog/2023/08/mosh-supports-ssh-config/#comments</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Sun, 27 Aug 2023 11:34:47 +0000</pubDate>
		<category><![CDATA[HowTo]]></category><category><![CDATA[linux]]></category><category><![CDATA[mosh]]></category><category><![CDATA[ssh]]></category>		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=46624</guid>

					<description><![CDATA[I&#039;ve recently started using Mosh. It&#039;s a clever bit of software that keeps your SSH sessions running, even if your client goes offline or changes IP address.  But I find the syntax used to launch it a bit verbose and easy to forget.  A typical command is something like:  mosh --ssh=&#34;ssh -p 1234&#34; myname@example.com  Within the FAQ is a fleeting mention of how to configure Mosh. It says:  Q: How do …]]></description>
										<content:encoded>&lt;p&gt;I've recently started using &lt;a href="https://mosh.org/"&gt;Mosh&lt;/a&gt;. It's a clever bit of software that keeps your SSH sessions running, even if your client goes offline or changes IP address.&lt;/p&gt;

&lt;p&gt;But I find the syntax used to launch it a bit verbose and easy to forget.  A typical command is something like:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mosh --ssh="ssh -p 1234" myname@example.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Within the &lt;a href="https://mosh.org/#faq"&gt;FAQ&lt;/a&gt; is a fleeting mention of how to configure Mosh. It says:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Q: How do I use a different SSH port (not 22)?&lt;/p&gt;

&lt;p&gt;As of Mosh 1.2, you can pass arguments to ssh like so:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mosh remotehost --ssh="ssh -p 2222"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Or configure a host alias in &lt;code&gt;~/.ssh/config&lt;/code&gt; with a Port directive. Mosh will respect that too.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;What it &lt;em&gt;doesn't&lt;/em&gt; say is that Mosh will use all the directives in &lt;code&gt;~/.ssh/config&lt;/code&gt;. So you can have something like:&lt;/p&gt;

&lt;pre&gt;&lt;code class="language-_"&gt;Host home
     HostName example.com
     User myname
     Port 1234
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then you can run &lt;code&gt;mosh home&lt;/code&gt; to connect. If you don't want to use passwords, you can add &lt;code&gt;IdentityFile ~/.ssh/example.key&lt;/code&gt; or similar.&lt;/p&gt;

&lt;p&gt;Perhaps you already knew that - but I didn't.&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=46624&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2023/08/mosh-supports-ssh-config/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
