<?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>ssh server Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ssh-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 03 Dec 2019 21:49:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to enable SSH in Windows Server 2019</title>
		<link>https://www.osradar.com/how-to-enable-ssh-in-windows-server-2019/</link>
					<comments>https://www.osradar.com/how-to-enable-ssh-in-windows-server-2019/#comments</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Tue, 03 Dec 2019 21:49:18 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh client]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[Windows server]]></category>
		<category><![CDATA[Windows server 2019]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16198</guid>

					<description><![CDATA[<p>Hey, what&#8217;s up? This time we&#8217;re going to talk about enabling SSH on Windows Server 2019. In the previous post, we have talked about different protocols of remote connection via terminal. In fact, we saw how to enable Telnet and SSH in Windows 10 and Windows Server 2016/2019. The security advantage offered by SSH over [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-enable-ssh-in-windows-server-2019/">How to enable SSH in Windows Server 2019</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hey, what&#8217;s up? This time we&#8217;re going to talk about enabling <a href="https://www.ssh.com/ssh/protocol/" target="_blank" rel="noreferrer noopener" aria-label="SSH (opens in a new tab)">SSH</a> on Windows Server 2019. In the previous post, we have talked about different protocols of remote connection via terminal. In fact, we saw how to enable <a rel="noreferrer noopener" aria-label="Telnet (opens in a new tab)" href="https://www.osradar.com/how-to-enable-telnet-on-windows-server-2016-2019/" target="_blank">Telnet</a> and <a rel="noreferrer noopener" aria-label="SSH (opens in a new tab)" href="https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/" target="_blank">SSH</a> in Windows 10 and Windows Server 2016/2019. The security advantage offered by SSH over Telnet was also established. As we have seen, the implementation of the SSH protocol in Windows 10 provides a security advantage. Now, we will see how to enable SSH on Windows Server 2019.</p>



<h2>Install SSH Server on Windows Server 2019</h2>



<p>The first thing you have to do is open a PowerShell with administrative privileges. To do this, press the Win+X combination, then add the following command:</p>



<pre class="wp-block-preformatted"> <code>Get-WindowsCapability</code> <code>-Online</code> <code>-Name</code> <code>Open*</code> </pre>



<p>As you can see, the OpenSSH Client and OpenSSH Server packages are available for installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh.jpg" alt="OpenSSH Client and OpenSSH Server packages, available for installation." class="wp-image-16206" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>OpenSSH Client and OpenSSH Server packages, available for installation.</figcaption></figure>



<p>Next, we&#8217;re going to install the SSH client. With this intention please type the following command in a PowerShell with administrative privileges:</p>



<pre class="wp-block-preformatted"> <code>Add-WindowsCapability</code> <code>-Online</code> <code>-Name</code> <code>OpenSSH.Server~~~~0.0.1.0</code> </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh2.jpg" alt="Installing the SSH server" class="wp-image-16208" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Installing the SSH server</figcaption></figure>



<h2>Check the operation of the SSH server.</h2>



<p>To check the status of the SSH server installation, run the following commands:</p>



<pre class="wp-block-preformatted"> <code>Get-Service</code> <code>sshd</code> 
 <code>Get-Service</code> <code>ssh-agent</code> </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh3.jpg" alt="Checking SSH server status" class="wp-image-16214" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Checking SSH server status</figcaption></figure>



<p>As you can see, the service is stopped. So before you start them, you need to enable them to start with Windows startup. With that intention write the following in the PowerShell:</p>



<pre class="wp-block-preformatted"> <code>Start-Service</code> <code>sshd</code> 
 <code>Start-Service</code> <code>ssh-agent</code> </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh4.jpg" alt="Starting SSH server services" class="wp-image-16216" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh4.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh4-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh4-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh4-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh4-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh4-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Starting SSH server services</figcaption></figure>



<h2>Testing the SSH server</h2>



<p>Once the OpenSSH server is installed and configured in Windows Server, you only need to test it. If you want to know how to use an SSH client in Windows 10, please check <a rel="noreferrer noopener" aria-label="here (opens in a new tab)" href="https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/" target="_blank">here</a>. Consequently, you only have to open a console from Windows 10 or any device with an SSH client and type the following:</p>



<pre class="wp-block-preformatted"> ssh administrator@PMserver</pre>



<p>Please keep in mind that after the at you must type the name of the server you want to connect to. A warning window will appear, where you have to type Yes and then press Enter. Now, enter the password corresponding to the administrator user.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sh.jpg" alt="Connecting to the SSH server" class="wp-image-16219" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sh.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sh-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sh-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sh-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sh-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sh-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Connecting to the SSH server</figcaption></figure>



<p>After entering the password, the connection is successfully established. Now you can enter any command as if it were physically in front of the server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sh2.jpg" alt="OpenSSH client running the command view" class="wp-image-16221" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sh2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sh2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sh2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sh2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sh2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sh2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>OpenSSH client running the command view</figcaption></figure>



<h2>Installing the SSH client on Windows Server 2019.</h2>



<p>After configuring the OpenSSH server, we will enable the SSH client. Consequently, we will be able to connect to another SSH server from our Windows Server computer. With this intention, type the following command in a PowerShell with administrative privileges:</p>



<pre class="wp-block-preformatted"> <code>Add-WindowsCapability</code> <code>-Online</code> <code>-Name</code> <code>OpenSSH.Client~~~~0.0.1.0</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh7.jpg" alt="Enabling the OpenSSH client on Windows Server" class="wp-image-16223" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh7.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh7-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh7-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh7-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh7-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh7-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enabling the OpenSSH client on Windows Server</figcaption></figure>



<p>To test the functioning of the client, just type <em>SSH</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh8.jpg" alt="Testing SSH Client Functioning" class="wp-image-16225" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh8.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh8-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh8-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh8-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh8-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh8-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Testing SSH Client Functioning</figcaption></figure>



<h2>Using the OpenSSH client</h2>



<p>Next, let&#8217;s test the connection by opening a cmd and entering the ssh command, followed by the user name, the @ and the IP address of the server. Then, add the user&#8217;s password and press enter.</p>



<pre class="wp-block-preformatted">ssh coolr@192.168.X.XX</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh9-1.jpg" alt="Add the user name, IP address and password -" class="wp-image-16236" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh9-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh9-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh9-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh9-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh9-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh9-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Add the user name, IP address and password &#8211;</figcaption></figure>



<p>Finally, we access a remote computer using the SSH protocol.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/ssh10.jpg" alt="OpenSSH client running the DIR command." class="wp-image-16230" srcset="https://www.osradar.com/wp-content/uploads/2019/12/ssh10.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/ssh10-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/ssh10-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/ssh10-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/ssh10-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/ssh10-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>OpenSSH client running the DIR command.</figcaption></figure>



<p>Finally, we have seen how to enable a client and an SSH server in Windows Server.  Under those circumstances, it is now possible to connect to any OpenSSH server. It is also possible to remotely access our server using this technology. That&#8217;s all for now, I hope you enjoyed this tutorial.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-enable-ssh-in-windows-server-2019/">How to enable SSH in Windows Server 2019</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-enable-ssh-in-windows-server-2019/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install an SSH client and server in Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sun, 01 Dec 2019 01:27:02 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh client]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[ssh terminal]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16135</guid>

					<description><![CDATA[<p>Hello, how are you? In the previous article, we saw how to enable Telnet in Windows Server. This protocol is very useful, but it has a serious security breach. For that reason, we recommend using the SSH connection. It is a remote administration protocol that allows users to control and modify their remote servers over [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/">How to install an SSH client and server in Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, how are you? In the previous article, we saw how to enable Telnet in Windows Server. This protocol is very useful, but it has a serious security breach. For that reason, we recommend using the SSH connection. It is a remote administration protocol that allows users to control and modify their remote servers over the Internet. To do this, it uses an authentication mechanism. The protocol works by authenticating a remote user and transferring inputs from the client to the host. It then retransmits the output back to the client. But most importantly, the communication is delivered encrypted so the security is much higher than Telnet. In view of the above, let&#8217;s see how to install an SSH client and server in Windows 10.</p>



<h2>Prerequisite</h2>



<p>In order to enjoy all the benefits of this protocol, it is necessary to have a Windows version equal to or greater than 1803.</p>



<h2>Installing the SSH client</h2>



<p>First, let&#8217;s verify the SSH client installation. With this intention, enter in <a href="https://support.microsoft.com/en-us/help/17142/windows-10-find-settings" target="_blank" rel="noreferrer noopener" aria-label="Windows Settings (opens in a new tab)">Windows Settings</a> pressing the combination Win+I. Once there, select <strong>Apps</strong></p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh.jpg" alt="Entering the Apps section" class="wp-image-16138" width="571" height="405" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh-591x420.jpg 591w" sizes="(max-width: 571px) 100vw, 571px" /><figcaption>Entering the Apps section</figcaption></figure>



<p>Then click on <strong>Optional features</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh2.jpg" alt="Select optional features" class="wp-image-16143" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Select optional features</figcaption></figure>



<p>In the next window, you will see all the optional functions. Then scroll down to find the <strong>OpenSSH Client</strong>. In this case, the client is already installed, so there is nothing else to do. In case it is not, just click on the install button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh3.jpg" alt="Installing the SSH client" class="wp-image-16146" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Installing the SSH client</figcaption></figure>



<h2>Add SSH server in Windows 10</h2>



<p>From the previous screen please click on <strong>Add a feature</strong>:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh4.jpg" alt="Adding Features" class="wp-image-16148" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh4.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh4-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh4-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh4-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh4-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh4-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Adding Features</figcaption></figure>



<p>Now scroll down and select OpenSSH Server. Press install and wait a few seconds while the function is installed. Once the action is executed, please restart the computer to confirm the changes.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh5.jpg" alt="Install the OpenSSH server" class="wp-image-16150" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh5-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh5-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh5-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh5-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh5-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Install the OpenSSH server</figcaption></figure>



<h2>Configure OpenSSH Server to start with Windows.</h2>



<p>From now on the client and the SSH server are installed. For the SSH server to be activated every time we start Windows we will have to do the following. Press the Win+R combination and run <em>services.msc</em></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="399" height="208" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh6.jpg" alt="Run services.msc" class="wp-image-16154" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh6.jpg 399w, https://www.osradar.com/wp-content/uploads/2019/11/ssh6-300x156.jpg 300w" sizes="(max-width: 399px) 100vw, 399px" /><figcaption>Run services.msc</figcaption></figure>



<p>Then scroll down and select <strong>OpenSSH SSH Serve</strong>r and<strong> OpenSSH Authentication Agent</strong>:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh7.jpg" alt="Select the two SSH services" class="wp-image-16156" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh7.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh7-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh7-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh7-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh7-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh7-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Select the two SSH services</figcaption></figure>



<p>Now what we are going to do is to activate them so that they start every time you start Windows. With that intention double-click on <strong>OpenSSH Authentication Agent</strong> and in the startup type select<em> Automatic</em>. Then press Apply and finally accept.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="406" height="468" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh8-1.jpg" alt="Setting the automatic startup of OpenSSH Authentication Agent " class="wp-image-16160" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh8-1.jpg 406w, https://www.osradar.com/wp-content/uploads/2019/11/ssh8-1-260x300.jpg 260w, https://www.osradar.com/wp-content/uploads/2019/11/ssh8-1-364x420.jpg 364w" sizes="(max-width: 406px) 100vw, 406px" /><figcaption> <em>Setting the automatic startup of OpenSSH Authentication Agent </em> </figcaption></figure>



<p>We will repeat this procedure with the  <strong>OpenSHH SSH Server</strong> Service</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="406" height="468" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh9.jpg" alt=" Setting the automatic startup of  OpenSHH SSH Server " class="wp-image-16159" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh9.jpg 406w, https://www.osradar.com/wp-content/uploads/2019/11/ssh9-260x300.jpg 260w, https://www.osradar.com/wp-content/uploads/2019/11/ssh9-364x420.jpg 364w" sizes="(max-width: 406px) 100vw, 406px" /><figcaption> <em>Setting the automatic startup of </em> <strong>OpenSHH SSH Server</strong> </figcaption></figure>



<p>As we did in the previous step, restart the computer to set the changes. With these steps, we will be able to install the server and the SSH client in Windows 10. </p>



<h2>Testing the SSH client and server</h2>



<p>After restarting the computer, it is necessary to verify if the SSH services are active. To do this, open a PowerShell as administrator by pressing the Win+X combination.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="264" height="578" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh10.jpg" alt="Runs a PowerShell as administrator." class="wp-image-16164" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh10.jpg 264w, https://www.osradar.com/wp-content/uploads/2019/11/ssh10-137x300.jpg 137w, https://www.osradar.com/wp-content/uploads/2019/11/ssh10-192x420.jpg 192w" sizes="(max-width: 264px) 100vw, 264px" /><figcaption>Runs a PowerShell as administrator.</figcaption></figure>



<p>Then execute the following command:</p>



<pre class="wp-block-preformatted"> Get-Service -Name *ssh* </pre>



<p>If all goes well, you will see the next result in the PowerShell, showing the two services running:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh11.jpg" alt="" class="wp-image-16166" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh11.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh11-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh11-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh11-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh11-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh11-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Configuring the Windows firewall</h2>



<p>In order to have access to our computer through SSH we have to configure the Windows Firewall. To do this we open a PowerShell as administrator and execute the following command:</p>



<pre class="wp-block-preformatted">.\netsh advfirewall firewall add rule name="SSHD Port" dir=in action=allow protocol=TCP localport=22 </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh12.jpg" alt="Opening port 22 to allow SSH connections:" class="wp-image-16168" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh12.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh12-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh12-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh12-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh12-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh12-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Opening port 22 to allow SSH connections:</figcaption></figure>



<p>It then tests whether the SSH server is listening on port 22. For this purpose, from a PowerShell with administrator privileges runs the following command:</p>



<pre class="wp-block-preformatted">.\netstat -bano | .\more.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh14.jpg" alt="" class="wp-image-16170" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh14.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh14-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh14-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh14-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh14-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh14-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Connect to an SSH server from Windows.</h2>



<p>From now on we can connect remotely to an SSH server. To execute it, it is necessary to know 3 parameters:</p>



<ul><li>User name</li><li>Server IP Address</li><li>Know the port where the SSH server is listening. In this case, the port is 22.</li><li>User password</li></ul>



<p>Once this data is known, open a PowerShell and run the following command:</p>



<pre class="wp-block-preformatted"> ssh -p 22 coolr@192.168.1.58</pre>



<p>Then add the password to access the remote computer. And you will have access via PowerShell to the SSH server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/ssh15.jpg" alt="Accessing an SSH server from the Windows 10 PowerShell." class="wp-image-16172" srcset="https://www.osradar.com/wp-content/uploads/2019/11/ssh15.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/ssh15-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/ssh15-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/ssh15-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/ssh15-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/ssh15-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Accessing an SSH server from the Windows 10 PowerShell.</figcaption></figure>



<h2>Conclusion</h2>



<p>Finally, we have seen how to install an SSH client and server in Windows 10. This way we will be able to remotely manage any device that uses this protocol. Additionally, security is increased because the communication between host and client is encrypted. In this way, our data remains safe from possible attackers. This is all for the moments, before saying goodbye I want to invite you to see our post about <a href="https://www.osradar.com/how-to-enable-telnet-on-windows-server-2016-2019/" target="_blank" rel="noreferrer noopener" aria-label="Telnet (opens in a new tab)">Telnet</a> in Windows Server.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/">How to install an SSH client and server in Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-an-ssh-client-and-server-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
