{"id":48893,"date":"2019-10-23T21:13:29","date_gmt":"2019-10-23T13:13:29","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=48893"},"modified":"2021-08-18T16:31:06","modified_gmt":"2021-08-18T08:31:06","slug":"ssh-to-server-without-password","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/","title":{"rendered":"How to SSH into Server Without Entering Password"},"content":{"rendered":"<p>In this post, I\u2019ll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.<\/p>\n<h3>Why are we doing this? <\/h3>\n<p>One of the hassles when connecting to your server is the entering-password step.<\/p>\n<p>Now, you might think \u2013 it\u2019s not a big deal, it\u2019s just an extra step \u2013 but what if you have a reasonably complex password that you need to retrieve from somewhere else (notes, or password management app). Or your job requires you to access the servers frequently, then skipping small steps like entering passwords can help speed things up big time.<\/p>\n<h3>An idea of how it works (and it\u2019s safe) <\/h3>\n<p>Traditionally, to login to the server, you do these steps in its chronological order:<\/p>\n<ol>\n<li>Type <code>ssh username@domain.com<\/code>, hit Enter\/Return<\/li>\n<li>Type\/paste password, hit Enter\/Return<\/li>\n<li>You\u2019re in!<\/li>\n<\/ol>\n<p>We\u2019re going to eliminate Step 2; after inserting <code>ssh username@domain.com<\/code> and hitting Enter\/Return, you\u2019re immediately connected to the server. How about that?<\/p>\n<p>And don\u2019t worry, this is extremely secure, as long as you ensure no unauthorized personnel can gain access to your PC.<\/p>\n<p>Let\u2019s get started.<\/p>\n<h2>1 \u2013 Collect the following information <\/h2>\n<p>Before we dive into the execution, here is some information about your local machine and remote server you need to collect beforehand.<\/p>\n<p>Write them down in a note, or at least have them accessible at ease.<\/p>\n<h3>(1.1) \u2013 Path to SSH folder in the local machine. <\/h3>\n<p>This is the path to <em>.ssh<\/em>\/ on your machine. It varies from one operating system to another.<\/p>\n<p>Examples:<\/p>\n<ul>\n<li><strong>macOS<\/strong> \u2013 <code>\/Users\/username\/.ssh\/<\/code><\/li>\n<li><strong>Windows<\/strong> \u2013 <code>\/c\/Users\/username\/.ssh\/id_rsa.pub<\/code><\/li>\n<\/ul>\n<p>For more information on how to find the path to ssh folder in Windows 10, <a href=\"https:\/\/stackoverflow.com\/questions\/31813080\/windows-10-ssh-keys\">click here<\/a>.<\/p>\n<p><strong>Note:<\/strong> For macOS users, typing the command <code>cd ~\/.ssh<\/code> will usually bring you into the .ssh folder.<\/p>\n<h3 id=\"1-2\">(1.2) \u2013 Information for remote server <\/h3>\n<p>You need the credentials and several other details about your server. In short, collect the following:<\/p>\n<ol>\n<li>Hostname\/ IP <\/li>\n<li>Username <\/li>\n<li>Password <\/li>\n<li>Port number<\/li>\n<\/ol>\n<h3>(1.3) \u2013 Path to \u201cauthorized_key\u201d in the remote server <\/h3>\n<p>With the information gathered from <a href=\"#1.2\">1.2<\/a>, login to your server, and find the path to the \u201cauthorized_key\u201d file.<\/p>\n<p>The file is usually located at: <code>\/home\/username\/.ssh<\/code>.<\/p>\n<p>Have you gotten all the required information? Great, let\u2019s proceed!<\/p>\n<h2>2. Getting an SSH Key <\/h2>\n<p>In order for the password-less SSH login to work, we will need an SSH key from your local computer.<\/p>\n<p>Firstly, I\u2019m going to show you how to <a href=\"#check_existing_ssh\">check for an existing SSH Key<\/a> on your local computer, <a href=\"#remove_existing_ssh\">how to remove existing SSH keys<\/a>, and then finally <a href=\"#generate_new_ssh\">creating a new SSH key<\/a>.<\/p>\n<p>If you\u2019re sure that there are no existing SSH Keys in your local machine, then you can <a href=\"#generate_new_ssh\">jump right ahead to creating a new SSH Key<\/a>.<\/p>\n<h3 id=\"check_existing_ssh\">Checking for existing SSH Keys <\/h3>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Paste the following and hit Enter\/Return: <code>ls -al ~\/.ssh<\/code>.<\/li>\n<\/ol>\n<p>If the folder contains files like the following, then SSH Keys exist on your local machine.<\/p>\n<ul>\n<li>id_rsa<\/li>\n<li>id_rsa.pub<\/li>\n<\/ul>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg\" alt=\"ssh key exists\" width=\"1572\" height=\"350\"><\/figure>\n<p>You can either keep them, provided that you still remember their respective passphrases, else I\u2019d recommend that you delete them.<\/p>\n<p>If the folder is empty, then you\u2019re set to creating your new SSH key.<\/p>\n<h3 id=\"remove_existing_ssh\">Removing existing SSH Keys <\/h3>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Paste <code>cd ~\/.ssh && ls -al<\/code> and hit Enter\/Return. This will bring you into the SSH folder and list all existing files inside it.<\/li>\n<li>Identify all files with names like \u201cid_rsa\u201d and \u201cid_rsa.pub\u201d<\/li>\n<li>Delete each of them one by one using the following command: <code>rm filename<\/code>.\n    <strong>Example:<\/strong> <code>rm id_rsa.pub<\/code>.<\/li>\n<\/ol>\n<p><strong>Note:<\/strong> If you\u2019re performing this on a shared workstation or are unsure of which files to delete, do not proceed.<\/p>\n<h3 id=\"generate_new_ssh\">Generating new SSH Key <\/h3>\n<p>If your SSH folder is empty, then it probably looks something like this.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-doesnt-exist.jpg\" alt=\"ssh key does not exist\" width=\"1578\" height=\"253\"><\/figure>\n<p>Let\u2019s start generating a new SSH Key.<\/p>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Paste the following codes, replace \u201cyouremail@example.com\u201d with your actual email address, and hit Enter\/Return: <code>ssh-keygen -t rsa -b 4096 -C \"youremail@example.com\"<\/code>.<\/li>\n<li>Hit Enter\/Return <em>(recommended)<\/em> to use \u201cid_rsa\u201d as the default filename.<\/li>\n<li>Hit Enter\/Return <em>(recommended)<\/em> to create an SSH key without a passphrase.<\/li>\n<\/ol>\n<p>Your SSH Key has been successfully created, and your terminal should output something similar to the screenshot below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-successfully-generated.jpg\" alt=\"ssh key generated\" width=\"1577\" height=\"707\"><\/figure>\n<h2>3. Upload SSH Key to Server <\/h2>\n<p>We\u2019ve come to our last and final step \u2013 uploading the generated key (public key) to the server.<\/p>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Type <code>cd ~\/.ssh<\/code> to go inside the .ssh folder.<\/li>\n<li>Copy paste the following command after replacing \u201cusername@domain.com\u201d and \u201c\/path\/to\/server\/.ssh\/authorized_keys\u201d with actual server information:\n    <code>cat id_rsa.pub | ssh username@domain.com 'cat - &gt;&gt; \/path\/to\/server\/.ssh\/authorized_keys'<\/code>.<\/li>\n<\/ol>\n<p>The command above will copy the public key in <em>id_rsa.pub<\/em> (from local machine) into <em>authorized_keys<\/em> (in remote server).<\/p>\n<p>If the command executed correctly, you will be prompted to enter the password to the remote server, insert the password, and hit enter\/return.<\/p>\n<h2>4. Testing<\/h2>\n<p>That\u2019s it! Now, let\u2019s give it a test.<\/p>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Login to your server by entering <code>ssh username@domain.com<\/code>.<\/li>\n<\/ol>\n<p>You should be able to login without entering the password.<\/p>\n<p class=\"note\"><strong>Note<\/strong>: It\u2019s worth noting that logging in without the password will only apply to the user where our public key is added. Assuming there are several users on our server: <em>root<\/em>, <em>john<\/em> and <em>jane<\/em>. You\u2019ve added your public key to <code>authorized_keys<\/code> file that belongs to <em>jane<\/em>. You will be able to login to the SSH as jane without the password, but when need to login as <em>root<\/em> or <em>john<\/em>, you will still need to provide the password.<\/p>\n<h3>One last thing<\/h3>\n<p>Copy the following codes, replace \u201c\/path\/to\/.ssh\/\u201d with the actual path to your .ssh folder, and hit Enter\/Return.<\/p>\n<p><code>chmod 700 \/path\/to\/.ssh && chmod 600 \/path\/to\/.ssh\/*<\/code><\/p>\n<p>This will ensure your newly created SSH key be stored securely inside the .ssh folder.<\/p>","protected":false},"excerpt":{"rendered":"<p>In this post, I\u2019ll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command. Why are we doing this? One of the hassles when connecting to your server is the entering-password step. Now, you might think \u2013 it\u2019s not a big&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3400],"tags":[554],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to SSH into Server Without Entering Password - Hongkiat<\/title>\n<meta name=\"description\" content=\"In this post, I&#039;ll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to SSH into Server Without Entering Password\" \/>\n<meta property=\"og:description\" content=\"In this post, I&#039;ll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-23T13:13:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-18T08:31:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg\" \/>\n<meta name=\"author\" content=\"Hongkiat Lim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat Lim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/\"},\"author\":{\"name\":\"Hongkiat Lim\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\"},\"headline\":\"How to SSH into Server Without Entering Password\",\"datePublished\":\"2019-10-23T13:13:29+00:00\",\"dateModified\":\"2021-08-18T08:31:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/\"},\"wordCount\":933,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ssh-to-server-without-password\\\/ssh-key-exists.jpg\",\"keywords\":[\"Passwords\"],\"articleSection\":[\"Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/\",\"name\":\"How to SSH into Server Without Entering Password - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ssh-to-server-without-password\\\/ssh-key-exists.jpg\",\"datePublished\":\"2019-10-23T13:13:29+00:00\",\"dateModified\":\"2021-08-18T08:31:06+00:00\",\"description\":\"In this post, I'll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ssh-to-server-without-password\\\/ssh-key-exists.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ssh-to-server-without-password\\\/ssh-key-exists.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ssh-to-server-without-password\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to SSH into Server Without Entering Password\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\",\"name\":\"Hongkiat Lim\",\"description\":\"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.\",\"sameAs\":[\"http:\\\/\\\/www.hongkiat.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/hongkiat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to SSH into Server Without Entering Password - Hongkiat","description":"In this post, I'll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/","og_locale":"en_US","og_type":"article","og_title":"How to SSH into Server Without Entering Password","og_description":"In this post, I'll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.","og_url":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2019-10-23T13:13:29+00:00","article_modified_time":"2021-08-18T08:31:06+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg","type":"","width":"","height":""}],"author":"Hongkiat Lim","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat Lim","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/"},"author":{"name":"Hongkiat Lim","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0"},"headline":"How to SSH into Server Without Entering Password","datePublished":"2019-10-23T13:13:29+00:00","dateModified":"2021-08-18T08:31:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/"},"wordCount":933,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg","keywords":["Passwords"],"articleSection":["Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/","url":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/","name":"How to SSH into Server Without Entering Password - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg","datePublished":"2019-10-23T13:13:29+00:00","dateModified":"2021-08-18T08:31:06+00:00","description":"In this post, I'll show you how to bypass the password prompt and get you connected to your server immediately after you enter to execute the SSH command.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/ssh-to-server-without-password\/ssh-key-exists.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to SSH into Server Without Entering Password"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0","name":"Hongkiat Lim","description":"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.","sameAs":["http:\/\/www.hongkiat.com\/blog"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/hongkiat\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-cIB","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/48893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=48893"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/48893\/revisions"}],"predecessor-version":[{"id":49529,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/48893\/revisions\/49529"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=48893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=48893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=48893"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=48893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}