From 2138d9d5a893cab5655d876ba6a3902302bf12c8 Mon Sep 17 00:00:00 2001 From: Sun Knudsen Date: Wed, 16 Feb 2022 15:59:08 -0500 Subject: [PATCH] Standardized SSH commands --- how-to-configure-hardened-debian-server/README.md | 6 +++--- how-to-configure-hardened-raspberry-pi/README.md | 4 ++-- .../README.md | 10 +++++----- how-to-create-encrypted-paper-backup/README.md | 2 +- how-to-self-host-hardened-borg-server/README.md | 4 ++-- how-to-self-host-hardened-jitsi-server/README.md | 4 ++-- .../README.md | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/how-to-configure-hardened-debian-server/README.md b/how-to-configure-hardened-debian-server/README.md index d26d97a..c7c4d00 100644 --- a/how-to-configure-hardened-debian-server/README.md +++ b/how-to-configure-hardened-debian-server/README.md @@ -70,7 +70,7 @@ Replace `185.112.147.115` with IP of server. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-computer). ```shell -ssh root@185.112.147.115 -i ~/.ssh/server +ssh -i ~/.ssh/server root@185.112.147.115 ``` ### Step 3: disable root Bash history @@ -139,7 +139,7 @@ Replace `185.112.147.115` with IP of server. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-computer). ```shell -ssh server-admin@185.112.147.115 -i ~/.ssh/server +ssh -i ~/.ssh/server server-admin@185.112.147.115 ``` ### Step 9: disable server-admin Bash history @@ -264,7 +264,7 @@ Replace `185.112.147.115` with IP of server. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-computer). ```shell -ssh server-admin@185.112.147.115 -i ~/.ssh/server +ssh -i ~/.ssh/server server-admin@185.112.147.115 ``` #### Switch to root diff --git a/how-to-configure-hardened-raspberry-pi/README.md b/how-to-configure-hardened-raspberry-pi/README.md index b89b468..24f44f7 100644 --- a/how-to-configure-hardened-raspberry-pi/README.md +++ b/how-to-configure-hardened-raspberry-pi/README.md @@ -208,7 +208,7 @@ Replace `10.0.1.181` with IP of Raspberry Pi. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-macos). ```shell -ssh pi@10.0.1.181 -i ~/.ssh/pi +ssh -i ~/.ssh/pi pi@10.0.1.181 ``` ### Step 14: switch to root @@ -352,7 +352,7 @@ $ exit Replace `10.0.1.181` with IP of Raspberry Pi. ```shell -ssh pi@10.0.1.181 -i ~/.ssh/pi +ssh -i ~/.ssh/pi pi@10.0.1.181 ``` ### Step 23: switch to root diff --git a/how-to-configure-strongswan-client-on-headless-debian-based-linux-computer/README.md b/how-to-configure-strongswan-client-on-headless-debian-based-linux-computer/README.md index 2eafee2..e6983ba 100644 --- a/how-to-configure-strongswan-client-on-headless-debian-based-linux-computer/README.md +++ b/how-to-configure-strongswan-client-on-headless-debian-based-linux-computer/README.md @@ -95,10 +95,10 @@ Getting CA Private Key ### Step 2: log in to client computer -Replace `pi@10.0.1.248` with SSH destination of client computer and `~/.ssh/pi` with path to associated private key. +Replace `~/.ssh/pi` with path to private key and `pi@10.0.1.248` with SSH destination of client computer. ```shell -ssh pi@10.0.1.248 -i ~/.ssh/pi +ssh -i ~/.ssh/pi pi@10.0.1.248 ``` ### Step 3: switch to root @@ -407,7 +407,7 @@ curl https://checkip.amazonaws.com Replace `185.193.126.203` with IP of strongSwan server. ```shell -ssh vpn-server-admin@185.193.126.203 -i ~/.ssh/vpn-server +ssh -i ~/.ssh/vpn-server vpn-server-admin@185.193.126.203 ``` ### Step 13: switch to root @@ -446,10 +446,10 @@ systemctl restart dnsmasq ### Step 16: log in to client computer -Replace `pi@10.0.1.248` with SSH destination of client computer and `~/.ssh/pi` with path to associated private key. +Replace `~/.ssh/pi` with path to private key and `pi@10.0.1.248` with SSH destination of client computer. ```shell -ssh pi@10.0.1.248 -i ~/.ssh/pi +ssh -i ~/.ssh/pi pi@10.0.1.248 ``` ### Step 17: switch to root diff --git a/how-to-create-encrypted-paper-backup/README.md b/how-to-create-encrypted-paper-backup/README.md index f988aef..9d3aa81 100644 --- a/how-to-create-encrypted-paper-backup/README.md +++ b/how-to-create-encrypted-paper-backup/README.md @@ -32,7 +32,7 @@ Listed: true Replace `10.0.1.181` with IP of Raspberry Pi. ```shell -ssh pi@10.0.1.181 -i ~/.ssh/pi +ssh -i ~/.ssh/pi pi@10.0.1.181 ``` ### Step 2: configure console font diff --git a/how-to-self-host-hardened-borg-server/README.md b/how-to-self-host-hardened-borg-server/README.md index 22fd1e5..e24823d 100644 --- a/how-to-self-host-hardened-borg-server/README.md +++ b/how-to-self-host-hardened-borg-server/README.md @@ -115,10 +115,10 @@ EOF ### Step 4: log in to server or Raspberry Pi -Replace `server-admin@185.112.147.115` with server SSH URL and `~/.ssh/server` with path to associated private key. +Replace `~/.ssh/server` with path to private key and `server-admin@185.112.147.115` with server or Raspberry Pi SSH destination. ```shell -ssh server-admin@185.112.147.115 -i ~/.ssh/server +ssh -i ~/.ssh/server server-admin@185.112.147.115 ``` ### Step 5: switch to root diff --git a/how-to-self-host-hardened-jitsi-server/README.md b/how-to-self-host-hardened-jitsi-server/README.md index 4a62775..23dfbc5 100644 --- a/how-to-self-host-hardened-jitsi-server/README.md +++ b/how-to-self-host-hardened-jitsi-server/README.md @@ -28,10 +28,10 @@ Create “A” record (example: meet.sunknudsen.com) that points to IP of server ### Step 2: log in to server -Replace `server-admin@185.193.126.203` with server SSH URL and `~/.ssh/server` with path to associated private key. +Replace `~/.ssh/server` with path to private key and `server-admin@185.193.126.203` with server SSH destination. ```shell -ssh server-admin@185.193.126.203 -i ~/.ssh/server +ssh -i ~/.ssh/server server-admin@185.193.126.203 ``` ### Step 3: switch to root diff --git a/how-to-self-host-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md b/how-to-self-host-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md index 695ece4..9718a17 100644 --- a/how-to-self-host-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md +++ b/how-to-self-host-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos/README.md @@ -75,7 +75,7 @@ Replace `185.193.126.203` with IP of server. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-mac). ```shell -ssh root@185.193.126.203 -i ~/.ssh/vpn-server +ssh -i ~/.ssh/vpn-server root@185.193.126.203 ``` ### Step 3: disable root bash history @@ -140,7 +140,7 @@ Replace `185.193.126.203` with IP of server. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-mac). ```shell -ssh vpn-server-admin@185.193.126.203 -i ~/.ssh/vpn-server +ssh -i ~/.ssh/vpn-server vpn-server-admin@185.193.126.203 ``` ### Step 9: disable vpn-server-admin bash history @@ -353,7 +353,7 @@ Replace `185.193.126.203` with IP of server. When asked for passphrase, enter passphrase from [step 1](#step-1-create-ssh-key-pair-on-mac). ```shell -ssh vpn-server-admin@185.193.126.203 -i ~/.ssh/vpn-server +ssh -i ~/.ssh/vpn-server vpn-server-admin@185.193.126.203 ``` #### Switch to root