From 5dc17c00fb503be46bcaf40bdfedd900f42dc965 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Tue, 28 May 2024 18:51:08 -0600 Subject: [PATCH] Update powershell to use $env:USERPROFILE --- src/guide/access/ssh.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/guide/access/ssh.rst b/src/guide/access/ssh.rst index e4ca002..54f59e9 100644 --- a/src/guide/access/ssh.rst +++ b/src/guide/access/ssh.rst @@ -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:`
⚠️ The generated SSH key will not have a password. ⚠️` @@ -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:`
` @@ -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 ` @@ -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 `