{"id":24875,"date":"2022-10-28T10:34:56","date_gmt":"2022-10-28T14:34:56","guid":{"rendered":"https:\/\/avtech.com\/articles\/?p=24875"},"modified":"2024-03-05T16:11:21","modified_gmt":"2024-03-05T21:11:21","slug":"how-to-generate-an-ssh-key-pair","status":"publish","type":"post","link":"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/","title":{"rendered":"How To Generate An SSH Key Pair For Use With Room Alert Manager"},"content":{"rendered":"\n<p>Room Alert Manager can perform <a href=\"https:\/\/avtech.com\/articles\/24711\/\" target=\"_blank\" rel=\"noreferrer noopener\">Server Command Actions<\/a> using SSH (Secure Shell protocol) key authentication. This FAQ walks you through the process of generating and storing an SSH key pair using the network connectivity tool <em>OpenSSH<\/em>. <\/p>\n\n\n\n<p>For more information, see <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/openssh\/openssh_keymanagement\" target=\"_blank\" rel=\"noreferrer noopener\">Key-based authentication in OpenSSH for Windows<\/a>.<\/p>\n\n\n<div class=\"su-accordion su-u-trim\">\n\n\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 1: Check that an SSH client is installed<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<h4 class=\"wp-block-heading\">In order to generate the keys, you need to have an SSH client installed on Room Alert Manager&#8217;s host system.<\/h4>\n\n\n\n<ul>\n<li>There are a few ways to check if an SSH client is installed; one easy way is to open Windows Command Prompt and enter this command: <br><code>ssh -V<\/code><br><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"125\" class=\"wp-image-24812\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-V.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-V.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-V-300x38.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-V-768x98.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>This command returns the current version of the SSH client that is installed on the machine.<img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"125\" class=\"wp-image-24813\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-Vresponse.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-Vresponse.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-Vresponse-300x38.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-Vresponse-768x98.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>If there is no SSH client installed, the command will instead return: &#8220;&#8216;ssh&#8217; is not recognized as an internal or external command&#8230;&#8221;<img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"141\" class=\"wp-image-24815\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_sshNotRecognized.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_sshNotRecognized.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_sshNotRecognized-300x43.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_sshNotRecognized-768x111.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">The steps below show you how to install the OpenSSH client on Windows 10.<\/h4>\n\n\n\n<p>OpenSSH is built into modern versions of Windows as an \u201coptional feature\u201d (not installed by default). To install it:<\/p>\n\n\n\n<ol>\n<li>Go to <em>Windows Settings <\/em>&#8211;&gt; <em>Apps <\/em>and select <strong>Optional features<\/strong>. <br>(<em>If you already have the SSH client installed, it will appear in the list here.<\/em>)<\/li>\n\n\n\n<li>Select <strong>Add a feature<\/strong> at the top of the <em>Optional Features<\/em> list.<\/li>\n\n\n\n<li>Scroll down to find \u201cOpenSSH Client\u201d in the list. Enable the checkbox beside it, and then select <strong>Install<\/strong>.<img decoding=\"async\" loading=\"lazy\" width=\"680\" height=\"464\" class=\"wp-image-24818\" style=\"width: 500px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/InstallOpenSSHclient.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/InstallOpenSSHclient.png 680w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/InstallOpenSSHclient-300x205.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n<\/ol>\n\n\n\n<p><strong>Running an older version of Windows that doesn&#8217;t have OpenSSH built-in?<\/strong><br>You can download OpenSSH from here: <a href=\"https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/tags\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/tags<\/a>. (We recommend downloading <em>OpenSSH-Win64.zip<\/em> of the <em>v8.9.1.0p1-Beta<\/em> release or newer.) You can find installation instructions in this tutorial: <a href=\"https:\/\/hostadvice.com\/how-to\/how-to-install-an-openssh-server-client-on-a-windows-2016-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install an OpenSSH Server\/Client on A Windows 2016 Server<\/a>.<\/p>\n\n\n<\/div><\/div> <div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 2: Configure the server to accept SSH connections<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<p>On the target server, you must have an SSH daemon (sshd) running in the background, constantly waiting for an SSH connection.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Select your target server&#8217;s OS tab below for instructions.<\/h4>\n\n\n<div class=\"su-tabs su-tabs-style-default su-tabs-mobile-stack\" data-active=\"1\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-tabs-nav\"><span class=\"\" data-url=\"\" data-target=\"blank\" tabindex=\"0\" role=\"button\">Windows<\/span><span class=\"\" data-url=\"\" data-target=\"blank\" tabindex=\"0\" role=\"button\">Linux<\/span><span class=\"\" data-url=\"\" data-target=\"blank\" tabindex=\"0\" role=\"button\">Mac<\/span><\/div><div class=\"su-tabs-panes\"><div class=\"su-tabs-pane su-u-clearfix su-u-trim\" data-title=\"Windows\">\n\n\n\n<p><strong>If the target server is Windows-based, you can check the SSH Server status through the <em>Windows Services<\/em> tool.<\/strong><\/p>\n\n\n\n<ol id=\"block-30af45b0-70be-4062-a25b-5fbbcc5e6111\">\n<li>Open the Services tool at the following path: <strong>Start<\/strong>&#8211;&gt; <strong>Control Panel<\/strong>&#8211;&gt; <strong>Administrative Tools<\/strong>&#8211;&gt; <strong>Services<\/strong>.<\/li>\n\n\n\n<li>In the list of services, find the SSH Daemon service. For OpenSSH, the name is &#8220;OpenSSH SSH Server.&#8221; <\/li>\n\n\n\n<li>Its status should be <em>Running<\/em>.<br><img decoding=\"async\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/WinServices-SSH-Server.png\" alt=\"\" style=\"width: 600px;\"><\/li>\n\n\n\n<li>If the service isn&#8217;t running, select <strong>Start<\/strong> to immediately start the SSH server in the background.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><strong>If the OpenSSH Server service isn&#8217;t found, you can follow these steps to install it:<\/strong><\/p>\n\n\n\n<ol id=\"block-23c39de1-de78-4489-985b-3ebe576fe6e1\">\n<li>Go to <em>Windows Settings <\/em>&#8211;&gt; <em>Apps <\/em>and select <strong>Optional features<\/strong>. <br>(<em>If you already have OpenSSH Server installed, it will appear in the list here.<\/em>)<\/li>\n\n\n\n<li>Select <strong>Add a feature<\/strong> at the top of the <em>Optional Features<\/em> list.<\/li>\n\n\n\n<li>Scroll down to find \u201cOpenSSH Server\u201d in the list. Enable the checkbox beside it, and then select <strong>Install<\/strong>.<br><img decoding=\"async\" loading=\"lazy\" width=\"680\" height=\"464\" class=\"wp-image-24844\" style=\"width: 500px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/InstallOpenSSHsrvr.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/InstallOpenSSHsrvr.png 680w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/InstallOpenSSHsrvr-300x205.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n<\/ol>\n\n\n\n<p><strong>Running an older version of Windows that doesn&#8217;t have OpenSSH built-in?<\/strong><br>You can download OpenSSH from here: <a href=\"https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/tags\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/PowerShell\/Win32-OpenSSH\/tags<\/a>. (We recommend downloading <em>OpenSSH-Win64.zip<\/em> of the <em>v8.9.1.0p1-Beta<\/em> release or newer.) You can find installation instructions in this tutorial: <a href=\"https:\/\/hostadvice.com\/how-to\/how-to-install-an-openssh-server-client-on-a-windows-2016-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install an OpenSSH Server\/Client on A Windows 2016 Server<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><strong>Once the service is installed, configure it to allow SSH public key authentication.<\/strong><\/p>\n\n\n\n<ol>\n<li>Open the sshd configuration file in a text editor, such as Notepad.\n<ul>\n<li>For our example, we&#8217;re opening the file located at <em>C:\\ProgramData\\ssh\\<strong>sshd_config<\/strong><\/em> in a text editor.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Locate the <em>Authentication <\/em>settings, and make sure public key authentication is enabled.\n<ul>\n<li>In our example, we needed to uncomment the line &#8220;PubkeyAuthentication&#8221; and set it to <strong>yes<\/strong>.<br><img decoding=\"async\" loading=\"lazy\" width=\"873\" height=\"305\" class=\"wp-image-25046\" style=\"width: 600px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/sshd_config_pubkey.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/sshd_config_pubkey.png 873w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/sshd_config_pubkey-300x105.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/sshd_config_pubkey-768x268.png 768w\" sizes=\"(max-width: 873px) 100vw, 873px\" \/><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Restart the SSH Server daemon to apply the change.<\/li>\n<\/ol>\n\n\n<\/div>\n<div class=\"su-tabs-pane su-u-clearfix su-u-trim\" data-title=\"Linux\">\n\n\n\n<p><strong>If the target server is Linux or Unix-based, you can use a simple command* to check the SSH Server status.<\/strong><\/p>\n\n\n\n<p><em>*Different versions of Linux\/Unix systems require slightly different commands than what&#8217;s listed below.<\/em><\/p>\n\n\n\n<ol>\n<li>Open a terminal and enter: <code>sudo systemctl status sshd<\/code><\/li>\n\n\n\n<li>The command should return the name of the sshd service, and basic information about its current status, including whether or not it is currently <strong>active<\/strong>.<br><img decoding=\"async\" loading=\"lazy\" width=\"1901\" height=\"228\" class=\"wp-image-24828\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/Linux_sshStatus.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/Linux_sshStatus.png 1901w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/Linux_sshStatus-300x36.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/Linux_sshStatus-1024x123.png 1024w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/Linux_sshStatus-768x92.png 768w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/Linux_sshStatus-1536x184.png 1536w\" sizes=\"(max-width: 1901px) 100vw, 1901px\" \/><\/li>\n\n\n\n<li>If the SSH Server is not active, you can use a command like <code>sudo systemctl start sshd.service<\/code> to start it.<\/li>\n<\/ol>\n\n\n\n<p>If there is no SSH Server installed, you can use a command like <code>sudo apt install openssh-server<\/code> to install OpenSSH Server. For more information, please see <a href=\"https:\/\/ubuntu.com\/server\/docs\/service-openssh\" target=\"_blank\" rel=\"noreferrer noopener\">this SSH documentation<\/a>, or reference recourses specific to your Linux system.<\/p>\n\n\n<\/div>\n<div class=\"su-tabs-pane su-u-clearfix su-u-trim\" data-title=\"Mac\">\n\n\n\n<p><strong>If the target server is a Mac, you can check the SSH Server status through <em>System Preferences<\/em>.<\/strong><\/p>\n\n\n\n<p><em>All Macs have a bundled SSH server that is disabled by default.<\/em><\/p>\n\n\n\n<ol id=\"block-e5bb008e-4abe-42a2-8a6c-ce1664db6cff\">\n<li>Open the <em>System Preferences<\/em> GUI at the following path: <strong>Apple Menu<\/strong>&#8211;&gt; <strong><em>System Preferences<\/em><\/strong>&#8211;&gt; <strong>Sharing<\/strong>.<\/li>\n\n\n\n<li>In the list of services, <em>Remote Login<\/em> should be enabled.<br><img decoding=\"async\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/MacBook_RemoteLogin.png\" alt=\"\" style=\"width: 500px;\"><\/li>\n\n\n\n<li>If the <em>Remote Login<\/em> checkbox is not already enabled, click on it to immediately start the SSH server in the background.<\/li>\n<\/ol>\n\n\n<\/div><\/div><\/div>\n\n\n<\/div><\/div> <div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 3: Generate the public and private key pair<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<h4 class=\"wp-block-heading\">Next, generate a public\/private key pair from Room Alert Manager&#8217;s host system.<\/h4>\n\n\n\n<p>After generating the key pair, you&#8217;ll share the <strong>public key<\/strong> with the target server. The <strong>private key<\/strong> should remain securely stored on Room Alert Manager&#8217;s host system.<\/p>\n\n\n\n<p><strong>These steps show you how to generate an SSH key pair through command prompt:<\/strong><\/p>\n\n\n\n<ol>\n<li>On Room Alert Manager&#8217;s host system, open a command prompt window.<\/li>\n\n\n\n<li>Then run this command: <code>ssh-keygen<\/code><br><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"108\" class=\"wp-image-24853\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen1.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen1.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen1-300x33.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen1-768x85.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>You&#8217;ll see a message that the keys are being generated.<br><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"133\" class=\"wp-image-24854\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen2.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen2.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen2-300x41.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen2-768x104.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>When prompted to select a location, you may press <strong>Enter<\/strong> to leave the default location (the .ssh folder on your user drive) or specify a path and\/or filename.<br><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"158\" class=\"wp-image-24855\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen3.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen3.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen3-300x48.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen3-768x124.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>Next, you&#8217;ll be prompted to use a passphrase to encrypt your private key files. Enter a passphrase or simply press <strong>Enter <\/strong>to leave it empty.<br><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"185\" class=\"wp-image-24856\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen4.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen4.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen4-300x57.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen4-768x145.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>You&#8217;ll see a message showing where the keys have been stored, the key fingerprint, and the key&#8217;s randomart image.<br><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"422\" class=\"wp-image-24857\" style=\"width: 700px;\" src=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen5.png\" alt=\"\" srcset=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen5.png 979w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen5-300x129.png 300w, https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/keygen5-768x331.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/li>\n\n\n\n<li>In our example, there are now files <em>id_rsa<\/em> and <em>id_rsa.pub<\/em> in our .ssh folder. The first is the private key. The second is the public key\u2014that&#8217;s what we&#8217;ll send to the target server.<\/li>\n<\/ol>\n\n\n<\/div><\/div> <div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 4: Share the public key with the server<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<h4 class=\"wp-block-heading\">Share the public key with the target server.<\/h4>\n\n\n\n<p>To use the SSH key pair created in the previous step, the contents of the public key must be saved to a file on the target server. The steps to do this vary, based on the target server&#8217;s OS.<\/p>\n\n\n\n<p>The steps below show you how to deploy the public key on a Windows system in the most basic way\u2014by manually copying &amp; pasting the key&#8217;s contents. Alternatively, you may use <em>PowerShell<\/em> or another command line tool to deploy the public key. For <em>PowerShell<\/em> instructions, please see <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/openssh\/openssh_keymanagement\" target=\"_blank\" rel=\"noreferrer noopener\">Key-based authentication in OpenSSH for Windows<\/a>.<\/p>\n\n\n\n<p><strong>Please follow these steps to manually share the public key:<\/strong><\/p>\n\n\n\n<ol>\n<li>On Room Alert Manager&#8217;s host system, open the public key file in a text editor program, such as Notepad.<\/li>\n\n\n\n<li>Copy the entire contents of the public key to your clipboard.<\/li>\n\n\n\n<li>Then on the target system, either locate the existing &#8220;authorized keys&#8221; file or create one if needed.\n<ul>\n<li>The file name &#038; location depends on whether the user account is a member of the local administrators group or a standard user account.\n<ul>\n<li>For a standard user, the <strong>authorized_keys<\/strong> file is located in the .ssh folder of the user&#8217;s directory.<\/li>\n\n\n\n<li>For an admin user, the <strong>administrators_authorized_keys<\/strong> file is located in the system&#8217;s main ssh directory.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Note that only the local system and administrators security group should have permissions to access the <em>administrators_authorized_keys<\/em> file.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Open the authorized keys file in a text editor, such as Notepad, with administrator privileges.<\/li>\n\n\n\n<li>Paste the entire contents of the public key at the bottom of the authorized keys file.<\/li>\n\n\n\n<li>Save the changes to the file.<\/li>\n\n\n\n<li>Restart the SSH Server daemon to apply the public key.<\/li>\n<\/ol>\n\n\n<\/div><\/div> <div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Step 5: Manually test the SSH connection<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<p>Before you configure Room Alert Manager to use this SSH key, it&#8217;s a good idea to manually check that you are able to do a basic SSH connection using key authorization. To do this, please follow the steps below:<\/p>\n\n\n\n<ol>\n<li>On Room Alert Manager&#8217;s host system, open a command prompt window.<\/li>\n\n\n\n<li>Then run this command: <code>ssh [user@target IP or hostname]<\/code><br><em>Example: ssh janesmith@192.168.123.45<\/em><\/li>\n\n\n\n<li>You should be able to connect to the target system without needing to enter the user&#8217;s password. (If the key has a passphrase associated with it, you will be prompted to enter that.)<\/li>\n\n\n\n<li>Additional information is available in our FAQ, <a href=\"https:\/\/avtech.com\/articles\/24732\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Troubleshoot Server Actions In Room Alert Manager<\/a>.<\/li>\n<\/ol>\n\n\n<\/div><\/div>\n\n\n<\/div>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Room Alert Manager can perform Server Command Actions using SSH (Secure Shell protocol) key authentication. This FAQ walks you through the process of generating and storing an SSH key pair using the network connectivity tool OpenSSH. For more information, see Key-based authentication in OpenSSH for Windows.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[287],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Generate An SSH Key Pair For Use With Room Alert Manager - AVTECH\" \/>\n<meta property=\"og:description\" content=\"Room Alert Manager can perform Server Command Actions using SSH (Secure Shell protocol) key authentication. This FAQ walks you through the process of generating and storing an SSH key pair using the network connectivity tool OpenSSH. For more information, see Key-based authentication in OpenSSH for Windows.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/\" \/>\n<meta property=\"og:site_name\" content=\"AVTECH\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-28T14:34:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-05T21:11:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-V.png\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@AVTECHSoftware\" \/>\n<meta name=\"twitter:site\" content=\"@AVTECHSoftware\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"Allie Wojtanowski\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"6 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/avtech.com\/articles\/#website\",\"url\":\"https:\/\/avtech.com\/articles\/\",\"name\":\"AVTECH\",\"description\":\"Frequently Asked Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/avtech.com\/articles\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/avtech.com\/articles\/wp-content\/uploads\/2022\/10\/CmdPrompt_ssh-V.png\",\"width\":979,\"height\":125},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/#webpage\",\"url\":\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/\",\"name\":\"How To Generate An SSH Key Pair For Use With Room Alert Manager - AVTECH\",\"isPartOf\":{\"@id\":\"https:\/\/avtech.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/#primaryimage\"},\"datePublished\":\"2022-10-28T14:34:56+00:00\",\"dateModified\":\"2024-03-05T21:11:21+00:00\",\"author\":{\"@id\":\"https:\/\/avtech.com\/articles\/#\/schema\/person\/2966f1925021087dba64df344049f189\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/avtech.com\/articles\/24875\/how-to-generate-an-ssh-key-pair\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/avtech.com\/articles\/#\/schema\/person\/2966f1925021087dba64df344049f189\",\"name\":\"Allie Wojtanowski\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/avtech.com\/articles\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/470c9c7fbbd3e0a96d84169645634d04?s=96&d=mm&r=g\",\"caption\":\"Allie Wojtanowski\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts\/24875"}],"collection":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/comments?post=24875"}],"version-history":[{"count":41,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts\/24875\/revisions"}],"predecessor-version":[{"id":27264,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/posts\/24875\/revisions\/27264"}],"wp:attachment":[{"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/media?parent=24875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/categories?post=24875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avtech.com\/articles\/wp-json\/wp\/v2\/tags?post=24875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}