main
Tran Hau 2020-06-13 02:51:21 +07:00
parent 536cb338f8
commit 00d70d409c
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,56 @@
# [OpenSSH](https://www.openssh.com/)
| Distribution | Package |
| ------------ | --------- |
| Arch Linux | `openssh` |
| Ubuntu | `openssh` |
| Homebrew | `openssh` |
Edit `~/.ssh/config`:
```txt
Host myserver
Hostname server-address
User user
Port port
IdentityFile /path/to/private/key
```
Connect:
```sh
ssh -p port user@server-address
ssh myserver
```
## SSH key
Generate key:
```sh
ssh-keygen -t rsa -b 4096 -C "your@email.com"
```
Start:
```sh
eval "$(ssh-agent -s)"
```
Add key:
```sh
ssh-add ~/.ssh/id_rsa
```
Confirm key has been added:
```sh
ssh-add -l
```
Copying public key to server:
```sh
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server-address
```

View File

@ -24,6 +24,7 @@
- [HTTPie](Applications/Network/HTTPie.md)
- [Mosh](Applications/Network/Mosh.md)
- [Ncat](Applications/Network/Ncat.md)
- [OpenSSH](Applications/Network/OpenSSH.md)
- [OpenVPN](Applications/Network/OpenVPN.md)
- [sshuttle](Applications/Network/sshuttle.md)
- [System](Applications/System/README.md)