Skip to content

Commit

Permalink
update ssh article
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mirz committed May 19, 2024
1 parent a25a01c commit c0efbfa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/post/ssh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "example@example.com"
Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit c0efbfa

Please sign in to comment.