<?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>ssh &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/ssh/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>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>ssh &#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[@edent]]></dc:creator>
		<pubDate>Sun, 27 Aug 2023 11:34:47 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<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><![CDATA[<p>I've recently started using <a href="https://mosh.org/">Mosh</a>. It's a clever bit of software that keeps your SSH sessions running, even if your client goes offline or changes IP address.</p>

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

<p><code>mosh --ssh="ssh -p 1234" myname@example.com</code></p>

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

<blockquote><p>Q: How do I use a different SSH port (not 22)?</p>

<p>As of Mosh 1.2, you can pass arguments to ssh like so:</p>

<p><code>mosh remotehost --ssh="ssh -p 2222"</code></p>

<p>Or configure a host alias in <code>~/.ssh/config</code> with a Port directive. Mosh will respect that too.</p></blockquote>

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

<pre><code class="language-_">Host home
     HostName example.com
     User myname
     Port 1234
</code></pre>

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

<p>Perhaps you already knew that - but I didn't.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=46624&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></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>
