Skip to content

Commit

Permalink
Updated website
Browse files Browse the repository at this point in the history
  • Loading branch information
borjasotomayor committed Oct 2, 2024
1 parent 22abb0e commit cefea3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions _sources/environment/ssh.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,20 +301,22 @@ differ depending on whether you are using a Mac or Windows computer.

You will be prompted for your password. Enter your CNetID password.

- **Windows**: Run the following commands:
- **Windows**: Run the following commands from the Window's **Powershell** command-line prompt:

::
$publicKeyPath = "$env:USERPROFILE\.ssh\id_ed25519.pub"
$remoteCommand = "{
mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys
}"
Get-Content $publicKeyPath | ssh {cnetId}@{linuxServer} $remoteCommand
Get-Content $publicKeyPath | ssh <CNETID>@<servername> $remoteCommand
Replace ``<CNETID>`` with your CNetID, and ``<servername>`` with the name of the
server you want to connect to, such as ``linux1.cs.uchicago.edu`` or
``cs141-4.cs.uchicago.edu``.

Please note that the curly braces (``{`` and ``}``) in the second command need to be on their own lines.

You will be prompted for your password. Enter your CNetID password.

**Step 5**: Test your connection. Run the following command:
Expand Down
5 changes: 3 additions & 2 deletions environment/ssh.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,17 +393,18 @@ <h3>Linux<a class="headerlink" href="#linux" title="Link to this heading"></a
such as <code class="docutils literal notranslate"><span class="pre">linux1.cs.uchicago.edu</span></code> or <code class="docutils literal notranslate"><span class="pre">cs141-4.cs.uchicago.edu</span></code>.</p>
<p>You will be prompted for your password. Enter your CNetID password.</p>
</li>
<li><p><strong>Windows</strong>: Run the following commands:</p>
<li><p><strong>Windows</strong>: Run the following commands from the Window’s <strong>Powershell</strong> command-line prompt:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$publicKeyPath = &quot;$env:USERPROFILE\.ssh\id_ed25519.pub&quot;
$remoteCommand = &quot;{
mkdir -p ~/.ssh &amp;&amp; cat &gt;&gt; ~/.ssh/authorized_keys
}&quot;
Get-Content $publicKeyPath | ssh {cnetId}@{linuxServer} $remoteCommand
Get-Content $publicKeyPath | ssh &lt;CNETID&gt;@&lt;servername&gt; $remoteCommand
</pre></div>
</div>
<p>Replace <code class="docutils literal notranslate"><span class="pre">&lt;CNETID&gt;</span></code> with your CNetID, and <code class="docutils literal notranslate"><span class="pre">&lt;servername&gt;</span></code> with the name of the
server you want to connect to, such as <code class="docutils literal notranslate"><span class="pre">linux1.cs.uchicago.edu</span></code> or
<code class="docutils literal notranslate"><span class="pre">cs141-4.cs.uchicago.edu</span></code>.</p>
<p>Please note that the curly braces (<code class="docutils literal notranslate"><span class="pre">{</span></code> and <code class="docutils literal notranslate"><span class="pre">}</span></code>) in the second command need to be on their own lines.</p>
<p>You will be prompted for your password. Enter your CNetID password.</p>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit cefea3f

Please sign in to comment.