Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update powershell to use $env:USERPROFILE #68

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading