{"id":881,"date":"2015-08-19T15:20:25","date_gmt":"2015-08-19T22:20:25","guid":{"rendered":"http:\/\/homepages.uc.edu\/~yaozo\/wordpress\/?p=881"},"modified":"2015-08-19T15:20:25","modified_gmt":"2015-08-19T22:20:25","slug":"sshopensshkeys","status":"publish","type":"post","link":"https:\/\/zhuoyao.net\/index.php\/2015\/08\/19\/sshopensshkeys\/","title":{"rendered":"SSH\/OpenSSH\/Keys"},"content":{"rendered":"<h1 id=\"Public_and_Private_Keys\">Public and Private Keys<\/h1>\n<p class=\"line862\">Public key authentication is more secure than password authentication. This is particularly important if the computer is visible on the internet. If you don&#8217;t think it&#8217;s important, try <a href=\"https:\/\/help.ubuntu.com\/community\/SSH\/OpenSSH\/Configuring#Logging\">logging<\/a> the login attempts you get for the next week. My computer &#8211; a perfectly ordinary desktop PC &#8211; had over 4,000 attempts to guess my password and almost 2,500 break-in attempts in the last week alone.<span id=\"line-10\" class=\"anchor\"><\/span><span id=\"line-11\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">With public key authentication, the authenticating entity has a public key and a private key. Each key is a large number with special mathematical properties. The private key is kept on the computer you log in from, while the public key is stored on the<strong>.ssh\/authorized_keys<\/strong> file on all the computers you want to log in to. When you log in to a computer, the SSH server uses the public key to &#8220;lock&#8221; messages in a way that can only be &#8220;unlocked&#8221; by your private key &#8211; this means that even the most resourceful attacker can&#8217;t snoop on, or interfere with, your session. As an extra security measure, most SSH programs store the private key in a passphrase-protected format, so that if your computer is stolen or broken in to, you should have enough time to disable your old public key before they break the passphrase and start using your key. Wikipedia has a <a class=\"interwiki\" title=\"WikiPedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Public-key_cryptography\">more detailed explanation<\/a> of how keys work.<span id=\"line-12\" class=\"anchor\"><\/span><span id=\"line-13\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">Public key authentication is a much better solution than passwords for most people. In fact, if you don&#8217;t mind leaving a private key unprotected on your hard disk, you can even use keys to do secure automatic log-ins &#8211; as part of a network backup, for example. Different SSH programs generate public keys in different ways, but they all generate public keys in a similar format:<span id=\"line-14\" class=\"anchor\"><\/span><span id=\"line-15\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1\" class=\"anchor\"><\/span>&lt;ssh-rsa or ssh-dss&gt; &lt;really long string of nonsense&gt; &lt;username&gt;@&lt;host&gt;<\/pre>\n<h1 id=\"Key-Based_SSH_Logins\">Key-Based SSH Logins<\/h1>\n<p class=\"line874\">Key-based authentication is the most secure of several modes of authentication usable with OpenSSH, such as plain password and Kerberos tickets. Key-based authentication has several advantages over password authentication, for example the key values are significantly more difficult to brute-force, or guess than plain passwords, provided an ample key length. Other authentication methods are only used in very specific situations.<span id=\"line-22\" class=\"anchor\"><\/span><span id=\"line-23\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">SSH can use either &#8220;RSA&#8221; (Rivest-Shamir-Adleman) or &#8220;DSA&#8221; (&#8220;Digital Signature Algorithm&#8221;) keys. Both of these were considered state-of-the-art algorithms when SSH was invented, but DSA has come to be seen as less secure in recent years. RSA is the only recommended choice for new keys, so this guide uses &#8220;RSA key&#8221; and &#8220;SSH key&#8221; interchangeably.<span id=\"line-24\" class=\"anchor\"><\/span><span id=\"line-25\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">Key-based authentication uses two keys, one &#8220;public&#8221; key that anyone is allowed to see, and another &#8220;private&#8221; key that only the owner is allowed to see. To securely communicate using key-based authentication, one needs to create a key pair, securely store the private key on the computer one wants to log in from, and store the public key on the computer one wants to log in to.<span id=\"line-26\" class=\"anchor\"><\/span><span id=\"line-27\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">Using key based logins with ssh is generally considered more secure than using plain password logins. This section of the guide will explain the process of generating a set of public\/private RSA keys, and using them for logging into your Ubuntu computer(s) via OpenSSH.<span id=\"line-28\" class=\"anchor\"><\/span><span id=\"line-29\" class=\"anchor\"><\/span><\/p>\n<h1 id=\"Generating_RSA_Keys\">Generating RSA Keys<\/h1>\n<p class=\"line874\">The first step involves creating a set of RSA keys for use in authentication.<span id=\"line-32\" class=\"anchor\"><\/span><span id=\"line-33\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">This should be done on the client.<span id=\"line-34\" class=\"anchor\"><\/span><span id=\"line-35\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">To create your public and private SSH keys on the command-line:<span id=\"line-36\" class=\"anchor\"><\/span><span id=\"line-37\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-1\" class=\"anchor\"><\/span>mkdir ~\/.ssh\n<span id=\"line-2\" class=\"anchor\"><\/span>chmod 700 ~\/.ssh\n<span id=\"line-3\" class=\"anchor\"><\/span>ssh-keygen -t rsa<\/pre>\n<p class=\"line874\">You will be prompted for a location to save the keys, and a passphrase for the keys. This passphrase will protect your private key while it&#8217;s stored on the hard drive:<span id=\"line-44\" class=\"anchor\"><\/span><span id=\"line-45\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-2\" class=\"anchor\"><\/span>Generating public\/private rsa key pair.\n<span id=\"line-2-1\" class=\"anchor\"><\/span>Enter file in which to save the key (\/home\/b\/.ssh\/id_rsa):\n<span id=\"line-3-1\" class=\"anchor\"><\/span>Enter passphrase (empty for no passphrase):\n<span id=\"line-4\" class=\"anchor\"><\/span>Enter same passphrase again:\n<span id=\"line-5\" class=\"anchor\"><\/span>Your identification has been saved in \/home\/b\/.ssh\/id_rsa.\n<span id=\"line-6\" class=\"anchor\"><\/span>Your public key has been saved in \/home\/b\/.ssh\/id_rsa.pub.<\/pre>\n<p class=\"line862\">Your public key is now available as <tt class=\"backtick\">.ssh\/id_rsa.pub<\/tt> in your home folder.<span id=\"line-55\" class=\"anchor\"><\/span><span id=\"line-56\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">Congratulations! You now have a set of keys. Now it&#8217;s time to make your systems allow you to login with them<span id=\"line-57\" class=\"anchor\"><\/span><span id=\"line-58\" class=\"anchor\"><\/span><\/p>\n<h2 id=\"Choosing_a_good_passphrase\">Choosing a good passphrase<\/h2>\n<p class=\"line874\">You need to change all your locks if your RSA key is stolen. Otherwise the thief could impersonate you wherever you authenticate with that key.<span id=\"line-61\" class=\"anchor\"><\/span><span id=\"line-62\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">An SSH key passphrase is a secondary form of security that gives you a little time when your keys are stolen. If your RSA key has a <a href=\"https:\/\/help.ubuntu.com\/community\/StrongPasswords\">strong passphrase<\/a>, it might take your attacker a few hours to guess by brute force. That extra time should be enough to log in to any computers you have an account on, delete your old key from the <tt class=\"backtick\">.ssh\/authorized_keys<\/tt> file, and add a new key.<span id=\"line-63\" class=\"anchor\"><\/span><span id=\"line-64\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">Your SSH key passphrase is <em>only<\/em> used to protect your private key from thieves. It&#8217;s never transmitted over the Internet, and the strength of your key has nothing to do with the strength of your passphrase.<span id=\"line-65\" class=\"anchor\"><\/span><span id=\"line-66\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">The decision to protect your key with a passphrase involves convenience x security. Note that if you protect your key with a passphrase, then when you type the passphrase to unlock it, your local computer will generally leave the key unlocked for a time. So if you use the key multiple times without logging out of your local account in the meantime, you will probably only have to type the passphrase once.<span id=\"line-67\" class=\"anchor\"><\/span><span id=\"line-68\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">If you do adopt a passphrase, pick a <a href=\"https:\/\/help.ubuntu.com\/community\/StrongPasswords\">strong<\/a> one and store it securely in a password manager. You may also write it down on a piece of paper and keep it in a secure place. If you choose not to protect the key with a passphrase, then just press the <tt class=\"backtick\">return<\/tt> when ssh-keygen asks.<span id=\"line-69\" class=\"anchor\"><\/span><span id=\"line-70\" class=\"anchor\"><\/span><\/p>\n<h2 id=\"Key_Encryption_Level\">Key Encryption Level<\/h2>\n<p class=\"line874\">Note: The default is a 2048 bit key. You can increase this to 4096 bits with the -b flag (Increasing the bits makes it harder to crack the key by brute force methods).<span id=\"line-73\" class=\"anchor\"><\/span><span id=\"line-74\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-3\" class=\"anchor\"><\/span>ssh-keygen -t rsa -b 4096<\/pre>\n<h2 id=\"Password_Authentication\">Password Authentication<\/h2>\n<p class=\"line862\">The main problem with public key authentication is that you need a secure way of getting the public key onto a computer before you can log in with it. If you will only ever use an SSH key to log in to your own computer from a few other computers (such as logging in to your PC from your laptop), you should copy your SSH keys over on a memory stick, and <a href=\"https:\/\/help.ubuntu.com\/community\/SSH\/OpenSSH\/Configuring#disable-password-authentication\">disable password authentication<\/a> altogether. If you would like to log in from other computers from time to time (such as a friend&#8217;s PC), make sure you have a <a href=\"https:\/\/help.ubuntu.com\/community\/StrongPasswords\">strong password<\/a>.<span id=\"line-81\" class=\"anchor\"><\/span><span id=\"line-82\" class=\"anchor\"><\/span><\/p>\n<h1 id=\"Transfer_Client_Key_to_Host\">Transfer Client Key to Host<\/h1>\n<p class=\"line874\">The key you need to transfer to the host is the public one. If you can log in to a computer over SSH using a password, you can transfer your RSA key by doing the following from your own computer:<span id=\"line-85\" class=\"anchor\"><\/span><span id=\"line-86\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-4\" class=\"anchor\"><\/span>ssh-copy-id &lt;username&gt;@&lt;host&gt;<\/pre>\n<p class=\"line862\">Where <tt class=\"backtick\">&lt;username&gt;<\/tt> and <tt class=\"backtick\">&lt;host&gt;<\/tt> should be replaced by your username and the name of the computer you&#8217;re transferring your key to.<span id=\"line-91\" class=\"anchor\"><\/span><span id=\"line-92\" class=\"anchor\"><\/span><\/p>\n<p class=\"line867\"><img loading=\"lazy\" decoding=\"async\" title=\"(i)\" src=\"https:\/\/help.ubuntu.com\/moin_static193\/light\/img\/icon-info.png\" alt=\"(i)\" width=\"16\" height=\"16\" \/> Due to <a class=\"http\" href=\"http:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=99785\">this bug<\/a>, you cannot specify a port other than the standard port 22. You can work around this by issuing the command like this: <tt>ssh-copy-id\u00a0\"&lt;username&gt;@&lt;host&gt;\u00a0-p\u00a0&lt;port_nr&gt;\"<\/tt>. If you are using the standard port 22, you can ignore this tip.<span id=\"line-93\" class=\"anchor\"><\/span><span id=\"line-94\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">Another alternative is to copy the public key file to the server and concatenate it onto the authorized_keys file manually. It is wise to back that up first:<span id=\"line-95\" class=\"anchor\"><\/span><span id=\"line-96\" class=\"anchor\"><\/span><span id=\"line-97\" class=\"anchor\"><\/span><span id=\"line-98\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-5\" class=\"anchor\"><\/span>cp authorized_keys authorized_keys_Backup\n<span id=\"line-2-2\" class=\"anchor\"><\/span>cat id_rsa.pub &gt;&gt; authorized_keys<\/pre>\n<p class=\"line874\">You can make sure this worked by doing:<span id=\"line-101\" class=\"anchor\"><\/span><span id=\"line-102\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-6\" class=\"anchor\"><\/span>ssh &lt;username&gt;@&lt;host&gt;<\/pre>\n<p class=\"line874\">You should be prompted for the passphrase for your key:<span id=\"line-107\" class=\"anchor\"><\/span><span id=\"line-108\" class=\"anchor\"><\/span><\/p>\n<div>\n<table>\n<tbody>\n<tr>\n<td>\n<p class=\"line862\">Enter passphrase for key &#8216;\/home\/&lt;user&gt;\/.ssh\/id_rsa&#8217;:<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p class=\"line862\">Enter your passphrase, and provided <em>host<\/em> is configured to allow key-based logins, you should then be logged in as usual.<span id=\"line-111\" class=\"anchor\"><\/span><span id=\"line-112\" class=\"anchor\"><\/span><\/p>\n<h1 id=\"Troubleshooting\">Troubleshooting<\/h1>\n<h3 id=\"Encrypted_Home_Directory\">Encrypted Home Directory<\/h3>\n<p class=\"line862\">If you have an encrypted home directory, SSH cannot access your <tt class=\"backtick\">authorized_keys<\/tt> file because it is inside your encrypted home directory and won&#8217;t be available until after you are authenticated. Therefore, SSH will default to password authentication.<span id=\"line-117\" class=\"anchor\"><\/span><span id=\"line-118\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">To solve this, create a folder outside your home named <tt class=\"backtick\">\/etc\/ssh\/&lt;username&gt;<\/tt> (replace &#8220;&lt;username&gt;&#8221; with your actual username). This directory should have 755 permissions and be owned by the user. Move the <tt class=\"backtick\">authorized_keys<\/tt> file into it. The <tt class=\"backtick\">authorized_keys<\/tt> file should have 644 permissions and be owned by the user. <span id=\"line-119\" class=\"anchor\"><\/span><span id=\"line-120\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">Then edit your <tt class=\"backtick\">\/etc\/ssh\/sshd_config<\/tt> and add:<span id=\"line-121\" class=\"anchor\"><\/span><span id=\"line-122\" class=\"anchor\"><\/span><span id=\"line-123\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-7\" class=\"anchor\"><\/span>AuthorizedKeysFile    \/etc\/ssh\/%u\/authorized_keys<\/pre>\n<p class=\"line874\">Finally, restart ssh with:<span id=\"line-126\" class=\"anchor\"><\/span><span id=\"line-127\" class=\"anchor\"><\/span><span id=\"line-128\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-8\" class=\"anchor\"><\/span>sudo service ssh restart<\/pre>\n<p class=\"line874\">The next time you connect with SSH you should not have to enter your password.<span id=\"line-131\" class=\"anchor\"><\/span><span id=\"line-132\" class=\"anchor\"><\/span><\/p>\n<h3 id=\"username.40host.27s_password:\">username@host&#8217;s password:<\/h3>\n<p class=\"line874\">If you are not prompted for the passphrase, and instead get just the<span id=\"line-134\" class=\"anchor\"><\/span><span id=\"line-135\" class=\"anchor\"><\/span><\/p>\n<div>\n<table>\n<tbody>\n<tr>\n<td>\n<p class=\"line862\">username@host&#8217;s password:<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p class=\"line874\">prompt as usual with password logins, then read on. There are a few things which could prevent this from working as easily as demonstrated above. On default Ubuntu installs however, the above examples should work. If not, then check the following condition, as it is the most frequent cause:<span id=\"line-138\" class=\"anchor\"><\/span><span id=\"line-139\" class=\"anchor\"><\/span><\/p>\n<p class=\"line862\">On the host computer, ensure that the <tt class=\"backtick\">\/etc\/ssh\/sshd_config<\/tt> contains the following lines, and that they are <em>uncommented<\/em>;<span id=\"line-140\" class=\"anchor\"><\/span><span id=\"line-141\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-9\" class=\"anchor\"><\/span>PubkeyAuthentication yes\n<span id=\"line-2-3\" class=\"anchor\"><\/span>RSAAuthentication yes<\/pre>\n<p class=\"line862\">If not, add them, or uncomment them, restart OpenSSH, and try logging in again. If you get the <em>passphrase<\/em> prompt now, then congratulations, you&#8217;re logging in with a key!<span id=\"line-147\" class=\"anchor\"><\/span><span id=\"line-148\" class=\"anchor\"><\/span><span id=\"line-149\" class=\"anchor\"><\/span><\/p>\n<h3 id=\"Permission_denied_.28publickey.29\">Permission denied (publickey)<\/h3>\n<p class=\"line862\">If you&#8217;re sure you&#8217;ve correctly configured <tt class=\"backtick\">sshd_config<\/tt>, copied your ID, and have your private key in the <tt class=\"backtick\">.ssh<\/tt> directory, and still getting this error:<span id=\"line-152\" class=\"anchor\"><\/span><span id=\"line-153\" class=\"anchor\"><\/span><\/p>\n<div>\n<table>\n<tbody>\n<tr>\n<td>\n<p class=\"line891\"><tt>Permission\u00a0denied\u00a0(publickey).<\/tt><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p class=\"line862\">Chances are, your <tt class=\"backtick\">\/home\/&lt;user&gt;<\/tt> or <tt class=\"backtick\">~\/.ssh\/authorized_keys<\/tt> permissions are too open by OpenSSH standards. You can get rid of this problem by issuing the following commands:<span id=\"line-156\" class=\"anchor\"><\/span><span id=\"line-157\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-10\" class=\"anchor\"><\/span>chmod go-w ~\/\n<span id=\"line-2-4\" class=\"anchor\"><\/span>chmod 700 ~\/.ssh\n<span id=\"line-3-2\" class=\"anchor\"><\/span>chmod 600 ~\/.ssh\/authorized_keys<\/pre>\n<h3 id=\"Error:_Agent_admitted_failure_to_sign_using_the_key.\">Error: Agent admitted failure to sign using the key.<\/h3>\n<p class=\"line874\">This error occurs when the ssh-agent on the client is not yet managing the key. Issue the following commands to fix: <span id=\"line-166\" class=\"anchor\"><\/span><span id=\"line-167\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-11\" class=\"anchor\"><\/span>ssh-add<\/pre>\n<p class=\"line874\">This command should be entered after you have copied your public key to the host computer.<span id=\"line-172\" class=\"anchor\"><\/span><span id=\"line-173\" class=\"anchor\"><\/span><\/p>\n<h3 id=\"Debugging_and_sorting_out_further_problems\">Debugging and sorting out further problems<\/h3>\n<p class=\"line874\">The permissions of files and folders is crucial to this working. <span id=\"line-176\" class=\"anchor\"><\/span>You can get debugging information from both the client and server. <span id=\"line-177\" class=\"anchor\"><\/span><span id=\"line-178\" class=\"anchor\"><\/span><\/p>\n<p class=\"line874\">if you think you have set it up correctly , yet still get asked for the password, try starting the server with debugging output to the terminal.<span id=\"line-179\" class=\"anchor\"><\/span><span id=\"line-180\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-12\" class=\"anchor\"><\/span>sudo \/usr\/sbin\/sshd -d<\/pre>\n<p class=\"line874\">To connect and send information to the client terminal<span id=\"line-185\" class=\"anchor\"><\/span><span id=\"line-186\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-13\" class=\"anchor\"><\/span>ssh -v ( or -vv) username@host's<\/pre>\n<h1 id=\"Where_to_From_Here.3F\">Where to From Here?<\/h1>\n<p class=\"line862\">No matter how your public key was generated, you can add it to your Ubuntu system by opening the file <tt class=\"backtick\">.ssh\/authorized_keys<\/tt> in your favourite text editor and adding the key to the bottom of the file. You can also limit the SSH features that the key can use, such as disallowing port-forwarding or only allowing a specific command to be run. This is done by adding &#8220;options&#8221; before the SSH key, on the same line in the <tt class=\"backtick\">authorized_keys<\/tt> file. For example, if you maintain a CVS repository, you could add a line like this:<span id=\"line-197\" class=\"anchor\"><\/span><span id=\"line-198\" class=\"anchor\"><\/span><\/p>\n<pre><span id=\"line-1-14\" class=\"anchor\"><\/span>command=\"\/usr\/bin\/cvs server\",no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc ssh-dss &lt;string of nonsense&gt;...<\/pre>\n<p class=\"line862\">When the user with the specified key logged in, the server would automatically run <tt class=\"backtick\">\/usr\/bin\/cvs\u00a0server<\/tt>, ignoring any requests from the client to run another command such as a shell. For more information, see <a class=\"http\" href=\"http:\/\/www.openbsd.org\/cgi-bin\/man.cgi?query=sshd&amp;sektion=8#SSHRC\">the sshd man page<\/a>. <span id=\"line-203\" class=\"anchor\"><\/span>\/755<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Public and Private Keys Public key authentication is more secure than password authentication. This is particularly important if the computer is visible on the internet.&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-881","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":0,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}