-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,12 @@ image: matrix.jpg | |
categories: | ||
- Coding | ||
tags: | ||
- ssh | ||
- SSH | ||
--- | ||
|
||
## ssh key | ||
## SSH key | ||
|
||
Create ssh key | ||
Create SSH key | ||
|
||
```bash {linenos=false} | ||
ssh-keygen -t ed25519 -C "[email protected]" | ||
|
@@ -24,15 +24,15 @@ Copy public key to remote server | |
ssh-copy-id | ||
``` | ||
|
||
## ssh agent | ||
## SSH agent | ||
|
||
Use ssh-agent in remote server | ||
Use SSH-agent in remote server | ||
|
||
```bash {linenos=false} | ||
exec ssh-agent bash | ||
``` | ||
|
||
Start ssh agent | ||
Start SSH agent | ||
|
||
```bash {linenos=false} | ||
eval $(ssh-agent -s) | ||
|
@@ -56,9 +56,9 @@ Enable agent forwarding in the remote ssh server config | |
vi /etc/ssh/sshd_config | ||
``` | ||
|
||
## ssh server | ||
## SSH server | ||
|
||
Start and stop ssh server | ||
Start and stop SSH server | ||
|
||
```bash {linenos=false} | ||
systemctl status sshd | ||
|