<?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 Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/ssh/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Fri, 05 Jan 2024 00:50:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>ssh Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/ssh/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Securing Linux Servers Against Brute Force Attacks</title>
		<link>https://serverstadium.com/knowledge-base/securing-linux-servers-against-brute-force-attacks/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 05 Jan 2024 00:50:54 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11881</guid>

					<description><![CDATA[<p>Introduction Enhancing security on ServerStadium’s infrastructure (VM Pricing, Dedicated Servers) to defend against brute force attacks is essential for safeguarding servers. This involves deploying strategies to detect and block repeated unauthorized login attempts. Prerequisites A ServerStadium VM or dedicated server (VM Pricing, Dedicated Servers) Basic knowledge of Linux server administration and network security. SSH access&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/securing-linux-servers-against-brute-force-attacks/">Securing Linux Servers Against Brute Force Attacks</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Enhancing security on ServerStadium’s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>) to defend against brute force attacks is essential for safeguarding servers. This involves deploying strategies to detect and block repeated unauthorized login attempts.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>)</li>
<li>Basic knowledge of Linux server administration and network security.</li>
<li>SSH access to the server.</li>
</ul>
<h3>Step 1: Strengthen Password Policies</h3>
<ol>
<li><strong>Implement Strong Passwords</strong>:
<p>Enforce strong password policies. Use complex passwords and regularly update them.</li>
<li><strong>Password Aging</strong>:
<p>Configure password aging to compel periodic password changes:</p>
<div class="shortcode-code">
<p> sudo chage -M 60 -m 7 -W 7 username </p></div></li>
</ol>
<h3>Step 2: Configure SSH for Enhanced Security</h3>
<ol>
<li><strong>Disable Root Login</strong>:
<p>Edit the SSH configuration file (<code>/etc/ssh/sshd_config</code>) to disable root login:</p>
<div class="shortcode-code">
<p> PermitRootLogin no </p></div></li>
<li><strong>Change Default SSH Port</strong>:
<p>Modify the default SSH port to reduce the risk of automated attacks:</p>
<div class="shortcode-code">
<p> Port 2244 </p></div></li>
<li><strong>Use Public Key Authentication</strong>:
<p>Prefer SSH key-based authentication over passwords for added security.</li>
</ol>
<h3>Step 3: Install and Configure Fail2Ban</h3>
<ol>
<li><strong>Install Fail2Ban</strong>:
<p>Fail2Ban monitors login attempts and bans IPs that show malicious patterns:</p>
<div class="shortcode-code">
<p> sudo apt install fail2ban </p></div></li>
<li><strong>Configure Fail2Ban</strong>:
<p>Create a custom configuration file (<code>/etc/fail2ban/jail.local</code>) and define rules:<br />
<div class="shortcode-code">
<p>&#091;sshd&#093;<br />
enabled = true<br />
port = 2244<br />
filter = sshd<br />
logpath = /var/log/auth.log<br />
maxretry = 3<br />
bantime = 3600</p></div></li>
</ol>
<h3>Step 4: Regularly Update and Patch</h3>
<ol>
<li><strong>System Updates</strong>:
<p>Keep the server updated with the latest security patches:</p>
<div class="shortcode-code">
<p> sudo apt update &amp;&amp; sudo apt upgrade </p></div></li>
</ol>
<h3>Step 5: Monitor Server Logs</h3>
<ol>
<li><strong>Regular Log Review</strong>:
<p>Regularly check system logs (<code>/var/log/auth.log</code>) for any unusual activities.</li>
</ol>
<h3>Conclusion</h3>
<p>Your ServerStadium server is now better equipped to handle brute force attacks. Regularly review security measures and stay updated on best practices. For more information on server security, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our <a href="https://serverstadium.com/" target="_new" rel="noopener">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/securing-linux-servers-against-brute-force-attacks/">Securing Linux Servers Against Brute Force Attacks</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Configuring Multi-Factor Authentication for Secure Server Access</title>
		<link>https://serverstadium.com/knowledge-base/configuring-multi-factor-authentication-for-secure-server-access/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 23:59:23 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11867</guid>

					<description><![CDATA[<p>Introduction Implementing MFA on ServerStadium’s infrastructure (VM Pricing, Dedicated Servers) is crucial for protecting sensitive data and systems. MFA requires users to present two or more verification factors to gain access, providing a higher level of security than single-factor authentication. Prerequisites A ServerStadium VM or dedicated server (VM Pricing, Dedicated Servers). SSH access to the&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-multi-factor-authentication-for-secure-server-access/">Configuring Multi-Factor Authentication for Secure Server Access</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Implementing MFA on ServerStadium’s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>) is crucial for protecting sensitive data and systems. MFA requires users to present two or more verification factors to gain access, providing a higher level of security than single-factor authentication.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>).</li>
<li>SSH access to the server.</li>
<li>Basic knowledge of Linux server administration.</li>
</ul>
<h3>Step 1: Prepare Your ServerStadium Server</h3>
<ol>
<li><strong>Select a Server</strong>: Choose a ServerStadium server for setting up MFA.</li>
<li><strong>Server Setup</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install and Configure Google Authenticator</h3>
<ol>
<li><strong>Install Google Authenticator</strong>:
<p>Install the Google Authenticator PAM module:</p>
<div class="shortcode-code">
<p> sudo apt install libpam-google-authenticator </p></div></li>
<li><strong>Configure Google Authenticator for a User</strong>:
<p>Run the Google Authenticator module to create a new secret key for a user:</p>
<div class="shortcode-code">
<p> google-authenticator </p></div>
<p>Follow the prompts to set up MFA. Scan the QR code with an MFA app on your smartphone.</li>
</ol>
<h3>Step 3: Configure SSH for MFA</h3>
<ol>
<li><strong>Edit SSHD PAM Configuration</strong>:
<p>Edit the PAM configuration for SSH:</p>
<div class="shortcode-code">
<p> sudo nano /etc/pam.d/sshd </p></div>
<p>Add the following line:<br />
<div class="shortcode-code">
<p>auth &lt;span class=&quot;hljs-keyword&quot;&gt;required&lt;/span&gt; pam_google_authenticator.so</p></div></li>
<li><strong>Edit SSHD Config</strong>:
<p>Modify the SSH daemon configuration:</p>
<div class="shortcode-code">
<p> sudo nano /etc/ssh/sshd_config </p></div>
<p>Ensure the following line is included:<br />
<div class="shortcode-code">
<p>ChallengeResponseAuthentication &lt;span class=&quot;hljs-built_in&quot;&gt;yes&lt;/span&gt;</p></div></li>
<li><strong>Restart SSH Service</strong>:
<div class="shortcode-code">
<p> sudo systemctl restart sshd </p></div></li>
</ol>
<h3>Step 4: Test MFA</h3>
<ol>
<li><strong>SSH with MFA</strong>:
<p>Try logging in via SSH to your server. You should now be prompted for both your password and the verification code from your MFA app.</li>
</ol>
<h3>Conclusion</h3>
<p>MFA is now set up on your ServerStadium server, significantly enhancing your server&#8217;s security against unauthorized access. For additional security measures or support, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our <a href="https://serverstadium.com/" target="_new" rel="noopener">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-multi-factor-authentication-for-secure-server-access/">Configuring Multi-Factor Authentication for Secure Server Access</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Configuring an SFTP Server on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/configuring-an-sftp-server-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 06:10:26 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11832</guid>

					<description><![CDATA[<p>Introduction Setting up an SFTP server on ServerStadium (VM Pricing, Dedicated Servers) ensures a secure method for transferring files. This setup is particularly beneficial for businesses and individuals looking to safeguard their file transfers against unauthorized access. Configuring an SFTP Server on ServerStadium Prerequisites A ServerStadium VM or dedicated server (VM Pricing, Dedicated Servers). Basic&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-an-sftp-server-on-serverstadium/">Configuring an SFTP Server on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Setting up an SFTP server on ServerStadium (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>) ensures a secure method for transferring files. This setup is particularly beneficial for businesses and individuals looking to safeguard their file transfers against unauthorized access.</p>
<h2>Configuring an SFTP Server on ServerStadium</h2>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>).</li>
<li>Basic knowledge of Linux server administration and SSH.</li>
</ul>
<h3>Step 1: Select and Prepare Your ServerStadium Server</h3>
<ol>
<li><strong>Choose a Server</strong>: Opt for a ServerStadium VM or dedicated server based on your file storage and transfer needs.</li>
<li><strong>Server Setup</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install and Configure SSH Server</h3>
<p>SFTP is part of the SSH server, which is typically installed by default:</p>
<ol>
<li><strong>Install OpenSSH Server</strong> (if not already installed):
<div class="shortcode-code">
<p> sudo apt install openssh-server </p></div></li>
<li><strong>Configure SSH for SFTP</strong>:
<p>Edit the SSH configuration file:</p>
<div class="shortcode-code">
<p> sudo nano /etc/ssh/sshd_config </p></div>
<p>Ensure the following line is present and uncommented:<br />
<div class="shortcode-code">
<p>Subsystem sftp /usr/lib/openssh/sftp-server</p></div></li>
</ol>
<h3>Step 3: Create a User for SFTP</h3>
<ol>
<li><strong>Add a New User for SFTP</strong>:
<div class="shortcode-code">
<p> sudo adduser sftpuser </p></div>
<p>Follow the prompts to set up the new user.</li>
<li><strong>Assign a Directory for SFTP User</strong>:
<p>Set up a directory for the SFTP user and restrict permissions:</p>
<div class="shortcode-code">
<p> sudo mkdir -p /home/sftpuser/files<br />
sudo chown sftpuser:sftpuser /home/sftpuser/files<br />
sudo chmod 700 /home/sftpuser/files </p></div></li>
</ol>
<h3>Step 4: Restrict SFTP User Access</h3>
<ol>
<li><strong>Restrict SFTP User</strong>:
<p>Modify the SSH configuration to restrict the SFTP user to their directory:</p>
<div class="shortcode-code">
<p> sudo nano /etc/ssh/sshd_config </p></div>
<p>Add the following at the end of the file:<br />
<div class="shortcode-code">
<p>Match User sftpuser<br />
ForceCommand internal-sftp<br />
PasswordAuthentication yes<br />
ChrootDirectory /home/sftpuser<br />
PermitTunnel no<br />
AllowAgentForwarding no<br />
AllowTcpForwarding no<br />
X11Forwarding no</p></div></li>
<li><strong>Restart SSH Service</strong>:
<div class="shortcode-code">
<p> sudo systemctl restart sshd </p></div></li>
</ol>
<h3>Step 5: Accessing the SFTP Server</h3>
<ol>
<li><strong>Connect to SFTP</strong>:
<p>Use an SFTP client with the following details:</p>
<ul>
<li>Host: <code>your_server_ip</code></li>
<li>Username: <code>sftpuser</code></li>
<li>Password: The password you set for <code>sftpuser</code></li>
</ul>
<p>The connection will be on the default SSH port (22).</li>
</ol>
<h3>Conclusion</h3>
<p>Your SFTP server is now ready on ServerStadium, offering a secure method for transferring files. For additional support or resources, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-an-sftp-server-on-serverstadium/">Configuring an SFTP Server on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using Pre-Generated SSH Keys and Disabling Password Authentication for Secure Access to ServerStadium&#8217;s Cloud Instances</title>
		<link>https://serverstadium.com/knowledge-base/using-pre-generated-ssh-keys-and-disabling-password-authentication-for-secure-access-to-serverstadium-cloud-instances/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 26 May 2023 03:18:40 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11673</guid>

					<description><![CDATA[<p>Secure Shell (SSH) keys offer a more secure method of logging into a server than using a password alone. ServerStadium&#8217;s cloud instances are configured with pre-generated SSH keys for this purpose. This tutorial will guide you on using these SSH keys for secure access and disabling password authentication for your ServerStadium cloud instance. For more&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/using-pre-generated-ssh-keys-and-disabling-password-authentication-for-secure-access-to-serverstadium-cloud-instances/">Using Pre-Generated SSH Keys and Disabling Password Authentication for Secure Access to ServerStadium&#8217;s Cloud Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Secure Shell (SSH) keys offer a more secure method of logging into a server than using a password alone. ServerStadium&#8217;s cloud instances are configured with pre-generated SSH keys for this purpose. This tutorial will guide you on using these SSH keys for secure access and disabling password authentication for your ServerStadium cloud instance.</p>
<p>For more tutorials and guides, make sure to visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a>.</p>
<h2>Step 1: Register Your Account</h2>
<p>If you haven&#8217;t already, you&#8217;ll need to create an account on our <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">Registration Page</a>. Once registered, you&#8217;ll have access to your personal <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>.</p>
<h2>Step 2: Add Your Cloud Instance</h2>
<p>From your <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>, click the &#8216;Add VM&#8217; button. Choose a cloud instance that suits your needs and budget. For more detailed information about our offerings, you can visit our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">Pricing Page</a>.</p>
<h2>Step 3: Retrieve Your SSH Key</h2>
<p>Once your cloud instance is created, you can retrieve the pre-generated SSH key from your <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>. Save this key to a secure location on your local machine, typically in the <code>~/.ssh/</code> directory.</p>
<p>Remember to set the correct permissions for your SSH key file with the following command:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">chmod</span> 600 ~/.ssh/your_ssh_key<br />
</code></div>
</div>
<p>Replace &#8220;your_ssh_key&#8221; with the filename of your SSH key.</p>
<h2>Step 4: Disable Password Authentication</h2>
<p>To enhance security, you can disable password authentication and allow only SSH key authentication. Log into your ServerStadium cloud instance and edit the SSH configuration file:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo nano /etc/ssh/sshd_config<br />
</code></div>
</div>
<p>Find the line that says <code>PasswordAuthentication</code> and change it to <code>no</code>. If the line is commented out, remove the <code>#</code> at the start of the line. Save and exit the file.</p>
<p>After making this change, you must restart the SSH service for the changes to take effect:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo systemctl restart ssh<br />
</code></div>
</div>
<h2>Step 5: Login Using SSH Keys</h2>
<p>Finally, log into your ServerStadium cloud instance using the SSH key with the following command:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">ssh -i ~/.ssh/your_ssh_key your_username@your_server_IP_address<br />
</code></div>
</div>
<p>Replace &#8220;your_ssh_key&#8221; with your SSH key filename, &#8220;your_username&#8221; with your actual username, and &#8220;your_server_IP_address&#8221; with the IP address of your ServerStadium cloud instance.</p>
<h2>Conclusion</h2>
<p>Congratulations! You&#8217;ve successfully used pre-generated SSH keys for secure access and disabled password authentication on your ServerStadium cloud instance. Now, you can log into your instance securely without needing a password.</p>
<p>Visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for more tutorials and guides.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/using-pre-generated-ssh-keys-and-disabling-password-authentication-for-secure-access-to-serverstadium-cloud-instances/">Using Pre-Generated SSH Keys and Disabling Password Authentication for Secure Access to ServerStadium&#8217;s Cloud Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using the SSH key Feature in ServerStadium Dashboard</title>
		<link>https://serverstadium.com/knowledge-base/using-the-ssh-key-feature-in-serverstadium-dashboard/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 03:58:44 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1911</guid>

					<description><![CDATA[<p>In ServerStadium, we have several ways to access our VM. If we want to securely access the VM, we can use the SSH key feature. It is really simple to generate the SSH key because ServerStadium will help us to generate and insert it into the VM. Below are the steps that we can follow:&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/using-the-ssh-key-feature-in-serverstadium-dashboard/">Using the SSH key Feature in ServerStadium Dashboard</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In ServerStadium, we have several ways to access our VM. If we want to securely access the VM, we can use the SSH key feature.</p>



<p class="wp-block-paragraph">It is really simple to generate the SSH key because ServerStadium will help us to generate and insert it into the VM. Below are the steps that we can follow:</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Create SSH Ke</strong>y</h2>



<p class="wp-block-paragraph">After <a href="https://cp.serverstadium.com/" target="_blank" rel="noreferrer noopener">login into the ServerStadium dashboard</a>, we can click <strong>Networking </strong>then Choose <strong>SSH</strong>. <br />Change the Location to &#8220;<strong>Surabaya</strong>&#8220;.<br />In the right pane, we can click the &#8220;<strong>Create SSH</strong>&#8221; key button to generate the SSH key.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1912" src="https://serverstadium.com/wp-content/uploads/2022/04/image.png" alt="" /></figure>



<p class="wp-block-paragraph">Then, it will display a new screen and fill it as follow :</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-2023" src="https://serverstadium.com/wp-content/uploads/2022/04/create-1.png" alt="" /></figure>



<p class="wp-block-paragraph">After we click Create New SSH key button, our SSH key will be listed on the SSH list.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1310" height="213" class="wp-image-2025" src="https://serverstadium.com/wp-content/uploads/2022/04/download-ssh.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/04/download-ssh.png 1310w, https://serverstadium.com/wp-content/uploads/2022/04/download-ssh-300x49.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/download-ssh-1024x166.png 1024w, https://serverstadium.com/wp-content/uploads/2022/04/download-ssh-768x125.png 768w" sizes="(max-width: 1310px) 100vw, 1310px" /></figure>



<p class="wp-block-paragraph">Click the &#8220;Download&#8221; button and save the private key to your computer or server that we will use to connect to the VM in ServerStadium.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1924" src="https://serverstadium.com/wp-content/uploads/2022/04/ssh-key.cr_.png" alt="" /></figure>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">After downloading the SSH, the ServerStadium dashboard will display the SSH key name.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1926" src="https://serverstadium.com/wp-content/uploads/2022/04/image-4.png" alt="" /></figure>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><br /><strong>Create VM using SSH Key</strong></h2>



<p class="wp-block-paragraph">Next, we can continue creating the VM using the SSH key. <br />Click Add VM and in the right pane, choose the <strong>SSH Key</strong> with <strong>ssh-key-cr</strong>. <br />Choose the OS image; in this tutorial, we will use Ubuntu 20.04. <br />Click next until the VM is created.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1157" height="422" class="wp-image-1927" src="https://serverstadium.com/wp-content/uploads/2022/04/image-5.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-5.png 1157w, https://serverstadium.com/wp-content/uploads/2022/04/image-5-300x109.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/image-5-1024x373.png 1024w, https://serverstadium.com/wp-content/uploads/2022/04/image-5-768x280.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">After the VM has been created, we can see SSH key Name on the bottom right specification of the VM.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1928" src="https://serverstadium.com/wp-content/uploads/2022/04/image-6.png" alt="" /></figure>



<p class="wp-block-paragraph">It means we are ready to access the VM using the SSH key.</p>



<p class="wp-block-paragraph"><strong>Access the server using the SSH key</strong></p>



<p class="wp-block-paragraph">Now, we will verify the Private key that we have downloaded previously.<br />Login to your PC or server, then copy the downloaded private key. Change the permission of the private key as follow</p>



<pre class="wp-block-preformatted"># chmod 400 ssh-key-cr</pre>



<p class="wp-block-paragraph">Connect your VM in ServerStadium using a command.</p>



<p class="wp-block-paragraph">ssh -i ssh-key-cr 199.180.xx.xx <br />or <br />ssh -i ssh-key-cr IP_Address_ServerStadium</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1934" src="https://serverstadium.com/wp-content/uploads/2022/04/CR.png" alt="" /></figure>



<p class="wp-block-paragraph">&nbsp;</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Add SSH key before the SSH key feature displayed in the previous VM</strong></h2>



<p class="wp-block-paragraph">SSH key feature will be working on the new VM. We can still use the SSH key feature for the previous VM that was deployed. We can follow the steps below:</p>



<p class="wp-block-paragraph">Login to the VM where we will enable the SSH key, then edit /etc/cloud/cloud.cfg as follow:</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1943" src="https://serverstadium.com/wp-content/uploads/2022/04/cloud.cfg_.png" alt="" /></figure>



<p class="wp-block-paragraph">Save the file, then stop or shut down the VM. In Detail Information of the VM, click <strong>Reset SSH Key</strong>.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1938" src="https://serverstadium.com/wp-content/uploads/2022/04/image-8.png" alt="" /></figure>



<p class="wp-block-paragraph">Choose the SSH key that we want to use &#8220;ssh-key-cr&#8221; and tick &#8220;It will perform reset VM root password too&#8221;. After that, click &#8220;Reset SSH&#8221;</p>



<figure class="wp-block-image size-full"><img decoding="async" width="495" height="428" class="wp-image-2017" src="https://serverstadium.com/wp-content/uploads/2022/04/reset.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/04/reset.png 495w, https://serverstadium.com/wp-content/uploads/2022/04/reset-300x259.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">After all the setting has been configured, start the VM again to use the new configuration.<br />We can ensure the VM using a new configuration by file /root/.ssh/authorized_keys has the public key.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1946" src="https://serverstadium.com/wp-content/uploads/2022/04/ssh.png" alt="" /></figure>



<p class="wp-block-paragraph">Now your VM in ServerStadium Cloud is using the SSH key. Please don&#8217;t hesitate to contact our support if you have difficulties using the SSH key.</p>



<p class="wp-block-paragraph">Find more tutorial articles in <strong><a href="https://serverstadium.com/knowledge-base/" target="_blank" rel="noreferrer noopener">ServerStadium&#8217;s Knowledge Base</a></strong>, </p>
<p>The post <a href="https://serverstadium.com/knowledge-base/using-the-ssh-key-feature-in-serverstadium-dashboard/">Using the SSH key Feature in ServerStadium Dashboard</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
