Skip to content

Commit 6047357

Browse files
Update README.md
++ added Install ssh server ++ added copy and install the public key using ssh-copy-id command
1 parent 8deea18 commit 6047357

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# **Bash Toolkit** | _Your Swiss Army Knife for the Command Line_
22
[![open-source](https://forthebadge.com/images/badges/open-source.svg)](https://cyberthreatdefence.com/)
33

4+
## Install SSH server
5+
6+
```bash
7+
sudo apt-get install openssh-server \
8+
&& sudo systemctl enable ssh --now
9+
```
10+
### Verify that ssh service running
11+
```bash
12+
sudo systemctl status ssh
13+
```
414

515
## Generate ssh-key
616
```bash
@@ -22,4 +32,10 @@ copy fingerprint and paste into:
2232
```bash
2333
vim /home/user_remote/.ssh/authorized_keys
2434
```
35+
or copy and install the public key using `ssh-copy-id` command in Linux
36+
37+
```bash
38+
ssh-copy-id user_remote@user_remote_ip
39+
```
40+
2541
and than you will connect via ssh without password but if you entered passphrase, system will ask you this.

0 commit comments

Comments
 (0)