{"id":60250,"date":"2018-09-18T15:07:57","date_gmt":"2018-09-18T12:07:57","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=60250"},"modified":"2019-04-23T14:15:09","modified_gmt":"2019-04-23T11:15:09","slug":"git-generate-ssh-key-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/","title":{"rendered":"Git Generate SSH Key Example"},"content":{"rendered":"<p>In this post, we will demonstrate how to generate an SSH key that can be used to authenticate with a Git server.<\/p>\n<h2>1. Introduction<\/h2>\n<p>The two transfer protocols that are used to access a Git server are HTTPS and SSH (short for Secure Shell). (The <em>git <\/em>and <em>local <\/em>protocols are unusable for any but the most basic development environments.) HTTPS uses a username and password for authentication. SSH uses public-key cryptography for authentication and data encryption. SSH is commonly used when a system or process (for example, a build server) requires access to a Git repository.<\/p>\n<p>Public-key cryptography uses a public and private key. The public key is stored on the server and the private key is stored with the client. In this example, we will show how to generate a public and private key pair to use for SSH authentication with a Git server.<\/p>\n<h3>1.1 Tools Used in this Example<\/h3>\n<ul>\n<li>Git 2.17<\/li>\n<\/ul>\n<p>Git downloads are available here: <a href=\"https:\/\/git-scm.com\/downloads\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/git-scm.com\/downloads<\/a>.<\/p>\n<p><strong>Note:<\/strong> This example was created on the macOS Sierra platform. Git for Windows includes Git Bash and Git CMD shells to run command-line operations.\n<\/p>\n<h2>2. Git Generate SSH Key Example<\/h2>\n<h3>2.1 Check for Existing SSH Keys<\/h3>\n<p>Before you generate an SSH key pair, you may want to check if one already exists. The private key file is named <code>id_rsa<\/code> (if you are using RSA cryptography) and the corresponding public key file is named <code>id_rsa.pub<\/code>. Since SSH keys are stored in a directory named.&#8221;\/ssh&#8221; by default, you can check for their existence by opening a terminal and running the <code>ls<\/code> command:<\/p>\n<pre class=\"brush:bash\">$ ls ~\/.ssh\n<\/pre>\n<p>If you have an existing SSH key pair and would like to use these keys to access the Git server, skip down to the <a href=\"#copykey\">\u201cCopy the Public Key to the Server\u201d<\/a> section below.<\/p>\n<h3>2.2 Generate the SSH Keys<\/h3>\n<p>If the key files do not exist, you can generate them with the following command:<\/p>\n<pre class=\"brush:bash\">$ ssh-keygen -t rsa -b 4096\n<\/pre>\n<p>The <code>-t<\/code> option specifies the algorithm that is to be used for key generation. Options include RSA, DSA, and ECDSA. The <code>-b<\/code> option specifies the key file size in bits.<\/p>\n<p><em>(For a complete list of options, visit <a href=\"https:\/\/docstore.mik.ua\/orelly\/networking_2ndEd\/ssh\/appb_07.htm\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docstore.mik.ua\/orelly\/networking_2ndEd\/ssh\/appb_07.htm<\/a>.)<\/em><\/p>\n<p>Executing the command will prompt you for the name and location of the key file.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>ssh-keygen &#8211; Prompt for Key Name and Location<\/em><\/span><div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh-keygen -t rsa -b 4096\nGenerating public\/private rsa key pair.\nEnter file in which to save the key (\/Users\/gilbertlopez\/.ssh\/id_rsa): \n<\/pre>\n<p>Hit &#8220;Enter&#8221; to accept the default.<\/p>\n<p>Next, you will be prompted for a passphrase. Using a passphrase will add an extra layer of security. Hit &#8220;Enter&#8221; for no passphrase. Otherwise, you will be prompted to verify the passphrase that you entered.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>ssh-keygen &#8211; Prompt for Passphrase<\/em><\/span><\/p>\n<pre class=\"brush:bash; wrap-lines:false\">Enter passphrase (empty for no passphrase): \nEnter same passphrase again: \n<\/pre>\n<p><strong>Note:<\/strong> If you opt to use a passphrase, it is suggested that you add the SSH key to the ssh-agent helper program so that you supply the passphrase once, as opposed to entering it every time you connect to the server. See the section on <a href=\"#addkey\">&#8220;Adding the Key to the SSH Agent&#8221;<\/a> for more information.<\/p>\n<p>When key generation has completed, you will see something similar to the following:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Key Generation Output<\/em><\/span><\/p>\n<pre class=\"brush:bash; wrap-lines:false\">Your identification has been saved in \/Users\/gilbertlopez\/.ssh\/id_rsa.\nYour public key has been saved in \/Users\/gilbertlopez\/.ssh\/id_rsa.pub.\nThe key fingerprint is:\nSHA256:zpU9W7hPapMRkLvBktDEr8NqMx29uXZDRuIZTJaDghs gilbertlopez@Gilberts-MBP\nThe key's randomart image is:\n+---[RSA 4096]----+\n|     . +.. o     |\n|    E o + B      |\n|     o o B +     |\n|    .   o Ooo.   |\n|       .S=oB+..  |\n|       o=.= +=   |\n|       ooo =oo.  |\n|      = . + *+   |\n|     . o ..+.o.  |\n+----[SHA256]-----+\n<\/pre>\n<p>As you can see, the ssh-keygen command produces the two keys needed for SSH authentication: your private key ( <code>id_rs<\/code>a ) and a public key ( <code>id_rsa.pub<\/code> ).<\/p>\n<h3><a name=\"copykey\"><\/a>2.3 Copy the Public Key to the Server<\/h3>\n<p>If your team has a personal Git server that is configured to accept SSH connections, the public key must be copied to that server and added to the &#8220;authorized_keys&#8221; file. This can be accomplished with the ssh-copy-id tool. Use the following command:<\/p>\n<pre class=\"brush:bash; wrap-lines=false\">$ ssh-copy-id user@host\n<\/pre>\n<p><strong>Note:<\/strong> You will be prompted for the passphrase if you selected one during key generation.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Example ssh-copy-id Command Output<\/em><\/span><\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh-copy-id git@192.168.1.xx\n\/usr\/bin\/ssh-copy-id: INFO: Source of key(s) to be installed: \"\/Users\/gilbertlopez\/.ssh\/id_rsa.pub\"\n\/usr\/bin\/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed\n\/usr\/bin\/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys\nPassword:\n\nNumber of key(s) added:        1\n\nNow try logging into the machine, with:   \"ssh 'git@192.168.1.xx'\"\nand check to make sure that only the key(s) you wanted were added.\n<\/pre>\n<p>The <code>ssh-copy-id<\/code> command looks for the default identity\u2019s public key (id_rsa.pub or id_dsa.pub) in the users \/.ssh directory. If you have more than one key and\/or have your key files in a different directory, you must specify it using the <code>-i<\/code> option. For example:[ulp id=&#8217;pzgfvmZhgslwSymm&#8217;]<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">ssh-copy-id -i ~\/.ssh\/tatu-key-ecdsa user@host\n<\/pre>\n<p>The <code>ssh-copy-id<\/code> command also uses the default port for SSH connections, namely port 22. You can specify a different port using the <code>\u2013p<\/code> option.<\/p>\n<p><strong>Note: <\/strong>If the Git server does not have an authorized_keys file, the <code>ssh-copy-id<\/code> command will create it.<\/p>\n<p>Next, verify that the key was properly installed on the server. Use the <code>ssh <\/code>command to connect to the server:<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh 'user@host'\n<\/pre>\n<p>For example:<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh 'git@192.168.1.xx'\nEnter passphrase for key '\/Users\/gilbertlopez\/.ssh\/id_rsa': \nGilbertopezsMBP:~ git$ '\n<\/pre>\n<p>Many organizations use GitHub or Bitbucket to host and manage their repositories. Visit the following pages for instructions on adding an SSH key to your account.<\/p>\n<p>Bitbucket: <a href=\"https:\/\/confluence.atlassian.com\/bitbucketserver\/ssh-user-keys-for-personal-use-776639793.html#SSHuserkeysforpersonaluse-addSSH\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/confluence.atlassian.com\/bitbucketserver\/ssh-user-keys-for-personal-use-776639793.html#SSHuserkeysforpersonaluse-addSSH<\/a><\/p>\n<p>Github: <a href=\"https:\/\/help.github.com\/articles\/adding-a-new-ssh-key-to-your-github-account\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/help.github.com\/articles\/adding-a-new-ssh-key-to-your-github-account\/<\/a><\/p>\n<h3><a name=\"addkey\"><\/a>2.4 Adding the Key to the SSH Agent<\/h3>\n<p>(<strong>Note:<\/strong> This step is optional.)<\/p>\n<p>If you would like to forgo entering your passphrase every time you want to connect to the Git server (and who wouldn\u2019t!), you can add your private key to the ssh-agent helper program. The <code>ssh-agent<\/code> program manages private keys and their corresponding passphrases. To add the your private key to ssh-agent, use the following command:<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh-add\n<\/pre>\n<p><span style=\"text-decoration: underline;\"><em>Example ssh-add Command Output<\/em><\/span><\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh-add\nEnter passphrase for \/Users\/gilbertlopez\/.ssh\/id_rsa: \nIdentity added: \/Users\/gilbertlopez\/.ssh\/id_rsa (\/Users\/gilbertlopez\/.ssh\/id_rsa)\n<\/pre>\n<p>The <code>ssh-add<\/code> command looks for the default identity\u2019s public key (<code>id_rsa.pub<\/code> or <code>id_dsa.pub<\/code>) in the users \/.ssh directory. If you have more than one key and\/or have your key files in a different directory, you must specify it. For example:<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ ssh-add ~\/directory\/filename\n<\/pre>\n<p>You can now connect to the server without being prompted for a passphrase.<\/p>\n<h2>3. Summary<\/h2>\n<p>In this example, we demonstrated how to generate an SSH key that can be used to authenticate with a Git server. We also showed how to copy the public key to the server and how to add the key to the SSH agent helper program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we will demonstrate how to generate an SSH key that can be used to authenticate with a Git server. 1. Introduction The two transfer protocols that are used to access a Git server are HTTPS and SSH (short for Secure Shell). (The git and local protocols are unusable for any but the &hellip;<\/p>\n","protected":false},"author":121,"featured_media":27377,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1353],"tags":[1203,1535,1731,1733],"class_list":["post-60250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git","tag-git-bash","tag-git-ssh","tag-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git Generate SSH Key Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Interested to learn more about Git? Then check out our detailed example on Git Generate SSH Key! You can also download our FREE Git Tutorial!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Generate SSH Key Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about Git? Then check out our detailed example on Git Generate SSH Key! You can also download our FREE Git Tutorial!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-18T12:07:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-23T11:15:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Gilbert Lopez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gillopez_dev\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gilbert Lopez\" \/>\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\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\"},\"author\":{\"name\":\"Gilbert Lopez\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce\"},\"headline\":\"Git Generate SSH Key Example\",\"datePublished\":\"2018-09-18T12:07:57+00:00\",\"dateModified\":\"2019-04-23T11:15:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\"},\"wordCount\":910,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"keywords\":[\"git\",\"Git bash\",\"git ssh\",\"ssh\"],\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\",\"name\":\"Git Generate SSH Key Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"datePublished\":\"2018-09-18T12:07:57+00:00\",\"dateModified\":\"2019-04-23T11:15:09+00:00\",\"description\":\"Interested to learn more about Git? Then check out our detailed example on Git Generate SSH Key! You can also download our FREE Git Tutorial!\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Git Generate SSH Key Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce\",\"name\":\"Gilbert Lopez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg\",\"caption\":\"Gilbert Lopez\"},\"description\":\"Gilbert Lopez is an application developer and systems integration developer with experience building business solutions for large and medium-sized companies. He has worked on many Java EE projects. His roles have included lead developer, systems analyst, business analyst and consultant. Gilbert graduated from California State University in Los Angeles with a Bachelor of Science degree in Business.\",\"sameAs\":[\"https:\/\/www.javacodegeeks.com\",\"https:\/\/www.linkedin.com\/in\/gilbertlopezdeveloper\",\"https:\/\/x.com\/gillopez_dev\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/gilbert-lopez\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git Generate SSH Key Example - Java Code Geeks","description":"Interested to learn more about Git? Then check out our detailed example on Git Generate SSH Key! You can also download our FREE Git Tutorial!","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:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/","og_locale":"en_US","og_type":"article","og_title":"Git Generate SSH Key Example - Java Code Geeks","og_description":"Interested to learn more about Git? Then check out our detailed example on Git Generate SSH Key! You can also download our FREE Git Tutorial!","og_url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2018-09-18T12:07:57+00:00","article_modified_time":"2019-04-23T11:15:09+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","type":"image\/jpeg"}],"author":"Gilbert Lopez","twitter_card":"summary_large_image","twitter_creator":"@gillopez_dev","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Gilbert Lopez","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/"},"author":{"name":"Gilbert Lopez","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce"},"headline":"Git Generate SSH Key Example","datePublished":"2018-09-18T12:07:57+00:00","dateModified":"2019-04-23T11:15:09+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/"},"wordCount":910,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","keywords":["git","Git bash","git ssh","ssh"],"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/","url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/","name":"Git Generate SSH Key Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","datePublished":"2018-09-18T12:07:57+00:00","dateModified":"2019-04-23T11:15:09+00:00","description":"Interested to learn more about Git? Then check out our detailed example on Git Generate SSH Key! You can also download our FREE Git Tutorial!","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-generate-ssh-key-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/"},{"@type":"ListItem","position":3,"name":"Git","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/"},{"@type":"ListItem","position":4,"name":"Git Generate SSH Key Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce","name":"Gilbert Lopez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg","caption":"Gilbert Lopez"},"description":"Gilbert Lopez is an application developer and systems integration developer with experience building business solutions for large and medium-sized companies. He has worked on many Java EE projects. His roles have included lead developer, systems analyst, business analyst and consultant. Gilbert graduated from California State University in Los Angeles with a Bachelor of Science degree in Business.","sameAs":["https:\/\/www.javacodegeeks.com","https:\/\/www.linkedin.com\/in\/gilbertlopezdeveloper","https:\/\/x.com\/gillopez_dev"],"url":"https:\/\/examples.javacodegeeks.com\/author\/gilbert-lopez\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/60250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/121"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=60250"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/60250\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/27377"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=60250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=60250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=60250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}