<?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 &#8211; Nexto</title>
	<atom:link href="https://nexto.ch/category/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>https://nexto.ch</link>
	<description>Business Empowerment</description>
	<lastBuildDate>Sat, 26 Oct 2024 15:36:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Using SSH for Secure Remote Access</title>
		<link>https://nexto.ch/ssh/using-ssh-for-secure-remote-access/</link>
		
		<dc:creator><![CDATA[Nexto]]></dc:creator>
		<pubDate>Thu, 01 Aug 2024 14:17:51 +0000</pubDate>
				<category><![CDATA[SSH]]></category>
		<guid isPermaLink="false">https://nexto.ch/?p=226594</guid>

					<description><![CDATA[Introduction SSH (Secure Shell) is a protocol that allows secure remote login...]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>SSH (Secure Shell) is a protocol that allows secure remote login and other network services over an unsecured network. This tutorial will show you how to use SSH to connect to remote servers securely.</p>
<h4>Prerequisites</h4>
<ul>
<li>A remote server with SSH access.</li>
<li>SSH client installed on your local machine (usually pre-installed on Linux and macOS).</li>
</ul>
<h5>Step 1: Install SSH Server on Remote Machine (if necessary)</h5>
<p>On the remote server, ensure that OpenSSH Server is installed:</p>
<pre>sudo apt update
sudo apt install openssh-server -y
</pre>
<h5>Step 2: Find the Server’s IP Address</h5>
<p>On the remote server, find its IP address:</p>
<pre>ip addr show
</pre>
<p>Look for the inet address under the network interface (e.g., eth0).</p>
<h5>Step 3: Connect to the Remote Server</h5>
<p>From your local machine, open a terminal and connect using SSH:</p>
<pre>ssh username@server_ip
</pre>
<p>Replace username with your remote server’s user and server_ip with the IP address.</p>
<h5>Step 4: Accept the Host Key</h5>
<p>On the first connection, you’ll be asked to confirm the server’s fingerprint:</p>
<pre>The authenticity of host 'server_ip' can't be established.
Are you sure you want to continue connecting (yes/no)?
</pre>
<p>Type yes and press Enter.</p>
<h4>Step 5: Enter Password</h4>
<p>You’ll be prompted to enter the password for the user account.</p>
<h4>Step 6: Using SSH Keys for Authentication (Recommended)</h4>
<p>Generate an SSH key pair on your local machine:</p>
<pre>ssh-keygen -t rsa -b 4096
</pre>
<p>Press Enter to accept the default file location and optionally set a passphrase.</p>
<p>Copy the public key to the remote server:</p>
<pre>ssh-copy-id username@server_ip
</pre>
<p>Alternatively, manually copy the contents of ~/.ssh/id_rsa.pub to the remote server’s ~/.ssh/authorized_keys file.</p>
<h5>Step 7: Disable Password Authentication (Optional)</h5>
<p>For enhanced security, you can disable password authentication:</p>
<ul>
<li>Edit the SSH configuration file on the remote server:</li>
</ul>
<pre>sudo nano /etc/ssh/sshd_config
</pre>
<ul>
<li>Set the following parameters:</li>
</ul>
<pre>PasswordAuthentication no
ChallengeResponseAuthentication no
</pre>
<ul>
<li>Restart SSH service:</li>
</ul>
<pre>sudo systemctl restart sshd
</pre>
<h5>Step 8: Secure SSH Configuration</h5>
<p>Additional security measures:</p>
<ul>
<li>Change the default SSH port (e.g., to 2222):</li>
</ul>
<pre>Port 2222
</pre>
<p>Remember to update firewall rules accordingly.</p>
<ul>
<li>Allow specific users:</li>
</ul>
<pre>AllowUsers your_username
</pre>
<h4>Conclusion</h4>
<p>You have learned how to use SSH for secure remote access, including setting up key-based authentication and securing the SSH server configuration.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
