Better space
parent
44a3d716bd
commit
9cfdfa693e
|
@ -9,10 +9,10 @@ Edit `~/.ssh/config`:
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
Host myserver
|
Host myserver
|
||||||
Hostname server-address
|
Hostname server-address
|
||||||
User user
|
User user
|
||||||
Port port
|
Port port
|
||||||
IdentityFile /path/to/private/key
|
IdentityFile /path/to/private/key
|
||||||
```
|
```
|
||||||
|
|
||||||
Connect:
|
Connect:
|
||||||
|
@ -56,10 +56,18 @@ ssh-add ~/.ssh/id_ed25519
|
||||||
|
|
||||||
Copying public key to server:
|
Copying public key to server:
|
||||||
|
|
||||||
|
Linux:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@server-address
|
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@server-address
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cat ~/.ssh/id_ed25519.pub | ssh user@server-address "cat >> ~/.ssh/authorized_keys"
|
||||||
|
```
|
||||||
|
|
||||||
#### ssh-add
|
#### ssh-add
|
||||||
|
|
||||||
Confirm key has been added:
|
Confirm key has been added:
|
||||||
|
|
Loading…
Reference in New Issue