{"id":486,"date":"2012-10-02T17:52:09","date_gmt":"2012-10-02T14:52:09","guid":{"rendered":"http:\/\/fatihacar.com\/blog\/?p=486"},"modified":"2016-05-27T16:31:10","modified_gmt":"2016-05-27T13:31:10","slug":"ssh-connectivity-configuration-for-cluster-nodes-on-oracle-linux","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/ssh-connectivity-configuration-for-cluster-nodes-on-oracle-linux\/","title":{"rendered":"SSH Connectivity Configuration For Cluster Nodes on Oracle Linux"},"content":{"rendered":"<p>SSH connectivity configuration provides connection among nodes without using password. If you configure ssh, nodes can connect with ssh without password.<\/p>\n<p>SSH configuration parameters are in path which is \/home\/username\/.ssh\/ . You have to make SSH configuration in connection user&#8217;s home directory. For example if you use oracle user for ssh connection, you have to use \/home\/oracle\/.ssh\/ path.<\/p>\n<p><strong>Create SSH Key on First Node<\/strong><\/p>\n<blockquote><p>[oracle@test01 ~]$ssh-keygen -t rsa<br \/>\nGenerating public\/private rsa key pair.<br \/>\nEnter file in which to save the key (\/home\/oracle\/.ssh\/id_rsa):<br \/>\nCreated directory &#8216;\/home\/oracle\/.ssh&#8217;.<br \/>\nEnter passphrase (empty for no passphrase):<br \/>\nEnter same passphrase again:<br \/>\nYour identification has been saved in \/home\/oracle\/.ssh\/id_rsa.<br \/>\nYour public key has been saved in \/home\/oracle\/.ssh\/id_rsa.pub.<br \/>\nThe key fingerprint is:<br \/>\ne3:ea:68:e1:53:b5:9a:14:a9:b3:e6:58 oracle@test01<br \/>\nThe key&#8217;s randomart image is:<br \/>\n+&#8211;[ RSA 2048]&#8212;-+<br \/>\n| |<br \/>\n| o |<br \/>\n| = . |<br \/>\n| . o o + |<br \/>\n| +S+ |<br \/>\n| . o.o.o |<br \/>\n| . + o. Eo |<br \/>\n| +.o. |<br \/>\n| ..o .o. |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n[oracle@test01 ~]$<br \/>\n[oracle@test01 ~]$ cd \/home\/oracle\/.ssh\/<br \/>\n[oracle@test01 .ssh]$ ll<br \/>\ntotal 8<br \/>\n-rw&#8212;&#8212;-. 1 oracle oinstall 1675 Oct 2 17:22 id_rsa<br \/>\n-rw-r&#8211;r&#8211;. 1 oracle oinstall 404 Oct 2 17:22 id_rsa.pub<\/p><\/blockquote>\n<p><strong>Create SSH Key on Second Node<\/strong><\/p>\n<blockquote><p>[oracle@test02 ~]$ssh-keygen -t rsa<br \/>\nGenerating public\/private rsa key pair.<br \/>\nEnter file in which to save the key (\/home\/oracle\/.ssh\/id_rsa):<br \/>\nCreated directory &#8216;\/home\/oracle\/.ssh&#8217;.<br \/>\nEnter passphrase (empty for no passphrase):<br \/>\nEnter same passphrase again:<br \/>\nYour identification has been saved in \/home\/oracle\/.ssh\/id_rsa.<br \/>\nYour public key has been saved in \/home\/oracle\/.ssh\/id_rsa.pub.<br \/>\nThe key fingerprint is:<br \/>\ne3:ea:68:e1:53:b5:9a:14:a9:b3:e6:58 oracle@test02<br \/>\nThe key&#8217;s randomart image is:<br \/>\n+&#8211;[ RSA 2048]&#8212;-+<br \/>\n| o |<br \/>\n| o |<br \/>\n| = . |<br \/>\n| . o o + |<br \/>\n| +S+ |<br \/>\n| . .o.o |<br \/>\n| . + o. o |<br \/>\n| +.o. |<br \/>\n| ..o .o. |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n[oracle@test02 ~]$<br \/>\n[oracle@test02 ~]$ cd \/home\/oracle\/.ssh\/<br \/>\n[oracle@test02 .ssh]$ ll<br \/>\ntotal 8<br \/>\n-rw&#8212;&#8212;-. 1 oracle oinstall 1675 Oct 2 17:22 id_rsa<br \/>\n-rw-r&#8211;r&#8211;. 1 oracle oinstall 404 Oct 2 17:22 id_rsa.pub<\/p><\/blockquote>\n<p><strong>Copy SSH Key From First Node To Second Node<\/strong><\/p>\n<blockquote><p>[oracle@test01 ~]$ scp \/home\/oracle\/.ssh\/id_rsa.pub oracle@test02:\/home\/oracle\/.ssh\/authorized_keys<\/p><\/blockquote>\n<p><strong>Copy SSH Key From Second Node To First Node<\/strong><\/p>\n<blockquote><p>[oracle@test02 ~]$ scp \/home\/oracle\/.ssh\/id_rsa.pub oracle@test01:\/home\/oracle\/.ssh\/authorized_keys<\/p><\/blockquote>\n<p><strong>Connection Test<\/strong><\/p>\n<blockquote><p>[oracle@test01 ~]$ ssh oracle@test02<br \/>\n[oracle@test02 ~]$<\/p>\n<p>If you want to add another server, you can use cat or ssh-copy-id command.<\/p>\n<p><strong>Cat Command<\/strong><\/p>\n<blockquote><p>Recommenned<br \/>\n[oracle@test01 ~]$ ssh-copy-id oracle@test03<\/p>\n<p>ssh-copy-id command adds automaticaly to authorized_keys.<\/p>\n<p>or<\/p>\n<p>[oracle@test03 ~]$ scp \/home\/oracle\/.ssh\/id_rsa.pub oracle@test01:\/home\/oracle\/.ssh\/id_rsa_test03.pub<br \/>\n[oracle@test01 ~]$ cat id_rsa_test03.pub &gt;&gt; authorized_keys<\/p><\/blockquote>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>SSH connectivity configuration provides connection among nodes without using password. If you configure ssh, nodes can connect with ssh without password. SSH configuration parameters are in path which is \/home\/username\/.ssh\/ . You have to make SSH configuration in connection user&#8217;s home directory. For example if you use oracle user for ssh connection, you have to&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,18],"tags":[14,31,22],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-administration","category-linux-unix","tag-database-administration","tag-linux-administration","tag-system-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-7Q","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":9,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":1497,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions\/1497"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}