Better space

main
sudo pacman -Syu 2021-08-14 21:46:20 +07:00 committed by GitHub
parent 44a3d716bd
commit 9cfdfa693e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -9,10 +9,10 @@ Edit `~/.ssh/config`:
```txt
Host myserver
Hostname server-address
User user
Port port
IdentityFile /path/to/private/key
Hostname server-address
User user
Port port
IdentityFile /path/to/private/key
```
Connect:
@ -56,10 +56,18 @@ ssh-add ~/.ssh/id_ed25519
Copying public key to server:
Linux:
```sh
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
Confirm key has been added: