<?xml version="1.0" encoding="UTF-8"?><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>Mintty &#8211; Sandy Scott&#039;s Web Spot</title>
	<atom:link href="https://www.sandyscott.net/tag/mintty/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sandyscott.net</link>
	<description>My little corner of the web</description>
	<lastBuildDate>Thu, 14 May 2020 07:27:59 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Best ssh setup for windows</title>
		<link>https://www.sandyscott.net/2020/05/best-ssh-setup-for-windows/</link>
					<comments>https://www.sandyscott.net/2020/05/best-ssh-setup-for-windows/#respond</comments>
		
		<dc:creator><![CDATA[Sandy]]></dc:creator>
		<pubDate>Sun, 03 May 2020 15:51:57 +0000</pubDate>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mintty]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Windows Subsystem for Linux]]></category>
		<category><![CDATA[WSL]]></category>
		<category><![CDATA[WSLtty]]></category>
		<guid isPermaLink="false">https://www.sandyscott.net/?p=280</guid>

					<description><![CDATA[I&#8217;ve tried quite a few different setups for administering my various linux boxen from Windows, and this is currently my favourite: Mintty for WSL (aka WSLtty). Here&#8217;s how to set it up. Install Windows Subsystem for Linux (WSL): Open Powershell as an administrator Enter this command:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux When...<p> <a class="continue-reading-link" href="https://www.sandyscott.net/2020/05/best-ssh-setup-for-windows/"><span>Continue reading</span><i class="crycon-right-dir"></i></a> </p>]]></description>
										<content:encoded><![CDATA[
<p>I&#8217;ve tried quite a few different setups for administering my various linux boxen from Windows, and this is currently my favourite: Mintty for WSL (aka WSLtty).</p>



<p>Here&#8217;s how to set it up.</p>



<h2 class="wp-block-heading">Install Windows Subsystem for Linux (WSL):</h2>



<ol class="wp-block-list"><li>Open Powershell as an administrator</li><li>Enter this command:<br><code>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux</code></li><li>When it&#8217;s done, restart your computer.</li></ol>



<h2 class="wp-block-heading">Install Linux (on WSL)</h2>



<p>I recommend Debian &#8211; it&#8217;s well supported by the community, and a pretty lightweight install compared to some of the other choices.</p>



<p>For the local windows store</p>



<ol class="wp-block-list"><li>Open the Windows Store</li><li>Search for &#8220;Debian&#8221;</li><li>Click on Get</li><li>Click on Install</li></ol>



<p>Once it&#8217;s installed:</p>



<ol class="wp-block-list"><li>Find and click on the Debian app in your start menu</li><li>Wait for a moment, then set up a username for this local installation of linux. It&#8217;ll be slightly more convenient if you use the same username you have on your remote linux machines.</li><li>Exit the terminal: type:<br><code>exit</code><br>and press enter.</li></ol>



<p>This info came from <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">https://docs.microsoft.com/en-us/windows/wsl/install-win10</a></p>



<h2 class="wp-block-heading">Install WSLtty</h2>



<ol class="wp-block-list"><li>Go to <a href="https://github.com/mintty/wsltty/releases/latest">https://github.com/mintty/wsltty/releases/latest</a></li><li>Choose the right release for your system &#8211; unless you have a fairly old computer it&#8217;ll be the one ending in &#8220;x86_64.exe&#8221;</li><li>Download and install.</li><li>This app isn&#8217;t digitally signed in a way approved by Microsoft, so a warning will pop up (&#8220;Windows protected your PC&#8221;). Click <strong>More info</strong> then <strong>Run anyway</strong>.</li></ol>



<h2 class="wp-block-heading">Run and connect!</h2>



<p>Mintty should have installed a shortcut called &#8220;WSL Terminal&#8221; with the linux penguin icon, click on it and you&#8217;ll get a black terminal windows with prompt in the top left: <code>[your unix username]@[computer name]:~$</code></p>



<p>Let&#8217;s get your local linux system up to date:</p>



<ol class="wp-block-list"><li>Type <code>sudo apt update</code> then press enter.</li><li>Type in your local linux password (that you created earlier)</li><li><code>sudo apt upgrade</code>, then press <code>y</code> and enter when asked if you want to continue</li><li>It may take a little while, depending on the speed of your pc and internet connection.</li><li>Finally lets install ssh:<br><code>sudo apt install ssh</code></li></ol>



<p>Now we can connect to a remote linux computer:</p>



<p>If the username on the remote computer is the same as the one you created earlier, the command is:<br><code>ssh remotelinuxcomputer.example.com</code> or <code>ssh 192.168.2.1</code>, when you put in the computer&#8217;s name or ip address.</p>



<p>If the username is different, no problem, do this:<br><code>ssh joebloggs@remotelinuxcomputer.example.com</code><br>or<br><code>ssh joebloggs@192.168.2.1</code></p>



<p>In either case, you will probably get a warning about &#8220;the authenticity of the host xxxxx can&#8217;t be established&#8221;. Don&#8217;t worry, just type yes, then enter you password for the remote computer, and you&#8217;re in!</p>



<h2 class="wp-block-heading">One final tip</h2>



<p>If ssh into remote computers is all your do with this, then log out, the login command will be remembered by the shell, even if you reboot.<br>Next time you open the WSL terminal, press the &#8220;Up&#8221; as many times as you need to scroll through the command history and find the one you wanted.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sandyscott.net/2020/05/best-ssh-setup-for-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
