{"id":6671,"date":"2025-02-24T16:27:49","date_gmt":"2025-02-25T00:27:49","guid":{"rendered":"https:\/\/jetstreamsoft.com\/portal\/?post_type=ht_kb&#038;p=6671"},"modified":"2025-02-24T17:59:40","modified_gmt":"2025-02-25T01:59:40","slug":"accessing-drva-console-ssh","status":"publish","type":"ht_kb","link":"https:\/\/jetstreamsoft.com\/portal\/jetstream-knowledge-base\/accessing-drva-console-ssh\/","title":{"rendered":"Accessing DRVA Console\/SSH with Two-Factor Authentication"},"content":{"rendered":"\n<p class=\"is-style-info wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\"><em>This article applies to JSDR software version <strong>4.3.x<\/strong>.<\/em><\/p>\n\n\n\n<p class=\"\"><em>Jetstream DR version 4.3.x <\/em>utilizes two-factor authentication as an additional layer of security to access the DRVA console\/SSH. This guide provides steps to generate the one-time password (OTP) required after logging in with admin credentials.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Access DRVA Console\/SSH<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Login with Admin Credentials<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Access the DRVA Login Page:\n<ul class=\"wp-block-list\">\n<li class=\"\">Open a web browser and navigate to the DRVA login page.<\/li>\n\n\n\n<li class=\"\">Enter the admin credentials then click <em><strong>Login<\/strong><\/em>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li class=\"\">OTP Prompt:\n<ul class=\"wp-block-list\">\n<li class=\"\">After successfully entering admin credentials, a prompt will appear requesting the OTP.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Generate the OTP<\/h2>\n\n\n\n<p class=\"is-style-success wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">The OTP can be generated using a REST API client or directly from the MSA CLI.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Method 1: Using Postman or any REST API Client<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\">Open <em>Postman<\/em> (or any preferred REST API Client).<\/li>\n\n\n\n<li class=\"\">Send a <kbd>GET<\/kbd> request to retrieve the OTP:<br><code>GET https:\/\/:32878\/drva\/system\/security<\/code><\/li>\n\n\n\n<li class=\"\">Add Required Headers (Using Postman):<br><code>Content-Type: application\/x-www-form-urlencoded<br>x-jetdr-ms-session-id: JetStreamSessionId<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"\"><strong>Example using Postman:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\"><strong>Method<\/strong>: GET<\/li>\n\n\n\n<li class=\"\"><strong>URL<\/strong>: <kbd>https:\/\/:32878\/drva\/system\/security<\/kbd><\/li>\n\n\n\n<li class=\"\"><strong>Headers <\/strong>(must be added under the Header section):<br><code>Key: Content-Type, Value: application\/x-www-form-urlencoded<br>Key: x-jetdr-ms-session-id, Value: JetStreamSessionId<\/code><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Method 2: Using the curl Command from the MSA<\/h4>\n\n\n\n<p class=\"\">As an alternative to Method 1 described above, the OTP can be generated directly from the MSA using the <kbd>curl<\/kbd> command:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\">Open the MSA Terminal.<\/li>\n\n\n\n<li class=\"\">Run the following <kbd>curl<\/kbd> command with the DRVA IP:<br><code>curl -k -o- -H \"Content-Type: application\/x-www-form-urlencoded\" -H \"x-jetdr-ms-session-id: JetStreamSessionId\" https:\/\/:32878\/drva\/system\/security<\/code><\/li>\n\n\n\n<li class=\"\">For RVM use the command:<br><code>curl -k -H \"x-jetdr-ms-session-id: cli-id\" https:\/\/:32878\/drva\/system\/security<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Apply the OTP<\/h2>\n\n\n\n<p class=\"\">After the OPT has been generated, retrieve and then apply it to access the DRVA console.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Locate the <kbd>errMessage<\/kbd> value in the response:\n<ul class=\"wp-block-list\">\n<li class=\"\">The value corresponding to <kbd>errMessage <\/kbd>is the OTP.<\/li>\n\n\n\n<li class=\"\">The following examples illustrate an OTP value of <strong>188182<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"450\" height=\"197\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/errMessage-1.png\" alt=\"\" class=\"wp-image-6675\" style=\"width:472px;height:auto\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/errMessage-1.png 450w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/errMessage-1-300x131.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/errMessage-1-50x22.png 50w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><figcaption class=\"wp-element-caption\">Example output from <em>Postman<\/em>.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"636\" height=\"187\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/curl_errMessage.png\" alt=\"\" class=\"wp-image-6678\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/curl_errMessage.png 636w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/curl_errMessage-300x88.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2025\/02\/curl_errMessage-50x15.png 50w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><figcaption class=\"wp-element-caption\">Example output from <em>curl<\/em>.<\/figcaption><\/figure>\n\n\n\n<p class=\"is-style-info wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\"><strong>Note<\/strong>: The login procedure for ROCVA is the same as for DRVA; simply replace the DRVA-IP with the ROCVA-IP and the DRVA path with the ROCVA path where applicable.<br><br>Example: <kbd>\/drva\/system\/securit<\/kbd> <strong>\u2192<\/strong> <kbd>\/rocva\/system\/securit<\/kbd><\/p>\n\n\n\n<p class=\"is-style-alert wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\"><strong>Important: <\/strong>The OTP is only valid for 30 seconds. Be sure to use it promptly or a new OTP will need to be generated.<\/p>\n\n\n\n<p class=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jetstream DR version 4.3.x utilizes two-factor authentication as an additional layer of security to access the DRVA console\/SSH. This guide provides steps to generate the one-time password (OTP) required after logging in with admin credentials. Access DRVA Console\/SSH Login with Admin Credentials Generate the OTP Method 1: Using Postman or any REST API Client Example [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"ht-kb-category":[245],"ht-kb-tag":[206],"class_list":["post-6671","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-how-to","ht_kb_tag-drva-appliance"],"_links":{"self":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/6671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/comments?post=6671"}],"version-history":[{"count":6,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/6671\/revisions"}],"predecessor-version":[{"id":6683,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/6671\/revisions\/6683"}],"wp:attachment":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/media?parent=6671"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-category?post=6671"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-tag?post=6671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}