... | @@ -28,7 +28,7 @@ The snowflake-01 site requires WireGuard authentication before the SSH port. To |
... | @@ -28,7 +28,7 @@ The snowflake-01 site requires WireGuard authentication before the SSH port. To |
|
client# apt install wireguard
|
|
client# apt install wireguard
|
|
client# cd /etc/wireguard
|
|
client# cd /etc/wireguard
|
|
client# (umask 077 && wg genkey > wgsf01.privatekey)
|
|
client# (umask 077 && wg genkey > wgsf01.privatekey)
|
|
client# wg pubkey < wgsf02.privatekey > wgsf01.publickey
|
|
client# wg pubkey < wgsf01.privatekey > wgsf01.publickey
|
|
client# (umask 077 && vi wgsf01.conf)
|
|
client# (umask 077 && vi wgsf01.conf)
|
|
[Interface]
|
|
[Interface]
|
|
PrivateKey = <contents of wgsf01.privatekey file>
|
|
PrivateKey = <contents of wgsf01.privatekey file>
|
... | @@ -69,8 +69,8 @@ On the client, you can set up an SSH `Host` alias for convenience, so that you c |
... | @@ -69,8 +69,8 @@ On the client, you can set up an SSH `Host` alias for convenience, so that you c |
|
```
|
|
```
|
|
client# ssh-keygen -f ~/.ssh/snowflake-01
|
|
client# ssh-keygen -f ~/.ssh/snowflake-01
|
|
client# vi ~/.ssh/config
|
|
client# vi ~/.ssh/config
|
|
Host snowflake-02
|
|
Host snowflake-01
|
|
HostName 192.168.47.
|
|
HostName 192.168.47.1
|
|
User username
|
|
User username
|
|
IdentityFile ~/.ssh/snowflake-01
|
|
IdentityFile ~/.ssh/snowflake-01
|
|
```
|
|
```
|
... | | ... | |