blob: 9b2c25d46bc8503114b7d5f0a03f613032f47089 [file]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; style-src {{cspSource}} 'self' 'unsafe-inline'; img-src {{cspSource}}; script-src {{cspSource}}"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{cssUri}}" />
<title>SSH connection guide</title>
</head>
<body>
<div class="guidePageContainer">
<div class="guidePage" role="document">
<div class="title">
<h1>SSH connection guide</h1>
</div>
<div class="content">
<div class="subtitle">
<h2>Before you begin</h2>
</div>
<div class="list-steps">
<ul>
<li> Locate the path to the private ssh key file for this compute instance. The private ssh key file will have either:
<ul class="inner-list">
<li>Been generated when you launched the instance and you will have been prompted to download it</li>
<li>Or, you uploaded a public ssh key, from a public/private key paid, and you will now need the private key that matches that public key</li>
</ul>
</li>
</ul>
</div>
<div class="subtitle">
<h2>Connecting to Your Linux Instance Using SSH</h2>
</div>
<p>Add the path to the instance of the private ssh key to your ssh config file:
<span class="path">{{sshConfigLocation}}</span>:</p>
<p>Paste the following entry into your <a id="openSSHConfig" href="#" title="Open SSH Config File">ssh config</a>, with the paths to the private ssh key included:</p>
<div class="codeContainer">
<pre>Host {{publicIp}} instance<br />&nbsp;&nbsp;IdentityFile {{dummyKeyPathLocation}}</pre>
</div>
<p>In order to avoid <span class="propertyValue">Permissions ... are too open</span> error, key file permissions needs to be changed. Run:
<div class="codeContainer">
<pre>chmod 400 {{dummyKeyPathLocation}}</pre>
</div>
<p>This command sets the permissions so that only the owner of the file can read it.</p>
<div class="subtitle">
<p>References:
<a href="https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/accessinginstance.htm" title="Connecting to an Compute Instance">Connecting to an Compute Instance</a>
</p>
</div>
</div>
<div class="footer">
<p class="guideControl">
<input type="checkbox" id="showGuide" class="checkbox" {{showGuide}} />
<label for="showGuide" class="checkboxLabel">Hide this page when connecting to this compute instance in the future.</label>
</p>
</div>
<script src="{{javascriptUri}}"></script>
</div>
</div>
</body>
</html>