{"id":1083,"date":"2024-06-20T19:58:22","date_gmt":"2024-06-20T17:58:22","guid":{"rendered":"https:\/\/www.homeserver.lu\/?p=1083"},"modified":"2024-06-20T19:58:22","modified_gmt":"2024-06-20T17:58:22","slug":"set-up-ssh-keys-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.homeserver.lu\/?p=1083","title":{"rendered":"Set up SSH keys on Ubuntu 24.04"},"content":{"rendered":"\n<p>Login to your Ubuntu client with the username for which you want to create a key pair. Create the key with the following command:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>ssh-keygen<\/code><\/pre><\/div>\n\n\n\n<p>The keys will be saved in your home directory under:<em> \/.ssh\/id_rsa<\/em><\/p>\n\n\n\n<p>Now copy your public key to the server that you want to connect to crom your client without using a password:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>ssh-copy-id myusername@remote_host<\/code><\/pre><\/div>\n\n\n\n<p>That&#8217;s it. Now try to connect to your server with that username. If all works fine, no password will be asked for.<\/p>\n\n\n\n<p>For a more comprehensive tutorial with more explanations, please consult this <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-set-up-ssh-keys-on-ubuntu-20-04\" target=\"_blank\" rel=\"noreferrer noopener\">excellent page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Login to your Ubuntu client with the username for which you want to create a key pair. Create the key with the following command: The keys will be saved in your home directory under: \/.ssh\/id_rsa Now copy your public key to the server that you want to connect to crom your client without using a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-1083","post","type-post","status-publish","format-standard","hentry","category-cli"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1083"}],"version-history":[{"count":1,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":1084,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=\/wp\/v2\/posts\/1083\/revisions\/1084"}],"wp:attachment":[{"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.homeserver.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}