chore: improved quickstart
This commit is contained in:
parent
53482f8e65
commit
6662e9a377
1 changed files with 14 additions and 2 deletions
|
|
@ -47,14 +47,26 @@ bin/railiance gen-ssh-key
|
||||||
|
|
||||||
### Upload your SSH public key to your cloud provider or VM host
|
### Upload your SSH public key to your cloud provider or VM host
|
||||||
|
|
||||||
Once your key pair is generated (`~/.ssh/id_ed25519.pub`), copy the public key to the VM.
|
Once your key pair is generated (`~/.ssh/id_<KEY>.pub`), copy the public key to the VM.
|
||||||
Replace `<IP>` with your server’s public IP and `<USER>` with the default login user (commonly `ubuntu` or `root`).
|
Replace `<IP>` with your server’s public IP and `<USER>` with the default login user (commonly `ubuntu` or `root`).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
scp ~/.ssh/id_ed25519.pub <USER>@<IP>:/home/<USER>/authorized_keys.tmp
|
scp ~/.ssh/id_<KEY>.pub <USER>@<IP>:/home/<USER>/authorized_keys.tmp
|
||||||
ssh <USER>@<IP> "mkdir -p ~/.ssh && cat ~/authorized_keys.tmp >> ~/.ssh/authorized_keys && rm ~/authorized_keys.tmp && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"
|
ssh <USER>@<IP> "mkdir -p ~/.ssh && cat ~/authorized_keys.tmp >> ~/.ssh/authorized_keys && rm ~/authorized_keys.tmp && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This will:
|
||||||
|
|
||||||
|
- copy your public key to the host,
|
||||||
|
- append it to ~/.ssh/authorized_keys,
|
||||||
|
- set correct permissions.
|
||||||
|
|
||||||
|
After this, you should be able to log in without a password:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh <USER>@<IP>
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 3. Create your inventory
|
## 3. Create your inventory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue