File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
# ** Bash Toolkit** | _ Your Swiss Army Knife for the Command Line_
2
2
[ ![ open-source] ( https://forthebadge.com/images/badges/open-source.svg )] ( https://cyberthreatdefence.com/ )
3
3
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
+ ```
4
14
5
15
## Generate ssh-key
6
16
``` bash
@@ -22,4 +32,10 @@ copy fingerprint and paste into:
22
32
``` bash
23
33
vim /home/user_remote/.ssh/authorized_keys
24
34
```
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
+
25
41
and than you will connect via ssh without password but if you entered passphrase, system will ask you this.
You can’t perform that action at this time.
0 commit comments