Standardized SSH commands

This commit is contained in:
Sun Knudsen 2022-02-16 15:59:08 -05:00
parent 35ea7a7b16
commit 2138d9d5a8
No known key found for this signature in database
GPG Key ID: 02C43AD072D57783
7 changed files with 18 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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