Skip to content

Commit

Permalink
Update powershell to use $env:USERPROFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed May 29, 2024
1 parent 6a1a0ed commit 5dc17c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/guide/access/ssh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The following command will generate a private and public SSH key pair:
.. code-tab:: pwsh Windows (PowerShell)

ssh-keygen `
-f ~/.ssh/id_rsa_remarkable `
-f $env:USERPROFILE/.ssh/id_rsa_remarkable `
-N ''

:raw-html:`<div class="warning">⚠️ The generated SSH key will not have a password. ⚠️`
Expand All @@ -196,7 +196,7 @@ This is a minor security concern, as anybody who can access the file will be abl

.. code-tab:: pwsh Windows (PowerShell)

ssh-keygen -f ~/.ssh/id_rsa_remarkable
ssh-keygen -f $env:USERPROFILE/.ssh/id_rsa_remarkable

:raw-html:`</div>`

Expand Down Expand Up @@ -237,7 +237,7 @@ The following command will install your SSH public key on your device:

ssh root@10.11.99.1 `
mkdir -p -m 700 /home/root/.ssh
type ~/.ssh/id_rsa_remarkable.pub `
type $env:USERPROFILE/.ssh/id_rsa_remarkable.pub `
| ssh root@10.11.99.1 `
tee -a /home/root/.ssh/authorized_keys
ssh root@10.11.99.1 `
Expand Down Expand Up @@ -306,7 +306,7 @@ Due to a bug in ssh-copy-id this installs to the wrong location on the device on

ssh root@10.11.99.1 `
mkdir -p -m 700 /home/root/.ssh
type ~/.ssh/id_rsa_remarkable.pub `
type $env:USERPROFILE/.ssh/id_rsa_remarkable.pub `
| ssh root@10.11.99.1 `
tee -a /home/root/.ssh/authorized_keys
ssh root@10.11.99.1 `
Expand Down

0 comments on commit 5dc17c0

Please sign in to comment.