{"id":23926,"date":"2025-10-20T10:39:26","date_gmt":"2025-10-20T07:09:26","guid":{"rendered":"https:\/\/orderhost.net\/blog\/?p=23926"},"modified":"2025-10-20T10:39:26","modified_gmt":"2025-10-20T07:09:26","slug":"ubuntu-ssh-login-email-alert","status":"publish","type":"post","link":"https:\/\/orderhost.net\/blog\/ubuntu-ssh-login-email-alert\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0641\u0639\u0627\u0644\u200c \u0633\u0627\u0632\u06cc \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f \u0628\u0647 SSH \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 (Ubuntu) \u0628\u0627 \u0627\u0631\u0633\u0627\u0644 \u0627\u06cc\u0645\u06cc\u0644 \u0644\u062d\u0638\u0647\u200c\u0627\u06cc"},"content":{"rendered":"<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u0635\u0627\u062d\u0628 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0646\u0633\u062e\u0647 <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">\u0627\u0628\u0648\u0646\u062a\u0648<\/a> \u0647\u0633\u062a\u06cc\u062f\u060c \u0645\u0637\u0645\u0626\u0646\u0627\u064b \u0645\u06cc\u200c\u062f\u0627\u0646\u06cc\u062f \u06a9\u0647 <strong>\u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0648\u0631\u0648\u062f \u0627\u0641\u0631\u0627\u062f \u0628\u0647 \u0633\u0631\u0648\u0631 \u0627\u0632 \u0637\u0631\u06cc\u0642 SSH<\/strong> \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645 \u062a\u0631\u06cc\u0646 \u06a9\u0627\u0631\u0647\u0627 \u0628\u0631\u0627\u06cc \u062d\u0641\u0638 \u0627\u0645\u0646\u06cc\u062a \u0627\u0633\u062a. \u062d\u062a\u06cc \u0627\u06af\u0631 \u062a\u0646\u0647\u0627 \u0634\u0645\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u06cc\u062f\u060c \u0647\u0645\u06cc\u0634\u0647 \u062e\u0648\u0628 \u0627\u0633\u062a \u0628\u062f\u0627\u0646\u06cc\u062f \u0686\u0647 \u0632\u0645\u0627\u0646\u06cc \u0648 \u0627\u0632 \u06a9\u062c\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0648\u0627\u0631\u062f \u0645\u06cc\u200c\u0634\u0648\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u0631\u0627\u06cc \u062a\u06cc\u0645\u200c\u0647\u0627 \u0648 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u0635\u0644\u06cc \u0627\u0647\u0645\u06cc\u062a \u062f\u0648\u0686\u0646\u062f\u0627\u0646 \u062f\u0627\u0631\u062f\u060c \u0632\u06cc\u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0647 <strong>\u067e\u06cc\u0634\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0648\u0631\u0648\u062f \u063a\u06cc\u0631\u0645\u062c\u0627\u0632<\/strong> \u0648 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0641\u0639\u0627\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0645\u0634\u06a9\u0648\u06a9 \u06a9\u0645\u06a9 \u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0628\u0647 \u0634\u0645\u0627 \u06cc\u06a9 \u0631\u0648\u0634 <strong>\u0633\u0627\u062f\u0647\u060c \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0648 \u0644\u062d\u0638\u0647\u200c\u0627\u06cc<\/strong> \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0622\u0645\u0648\u0632\u0634 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645. \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0627\u0632 <strong>PAM (Pluggable Authentication Module)<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0627\u0639\u0644\u0627\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0627\u06cc\u0645\u06cc\u0644 \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0646\u06a9\u0627\u062a \u0627\u0645\u0646\u06cc\u062a\u06cc \u062a\u06a9\u0645\u06cc\u0644\u06cc \u0648 \u0631\u0648\u0634 \u0627\u06cc\u062c\u0627\u062f App Password \u062f\u0631 Gmail \u0646\u06cc\u0632 \u0634\u0631\u062d \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p><div class=\"order-2\" id=\"order-41262652\"><style>\r\n\/* \ud83c\udfa8 \u0627\u0633\u062a\u0627\u06cc\u0644 \u06a9\u0644\u06cc \u0628\u0646\u0631 \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner {\r\n  width: 100%;\r\n  max-width: 660px;\r\n  margin: 20px auto;\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  direction: rtl;\r\n  font-family: 'IRANSans', sans-serif;\r\n  border-radius: 10px;\r\n  overflow: hidden;\r\n  box-shadow: 0 3px 10px rgba(0,0,0,0.1);\r\n  background: #f9f9f9;\r\n}\r\n\r\n\/* \ud83d\udd38 \u0628\u062e\u0634 \u0631\u0627\u0633\u062a (\u062a\u0635\u0648\u06cc\u0631 \u0628\u0631\u0646\u062f \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647) *\/\r\n.orderhost-banner .right {\r\n  flex: 1 1 30%;\r\n  position: relative;\r\n  overflow: hidden;\r\n  background: linear-gradient(135deg, var(--brand-color1, #ff9800), var(--brand-color2, #f57c00));\r\n}\r\n\r\n.orderhost-banner .right img {\r\n  width: 100%;\r\n  height: 100%;\r\n  object-fit: cover; \/* \ud83d\udcf8 \u067e\u0631 \u06a9\u0631\u062f\u0646 \u06a9\u0627\u0645\u0644 \u0628\u062f\u0648\u0646 \u06a9\u0634\u06cc\u062f\u06af\u06cc *\/\r\n  object-position: center;\r\n  display: block;\r\n}\r\n\r\n\/* \ud83d\udd39 \u0628\u062e\u0634 \u0686\u067e (\u0645\u062a\u0646 \u062a\u0628\u0644\u06cc\u063a) *\/\r\n.orderhost-banner .left {\r\n  flex: 1 1 70%;\r\n  background: #351158;\r\n  padding: 10px 20px;\r\n  box-sizing: border-box;\r\n}\r\n\r\n\/* \ud83d\udcdd \u0639\u0646\u0648\u0627\u0646 \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner h3 {\r\n  color: #fff;\r\n  font-size: 16px;\r\n  font-weight: bold;\r\n  margin: 0 0 5px 0;\r\n}\r\n\r\n\/* \ud83d\udcc4 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062a\u0628\u0644\u06cc\u063a *\/\r\n.orderhost-banner p {\r\n  color: #fff;\r\n  font-size: 14px;\r\n  margin: 0 0 10px 0;\r\n  line-height: 1.6;\r\n}\r\n\r\n\/* \ud83d\udd18 \u062f\u06a9\u0645\u0647 CTA *\/\r\n.orderhost-banner a.button {\r\n  display: inline-block;\r\n  background: #fff;\r\n  color: #351158;\r\n  text-decoration: none;\r\n  padding: 7px 16px;\r\n  border-radius: 6px;\r\n  font-size: 14px;\r\n  font-weight: bold;\r\n  transition: 0.3s;\r\n}\r\n.orderhost-banner a.button:hover {\r\n  background: #351158;\r\n  color: #fff;\r\n  border: 1px solid #fff;\r\n}\r\n\r\n\/* \ud83c\udf81 \u0628\u0627\u06a9\u0633 \u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 *\/\r\n.orderhost-banner .discount-box {\r\n  background: rgba(255,255,255,0.2);\r\n  border: 1px dashed #fff;\r\n  border-radius: 5px;\r\n  padding: 5px 10px;\r\n  display: inline-block;\r\n  font-weight: bold;\r\n  color: #fff;\r\n  margin-top: 10px;\r\n  cursor: pointer;\r\n  user-select: none;\r\n  transition: 0.3s;\r\n}\r\n.orderhost-banner .discount-box:hover {\r\n  background: rgba(255,255,255,0.3);\r\n}\r\n\r\n\/* \ud83d\udd14 \u067e\u06cc\u0627\u0645 \u06a9\u067e\u06cc \u0645\u0648\u0641\u0642 *\/\r\n.copy-toast {\r\n  display: none;\r\n  margin: 12px auto 0 auto;\r\n  background: #22bb33;\r\n  color: #fff;\r\n  padding: 10px 16px;\r\n  border-radius: 8px;\r\n  font-size: 14px;\r\n  box-shadow: 0 3px 10px rgba(0,0,0,0.15);\r\n  width: fit-content;\r\n  max-width: 90%;\r\n  text-align: center;\r\n  opacity: 0;\r\n  transform: translateY(6px);\r\n  transition: opacity 0.25s ease, transform 0.25s ease;\r\n}\r\n.copy-toast.show {\r\n  display: inline-block;\r\n  opacity: 1;\r\n  transform: translateY(0);\r\n}\r\n\r\n\/* \ud83d\udcf1 \u062d\u0627\u0644\u062a \u0645\u0648\u0628\u0627\u06cc\u0644 *\/\r\n@media (max-width: 600px) {\r\n  .orderhost-banner {\r\n    flex-direction: column;\r\n    text-align: center;\r\n  }\r\n  .orderhost-banner .right, \r\n  .orderhost-banner .left {\r\n    flex: 1 1 100%;\r\n    height: 200px;\r\n  }\r\n}\r\n<\/style>\r\n\r\n<!-- \ud83d\udce6 \u0628\u0646\u0631 \u062a\u0628\u0644\u06cc\u063a -->\r\n<div id=\"orderhost-banner-container\"><\/div>\r\n<div class=\"copy-toast\" id=\"copy-toast\">\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641 \u06a9\u067e\u06cc \u0634\u062f \u2705<\/div>\r\n\r\n<script>\r\nif (!window.orderhostBannerLoaded) {\r\n  window.orderhostBannerLoaded = true;\r\n\r\n  const adConfig = {\r\n    brandLogo: \"https:\/\/orderhost.net\/blog\/wp-content\/uploads\/2025\/11\/wp-ads.png\", \/\/ \ud83d\udcf8 \u0639\u06a9\u0633 \u06a9\u0627\u0645\u0644 \u0628\u062e\u0634 \u0631\u0627\u0633\u062a\r\n    title: \"\u0647\u0627\u0633\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0627\u06cc\u0631\u0627\u0646 \u0648 \u0622\u0644\u0645\u0627\u0646 - \u0633\u0631\u0639\u062a \u0648 \u0627\u0645\u0646\u06cc\u062a \u0628\u0627\u0644\u0627 \ud83d\ude80\",\r\n    description: \"\u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0648\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u062f\u06cc\u0633\u06a9 NVMe \u0648 \u06a9\u0646\u062a\u0631\u0644\u200c\u067e\u0646\u0644 \u0633\u06cc\u200c\u067e\u0646\u0644\u060c \u0645\u0646\u0627\u0633\u0628 \u0633\u0627\u06cc\u062a\u200c\u0647\u0627\u06cc \u067e\u0631\u062a\u0631\u0627\u0641\u06cc\u06a9 \u0648 \u0641\u0631\u0648\u0634\u06af\u0627\u0647\u06cc.\",\r\n    discountCode: \"WP50\",\r\n    link: \"https:\/\/orderhost.net\/wordpress-hosting\",\r\n    brandColor1: \"#ff9800\",\r\n    brandColor2: \"#f57c00\"\r\n  };\r\n\r\n  const container = document.getElementById(\"orderhost-banner-container\");\r\n  container.innerHTML = `\r\n    <div class=\"orderhost-banner\"\r\n      style=\"--brand-color1: ${adConfig.brandColor1}; --brand-color2: ${adConfig.brandColor2};\"\r\n    >\r\n      <div class=\"right\">\r\n        <img decoding=\"async\" src=\"${adConfig.brandLogo}\" alt=\"OrderHost Banner\">\r\n      <\/div>\r\n      <div class=\"left\">\r\n        <h3>${adConfig.title}<\/h3>\r\n        <p>${adConfig.description}<\/p>\r\n        <a href=\"${adConfig.link}\" class=\"button\" target=\"_blank\">\u0645\u0634\u0627\u0647\u062f\u0647 \u067e\u0644\u0646\u200c\u0647\u0627<\/a>\r\n        <div class=\"discount-box\" id=\"discount-box\">\u06a9\u062f \u062a\u062e\u0641\u06cc\u0641: ${adConfig.discountCode}<\/div>\r\n      <\/div>\r\n    <\/div>\r\n  `;\r\n\r\n  const discountBox = document.getElementById(\"discount-box\");\r\n  const toast = document.getElementById(\"copy-toast\");\r\n\r\n  discountBox.addEventListener(\"click\", () => {\r\n    navigator.clipboard.writeText(adConfig.discountCode).then(() => {\r\n      toast.classList.add(\"show\");\r\n      setTimeout(() => toast.classList.remove(\"show\"), 2000);\r\n    });\r\n  });\r\n}\r\n<\/script>\r\n<\/div>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u0645\u061f<\/h2>\n<p style=\"text-align: justify;\">SSH (Secure Shell) \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u0627\u06cc\u062c\u200c\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0627\u0633\u062a. \u0647\u0631 \u0648\u0631\u0648\u062f \u0645\u0648\u0641\u0642\u06cc\u062a\u200c\u0622\u0645\u06cc\u0632 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0631\u06cc\u0633\u06a9 \u0627\u0645\u0646\u06cc\u062a\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u062f\u060c \u0645\u062e\u0635\u0648\u0635\u0627\u064b \u0627\u06af\u0631 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0636\u0639\u06cc\u0641 \u0628\u0627\u0634\u062f \u06cc\u0627 \u0634\u062e\u0635\u06cc \u0628\u062f\u0648\u0646 \u0627\u062c\u0627\u0632\u0647 \u0648\u0627\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0634\u0648\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH \u0645\u0632\u0627\u06cc\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0627\u0631\u062f:<\/p>\n<ol style=\"text-align: justify;\">\n<li>\n<p><strong>\u0627\u0637\u0644\u0627\u0639 \u0633\u0631\u06cc\u0639 \u0627\u0632 \u0648\u0631\u0648\u062f\u0647\u0627:<\/strong> \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0628\u0631\u0631\u0633\u06cc \u0644\u0627\u06af\u200c\u0647\u0627\u060c \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u0645\u062a\u0648\u062c\u0647 \u0645\u06cc\u200c\u0634\u0648\u06cc\u062f \u0686\u0647 \u06a9\u0633\u06cc \u0648\u0627\u0631\u062f \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<\/li>\n<li>\n<p><strong>\u067e\u06cc\u0634\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062f\u0633\u062a\u0631\u0633\u06cc \u063a\u06cc\u0631\u0645\u062c\u0627\u0632:<\/strong> \u062f\u0631 \u0635\u0648\u0631\u062a \u0645\u0634\u0627\u0647\u062f\u0647 \u0648\u0631\u0648\u062f \u063a\u06cc\u0631\u0645\u0646\u062a\u0638\u0631\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0633\u0631\u06cc\u0639 \u0627\u0642\u062f\u0627\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>\u0627\u06cc\u062c\u0627\u062f \u0633\u0627\u0628\u0642\u0647 \u0648\u0631\u0648\u062f:<\/strong> \u0647\u0645\u0647 \u0648\u0631\u0648\u062f\u0647\u0627 \u062b\u0628\u062a \u0648 \u0642\u0627\u0628\u0644 \u067e\u06cc\u06af\u06cc\u0631\u06cc \u0647\u0633\u062a\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>\u0633\u0627\u0632\u06af\u0627\u0631\u06cc \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u062a\u06cc\u0645\u06cc:<\/strong> \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u062a\u0648\u0644\u06cc\u062f\u06cc \u06cc\u0627 \u062a\u06cc\u0645\u200c\u0647\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u060c \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f \u0628\u0647 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0622\u06af\u0627\u0647\u06cc \u0627\u0645\u0646\u06cc\u062a\u06cc \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u062f\u0627\u0645\u0647\u060c \u0645\u0631\u0627\u062d\u0644 \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0628\u0647\u200c\u0637\u0648\u0631 \u06a9\u0627\u0645\u0644 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0631\u062d\u0644\u0647 \u06f1: \u0646\u0635\u0628 \u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627 \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648<\/h2>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0627\u0639\u0644\u0627\u0646 \u0628\u0647 \u0627\u06cc\u0645\u06cc\u0644\u060c \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0632\u06cc\u0631 \u062f\u0627\u0631\u06cc\u0645:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p><strong>msmtp:<\/strong> \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0627\u06cc\u0645\u06cc\u0644 \u0627\u0632 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646<\/p>\n<\/li>\n<li>\n<p><strong>mailx (bsd-mailx):<\/strong> \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0627\u06cc\u0645\u06cc\u0644 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0633\u0627\u062f\u0647<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre><code class=\"language-bash\">sudo apt update\r\nsudo apt install msmtp msmtp-mta bsd-mailx\r\n<\/code><\/pre>\n<blockquote>\n<p>\u0646\u06a9\u062a\u0647: \u0627\u06af\u0631 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0641\u0639\u0627\u0644 \u062f\u0627\u0631\u062f\u060c \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u067e\u0648\u0631\u062a \u06f2\u06f5\u060c \u06f4\u06f6\u06f5 \u06cc\u0627 \u06f5\u06f8\u06f7 \u0628\u0627\u0632 \u0627\u0633\u062a (SMTP).<\/p>\n<\/blockquote>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0631\u062d\u0644\u0647 \u06f2: \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc PAM \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH<\/h2>\n<p style=\"text-align: justify;\">PAM \u0633\u06cc\u0633\u062a\u0645 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0627\u0633\u062a \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0647\u0646\u06af\u0627\u0645 \u0648\u0631\u0648\u062f SSH \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u06cc \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u062f.<\/p>\n<ol style=\"text-align: justify;\">\n<li>\n<p>\u0641\u0627\u06cc\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">sudo nano \/etc\/pam.d\/sshd\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"2\">\n<li>\n<p>\u067e\u0633 \u0627\u0632 \u062e\u0637\u0648\u0637 \u0645\u0648\u062c\u0648\u062f <code>session<\/code>\u060c \u0627\u06cc\u0646 \u062e\u0637 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">session optional pam_exec.so \/usr\/local\/bin\/ssh-login-notify.sh\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"3\">\n<li>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f.<\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0647\u0631 \u0628\u0627\u0631 \u06a9\u0647 \u0648\u0631\u0648\u062f SSH \u0645\u0648\u0641\u0642\u06cc\u062a\u200c\u0622\u0645\u06cc\u0632 \u0628\u0627\u0634\u062f\u060c \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0627\u062c\u0631\u0627 \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0631\u062d\u0644\u0647 \u06f3: \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Gmail \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0627\u06cc\u0645\u06cc\u0644<\/h2>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0627\u0639\u0644\u0627\u0646 \u0628\u0647 \u0627\u06cc\u0645\u06cc\u0644\u060c \u0627\u0632 \u0633\u0631\u0648\u06cc\u0633 Gmail \u0648 <strong>SMTP<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645.<\/p>\n<ol style=\"text-align: justify;\">\n<li>\n<p>\u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc msmtp \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">sudo nano \/etc\/msmtprc\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"2\">\n<li>\n<p>\u0645\u062d\u062a\u0648\u06cc\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f (\u0627\u06cc\u0645\u06cc\u0644 \u062e\u0648\u062f \u0631\u0627 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f):<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-text\"># \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0639\u0645\u0648\u0645\u06cc\r\ndefaults\r\nauth           on\r\ntls            on\r\ntls_trust_file \/etc\/ssl\/certs\/ca-certificates.crt\r\nlogfile        \/var\/log\/msmtp.log\r\n\r\n# \u062d\u0633\u0627\u0628 Gmail\r\naccount        gmail\r\nhost           smtp.gmail.com\r\nport           587\r\nfrom           YOUR_GMAIL_ADDRESS@gmail.com\r\nuser           YOUR_GMAIL_ADDRESS@gmail.com\r\npasswordeval   \"cat \/root\/.gmail_app_password\"\r\n\r\n# \u062d\u0633\u0627\u0628 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\r\naccount default : gmail\r\n<\/code><\/pre>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0631\u062d\u0644\u0647 \u06f4: \u0627\u06cc\u062c\u0627\u062f App Password \u062f\u0631 Gmail<\/h2>\n<p style=\"text-align: justify;\">\u0627\u0632 \u0622\u0646\u062c\u0627 \u06a9\u0647 Google \u0627\u062c\u0627\u0632\u0647 \u0648\u0631\u0648\u062f \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627 \u0628\u0627 \u0631\u0645\u0632 \u0627\u0635\u0644\u06cc \u0631\u0627 \u0646\u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 <strong>App Password \u06f1\u06f6 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u06cc<\/strong> \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<h3 style=\"text-align: justify;\">\u0645\u0631\u0627\u062d\u0644 \u0627\u06cc\u062c\u0627\u062f App Password:<\/h3>\n<ol style=\"text-align: justify;\">\n<li>\n<p>\u0648\u0627\u0631\u062f \u062d\u0633\u0627\u0628 Google \u062e\u0648\u062f \u0634\u0648\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0631\u0648\u06cc \u062a\u0635\u0648\u06cc\u0631 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 &gt; <strong>Manage your Google Account<\/strong> \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p>\u062f\u0631 \u0646\u0648\u0627\u0631 \u062c\u0633\u062a\u062c\u0648 \u0639\u0628\u0627\u0631\u062a <strong>App Password<\/strong> \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p>\u06cc\u06a9 \u0646\u0627\u0645 \u0645\u0627\u0646\u0646\u062f &#8220;SSH Notifications&#8221; \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0647 \u0648 <strong>Create<\/strong> \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0631\u0645\u0632 \u06f1\u06f6 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u06cc \u062a\u0648\u0644\u06cc\u062f \u0634\u062f\u0647 \u0631\u0627 \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<\/ol>\n<h3 style=\"text-align: justify;\">\u0630\u062e\u06cc\u0631\u0647 \u0631\u0645\u0632 \u062f\u0631 \u0633\u0631\u0648\u0631:<\/h3>\n<pre><code class=\"language-bash\">sudo bash -c 'echo \"YOUR_16_CHAR_APP_PASSWORD\" &gt; \/root\/.gmail_app_password'\r\nsudo chmod 600 \/root\/.gmail_app_password\r\nsudo chown root:root \/root\/.gmail_app_password\r\n<\/code><\/pre>\n<blockquote>\n<p>\u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 <code>\"YOUR_16_CHAR_APP_PASSWORD\"<\/code> \u0631\u0645\u0632 \u062a\u0648\u0644\u06cc\u062f \u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u06af\u0648\u06af\u0644 \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<\/blockquote>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0631\u062d\u0644\u0647 \u06f5: \u0627\u06cc\u062c\u0627\u062f \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f<\/h2>\n<ol style=\"text-align: justify;\">\n<li>\n<p>\u0641\u0627\u06cc\u0644 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">sudo nano \/usr\/local\/bin\/ssh-login-notify.sh\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"2\">\n<li>\n<p>\u0645\u062d\u062a\u0648\u06cc\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f (\u0627\u06cc\u0645\u06cc\u0644 \u0645\u0642\u0635\u062f \u062e\u0648\u062f \u0631\u0627 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f):<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">#!\/bin\/bash\r\n\r\nUSER=\"$PAM_USER\"\r\nIP=\"$PAM_RHOST\"\r\nHOST=$(hostname)\r\nDATE=$(date)\r\nRECIPIENT=\"you@example.com\"\r\nSUBJECT=\"SSH Login on $HOST\"\r\n\r\nBODY=\"\r\n\u06cc\u06a9 \u0648\u0631\u0648\u062f SSH \u062c\u062f\u06cc\u062f \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f.\r\n\r\n\u06a9\u0627\u0631\u0628\u0631:        ${USER}\r\n\u0622\u062f\u0631\u0633 IP:      ${IP}\r\n\u062a\u0627\u0631\u06cc\u062e \u0648 \u0632\u0645\u0627\u0646: ${DATE}\r\n\u0633\u0631\u0648\u0631:         ${HOST}\r\n\"\r\n\r\nif [ ${PAM_TYPE} = \"open_session\" ]; then\r\n        echo \"${BODY}\" | mail -s \"${SUBJECT}\" ${RECIPIENT}\r\nfi\r\n\r\nexit 0\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"3\">\n<li>\n<p>\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0631\u0627 \u0627\u062c\u0631\u0627\u06cc\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">sudo chmod +x \/usr\/local\/bin\/ssh-login-notify.sh\r\n<\/code><\/pre>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0631\u062d\u0644\u0647 \u06f6: \u062a\u0633\u062a \u0639\u0645\u0644\u06a9\u0631\u062f<\/h2>\n<ol style=\"text-align: justify;\">\n<li>\n<p>\u0627\u0632 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u062f\u06cc\u06af\u0631 \u0648\u0627\u0631\u062f \u0633\u0631\u0648\u0631 \u0634\u0648\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">ssh user@your_server_ip\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"2\">\n<li>\n<p>\u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0645\u06cc\u0644 \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f \u0628\u0647 \u0635\u0646\u062f\u0648\u0642 \u0627\u06cc\u0645\u06cc\u0644 \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0627\u06af\u0631 \u0627\u06cc\u0645\u06cc\u0644 \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u06a9\u0631\u062f\u06cc\u062f\u060c \u0641\u0627\u06cc\u0644 \u0644\u0627\u06af \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">\/var\/log\/msmtp.log\r\n<\/code><\/pre>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0646\u06a9\u0627\u062a \u0627\u0645\u0646\u06cc\u062a\u06cc \u062a\u06a9\u0645\u06cc\u0644\u06cc<\/h2>\n<ol style=\"text-align: justify;\">\n<li>\n<p><strong>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0644\u06cc\u062f SSH:<\/strong> \u0628\u0647 \u062c\u0627\u06cc \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u060c \u0647\u0645\u06cc\u0634\u0647 \u0627\u0632 <strong>SSH key pair<\/strong> \u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>\u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0648\u0631\u0648\u062f \u0628\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631:<\/strong> \u062f\u0631 \u0641\u0627\u06cc\u0644 <code>\/etc\/ssh\/sshd_config<\/code>:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-text\">PasswordAuthentication no\r\n<\/code><\/pre>\n<ol style=\"text-align: justify;\" start=\"3\">\n<li>\n<p><strong>\u0646\u0635\u0628 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062d\u0627\u0641\u0638\u062a\u06cc:<\/strong> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong>Fail2Ban<\/strong> \u06cc\u0627 <strong>SSHGuard<\/strong> \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062d\u0645\u0644\u0627\u062a Brute Force.<\/p>\n<\/li>\n<li>\n<p><strong>\u0646\u0638\u0627\u0631\u062a \u0645\u0646\u0638\u0645:<\/strong> \u0647\u0631 \u0686\u0646\u062f \u0627\u0639\u0644\u0627\u0646 \u0627\u06cc\u0645\u06cc\u0644 \u0641\u0639\u0627\u0644 \u0627\u0633\u062a\u060c \u06af\u0627\u0647\u06cc \u0628\u0631\u0631\u0633\u06cc \u0644\u0627\u06af\u200c\u0647\u0627 \u0648 \u0648\u0636\u0639\u06cc\u062a \u0633\u0631\u0648\u0631 \u0627\u0644\u0632\u0627\u0645\u06cc \u0627\u0633\u062a.<\/p>\n<\/li>\n<\/ol>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0631\u0641\u0639 \u0645\u0634\u06a9\u0644\u0627\u062a \u0631\u0627\u06cc\u062c<\/h2>\n<ul style=\"text-align: justify;\">\n<li>\n<p><strong>\u0639\u062f\u0645 \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u06cc\u0645\u06cc\u0644:<\/strong> \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0631\u0645\u0632 App Password \u0635\u062d\u06cc\u062d \u0628\u0627\u0634\u062f \u0648 \u067e\u0648\u0631\u062a SMTP \u0628\u0627\u0632 \u0628\u0627\u0634\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>\u062e\u0637\u0627 \u062f\u0631 \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a:<\/strong> \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u0631\u0627\u06cc \u0645\u062c\u0648\u0632 \u0627\u062c\u0631\u0627\u06cc\u06cc (<code>chmod +x<\/code>) \u0628\u0627\u0634\u062f \u0648 \u0645\u0633\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u062f\u0631\u0633\u062a \u0628\u0627\u0634\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>\u062e\u0637\u0627 \u062f\u0631 PAM:<\/strong> \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u062e\u0637 <code>session optional pam_exec.so ...<\/code> \u0628\u0639\u062f \u0627\u0632 \u062e\u0637\u0648\u0637 session \u062f\u0631 <code>\/etc\/pam.d\/sshd<\/code> \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f.<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0632\u06cc\u062a \u0627\u06cc\u0646 \u0631\u0648\u0634<\/h2>\n<p style=\"text-align: justify;\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PAM \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH\u060c \u0631\u0648\u0634 <strong>\u0642\u0627\u0628\u0644 \u0627\u0639\u062a\u0645\u0627\u062f \u0648 \u0633\u0628\u06a9\u06cc<\/strong>\u00a0\u0627\u0633\u062a \u06a9\u0647:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p>\u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627\u06cc \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647 \u06cc\u0627 \u0627\u0633\u06a9\u0646 \u0644\u0627\u06af<\/p>\n<\/li>\n<li>\n<p>\u0628\u062f\u0648\u0646 \u062a\u0623\u062e\u06cc\u0631<\/p>\n<\/li>\n<li>\n<p>\u0628\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0645\u0644 \u06a9\u0627\u0631\u0628\u0631 \u0648 IP<\/p>\n<\/li>\n<li>\n<p>\u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0644\u062d\u0638\u0647\u200c\u0627\u06cc\u060c \u0634\u0645\u0627 \u0631\u0627 \u0627\u0632 \u0648\u0631\u0648\u062f\u0647\u0627 \u0645\u0637\u0644\u0639 \u0645\u06cc\u200c\u06a9\u0646\u062f<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u0648 \u0647\u0645\u06cc\u0646 \u0628\u0627\u0639\u062b \u0645\u06cc\u200c\u0634\u0648\u062f \u0627\u0645\u0646\u06cc\u062a \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0642\u0627\u0628\u0644 \u062a\u0648\u062c\u0647\u06cc \u0627\u0641\u0632\u0627\u06cc\u0634 \u06cc\u0627\u0628\u062f.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u0645\u0639\u0631\u0641\u06cc Orderhost \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u0645\u0646<\/h2>\n<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f <a href=\"https:\/\/orderhost.net\/vps\">\u0633\u0631\u0648\u0631\u06cc<\/a> \u0627\u0645\u0646\u060c \u067e\u0627\u06cc\u062f\u0627\u0631 \u0648 \u067e\u0631\u0633\u0631\u0639\u062a \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u062a\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH \u0631\u0627 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f\u060c \u0633\u0627\u06cc\u062a \u0627\u0631\u062f\u0631\u0647\u0627\u0633\u062a\u00a0\u06af\u0632\u06cc\u0646\u0647 \u0645\u0646\u0627\u0633\u0628\u06cc \u0627\u0633\u062a.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0627 <strong>\u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc \u0648 \u0627\u062e\u062a\u0635\u0627\u0635\u06cc<a href=\"https:\/\/orderhost.net\"> Orderhost<\/a><\/strong> \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p>\u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc SSH \u06a9\u0627\u0645\u0644 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f<\/p>\n<\/li>\n<li>\n<p>\u0627\u0645\u0646\u06cc\u062a \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0627 \u06a9\u0644\u06cc\u062f SSH \u0648 \u0627\u0639\u0644\u0627\u0646\u200c\u0647\u0627\u06cc \u0648\u0631\u0648\u062f \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f<\/p>\n<\/li>\n<li>\n<p>\u0627\u0632 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u06f2\u06f4\/\u06f7 \u0648 \u0645\u0646\u0627\u0628\u0639 \u0627\u062e\u062a\u0635\u0627\u0635\u06cc \u0628\u0647\u0631\u0647\u200c\u0645\u0646\u062f \u0634\u0648\u06cc\u062f<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc \u0633\u0627\u06cc\u062a \u0627\u0631\u062f\u0631\u0647\u0627\u0633\u062a(Orderhost) \u0628\u0627\u0639\u062b \u0645\u06cc\u200c\u0634\u0648\u062f \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0648 \u0627\u062c\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u062a\u062c\u0631\u0628\u0647\u200c\u06cc \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0648 \u0642\u0627\u0628\u0644 \u0627\u0639\u062a\u0645\u0627\u062f \u0646\u06cc\u0632 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\u062c\u0645\u0639\u200c\u0628\u0646\u062f\u06cc<\/h2>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0628\u0627 \u0631\u0648\u0634 <strong>\u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0627\u0639\u0644\u0627\u0646 \u0648\u0631\u0648\u062f SSH \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648<\/strong> \u0622\u0634\u0646\u0627 \u0634\u062f\u06cc\u062f:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\n<p>\u0645\u0631\u0627\u062d\u0644 \u0646\u0635\u0628 msmtp \u0648 mailx<\/p>\n<\/li>\n<li>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc PAM \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0646\u06af\u0627\u0645 \u0648\u0631\u0648\u062f<\/p>\n<\/li>\n<li>\n<p>\u0633\u0627\u062e\u062a App Password \u062f\u0631 Gmail<\/p>\n<\/li>\n<li>\n<p>\u0627\u06cc\u062c\u0627\u062f \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0631\u0633\u0627\u0644 \u0627\u0639\u0644\u0627\u0646 \u0628\u0647 \u0627\u06cc\u0645\u06cc\u0644<\/p>\n<\/li>\n<li>\n<p>\u062a\u0633\u062a \u0648 \u0628\u0631\u0631\u0633\u06cc \u062e\u0637\u0627\u0647\u0627<\/p>\n<\/li>\n<li>\n<p>\u0646\u06a9\u0627\u062a \u0627\u0645\u0646\u06cc\u062a\u06cc \u062a\u06a9\u0645\u06cc\u0644\u06cc<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u0631\u0648\u0634 \u0628\u0647 \u0634\u0645\u0627 <strong>\u0622\u06af\u0627\u0647\u06cc \u0644\u062d\u0638\u0647\u200c\u0627\u06cc \u0627\u0632 \u0648\u0631\u0648\u062f\u0647\u0627<\/strong> \u0648 <strong>\u0627\u0645\u0646\u06cc\u062a \u0628\u06cc\u0634\u062a\u0631 \u0633\u0631\u0648\u0631<\/strong> \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0627 \u062a\u0631\u06a9\u06cc\u0628 \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0628\u0627 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f <strong>Fail2Ban<\/strong> \u0648 <strong>SSH key<\/strong>\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0628\u0633\u06cc\u0627\u0631 \u0627\u0645\u0646 \u0648 \u0642\u0627\u0628\u0644 \u0627\u0639\u062a\u0645\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u0627\u06af\u0631 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u0645\u0637\u0645\u0626\u0646 \u0647\u0633\u062a\u06cc\u062f\u060c <a href=\"https:\/\/orderhost.net\"><strong>Orderhost.net<\/strong><\/a>\u00a0\u0627\u0646\u062a\u062e\u0627\u0628\u06cc \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0648 \u0627\u0645\u0646 \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0634\u0645\u0627\u0633\u062a.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u06af\u0631 \u0635\u0627\u062d\u0628 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0646\u0633\u062e\u0647 \u0627\u0628\u0648\u0646\u062a\u0648 \u0647\u0633\u062a\u06cc\u062f\u060c \u0645\u0637\u0645\u0626\u0646\u0627\u064b \u0645\u06cc\u200c\u062f\u0627\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0648\u0631\u0648\u062f \u0627\u0641\u0631\u0627\u062f \u0628\u0647 \u0633\u0631\u0648\u0631 \u0627\u0632 \u0637\u0631\u06cc\u0642 SSH \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645 \u062a\u0631\u06cc\u0646 \u06a9\u0627\u0631\u0647\u0627 \u0628\u0631\u0627\u06cc \u062d\u0641\u0638 \u0627\u0645\u0646\u06cc\u062a \u0627\u0633\u062a. \u062d\u062a\u06cc \u0627\u06af\u0631 \u062a\u0646\u0647\u0627 \u0634\u0645\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u06cc\u062f\u060c \u0647\u0645\u06cc\u0634\u0647 \u062e\u0648\u0628 \u0627\u0633\u062a \u0628\u062f\u0627\u0646\u06cc\u062f \u0686\u0647 \u0632\u0645\u0627\u0646\u06cc \u0648 \u0627\u0632 \u06a9\u062c\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0648\u0627\u0631\u062f \u0645\u06cc\u200c\u0634\u0648\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u0631\u0627\u06cc \u062a\u06cc\u0645\u200c\u0647\u0627 \u0648 &hellip;<\/p>\n","protected":false},"author":3,"featured_media":23932,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,68,43],"tags":[],"class_list":["post-23926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-os","category-linux-os"],"_links":{"self":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts\/23926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/comments?post=23926"}],"version-history":[{"count":5,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts\/23926\/revisions"}],"predecessor-version":[{"id":23931,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/posts\/23926\/revisions\/23931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/media\/23932"}],"wp:attachment":[{"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/media?parent=23926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/categories?post=23926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orderhost.net\/blog\/wp-json\/wp\/v2\/tags?post=23926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}