{"id":203,"date":"2010-04-05T11:14:04","date_gmt":"2010-04-05T03:14:04","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=203"},"modified":"2010-04-05T11:14:04","modified_gmt":"2010-04-05T03:14:04","slug":"ssh-tectia-setup-public-key-authentication","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/ssh-tectia-setup-public-key-authentication\/","title":{"rendered":"SSH Tectia: Setup Public-Key Authentication"},"content":{"rendered":"<p>A quick post on how to setup a public-key authentication on an SSH client server, product by SSH Tectia.<\/p>\n<p>Summary: User instruction on how to setup public-key authentication.<\/p>\n<p>In setting up the ssh public-key authentication between servers, local and remote, we have to generate the key pairs and transfer it to the remote\/server.<\/p>\n<p><strong>Client Side<\/strong><\/p>\n<p>The publickey authentication method is enabled by the SSHtectia package by default. A functional ID&#8217;s key pair can be generated using the &#8216;generate_keys&#8217; script (may be located in \/export\/opt\/SSHtectia\/<version>\/util\/ or depending on your installation). That script, &#8216;generate_keys&#8217;, is use to generate user key pairs: id_dsa_2048_a and id_dsa_2048_a.pub (default names) in the centralized key location:<\/p>\n<p>\/etc\/opt\/SSHtectia\/keys\/<login ID><\/p>\n<p>The script also creates an &#8216;identification&#8217; file in \/etc\/opt\/SSHtectial\/keys\/<login ID> that contains the name of the private keys:<\/p>\n<p># more identification<br \/>\n# SSH Tectia private key<br \/>\nIdKey \/etc\/opt\/SSHtectia\/keys\/%U\/id_dsa_2048_a<\/p>\n<p># OpenSSH private key<br \/>\nIdKey \/etc\/opt\/SSHtectia\/keys\/%U\/id_dsa<\/p>\n<p>Don&#8217;t forget to substitute the private key filename for &#8216;id_dsa_2048_a&#8217; or &#8216;id_dsa&#8217; if you are using a different naming convention. If several key pairs are used, list private keys on a separate lines.<\/p>\n<p><strong>Server Side<\/strong><\/p>\n<p>The publickey authentication method is enabled for functional IDs ONLY by the SSHtectia package (how do we know if an account is such?). <\/p>\n<p>Copy the public key file (i.e. id_dsa_2048_a.pub) to the server, to the centralized key location. You can use sftp, copy paste or any other method to do this.<\/p>\n<p>Also copy the &#8216;authorization&#8217; file (created by the &#8216;generate_keys&#8217; script) from the cliet to the server&#8217;s centralized key location. <\/p>\n<p>Test the connection.. it should work.. It worked on mine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick post on how to setup a public-key authentication on an SSH client server, product by SSH Tectia. Summary: User instruction on how to setup public-key authentication. In setting up the ssh public-key authentication &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8,36],"tags":[333,332,159,331],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-solaris","category-tips","category-tutorial","tag-public-key-authentication","tag-public-key","tag-ssh","tag-ssh-tectia"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":1,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}