瀏覽代碼

Add a guide to configure SSH server

DricomDragon 5 年之前
父節點
當前提交
7e74c933d1
共有 1 個文件被更改,包括 27 次插入0 次删除
  1. 27 0
      Guides/ssh.md

+ 27 - 0
Guides/ssh.md

@@ -0,0 +1,27 @@
+# SSH
+
+## Install server
+
+```sh
+sudo apt install openssh-server
+```
+
+## Config server
+
+```sh
+sudoedit /etc/ssh/sshd_config
+```
+
+## Auto start ssh
+
+```sh
+sudo systemctl enable ssh
+sudo systemctl start ssh
+sudo service ssh restart
+```
+
+## Add key
+
+```sh
+ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.10
+```