{"id":143912,"date":"2019-05-08T08:06:54","date_gmt":"2019-05-08T00:06:54","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=143912"},"modified":"2019-04-30T09:07:54","modified_gmt":"2019-04-30T01:07:54","slug":"centos7-install-kippo","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos7-install-kippo.html","title":{"rendered":"\u901a\u8fc7yum\u65b9\u5f0f\u5728CentOS 7\u4e0a\u90e8\u7f72Kippo"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nKippo \u662f\u4e00\u6b3e\u5f00\u6e90\u7684 SSH \u871c\u7f50\uff0c\u6258\u7ba1\u4e8e Github\uff0c\u62e5\u6709 SSH \u871c\u7f50\u8bb0\u5f55\u7b49\u591a\u79cd\u529f\u80fd;\u76ee\u524d\u7f51\u7edc\u4e0a\u5173\u4e8e\u5982\u4f55\u5728 CentOS 7 \u7b49\u65b0\u7cfb\u7edf\u4e0a\u642d\u5efa Kippo \u7684\u6587\u7ae0\u8f83\u5c11\uff0c\u800c\u4e14\u9519\u8bef\u767e\u51fa\uff0c\u5b9e\u5728\u662f\u6dfb\u4e71\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u672c\u6587\u4f7f\u7528 222 \u4f5c\u4e3a\u771f\u5b9e ssh \u7aef\u53e3\uff0c\u91c7\u7528 2222 \u4f5c\u4e3a Kippo \u63a5\u6536\u7aef\u53e3\u3002<\/p>\n

\u7cfb\u7edf\u73af\u5883<\/strong><\/span><\/div>\n

\u516c\u6709\u4e91\u4e0a\u7684 CentOS 7 x86_64\uff08\u975e OpenVZ\uff09\uff0c\u53cc\u6838\uff0c2 GB \u5185\u5b58\uff0cSELinux \u4e0d\u5f00\u542f<\/p>\n

\u5b89\u88c5\u73af\u5883<\/strong><\/span><\/div>\n
\r\n$ sudo yum install libffi libffi-devel gcc git -y\r\n$ sudo yum install python-devel openssl openssl-devel -y\r\n$ sudo yum install python-twisted-core python-setuptools python-virtualenv -y\r\n$ sudo easy_install pycrypto pyasn1 \r\n$ sudo easy_install pip\r\n$ pip install cryptography\r\n<\/pre>\n

# \u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u4f7f\u7528\u4f4e\u4e8e\u6b64\u7248\u672c\u7684 twistd \u53ef\u80fd\u51fa\u73b0 cannot import \u9519\u8bef<\/p>\n

\r\n$ sudo pip install twisted==15.2.0\r\n$ sudo pip install service_identity\r\n<\/pre>\n
\u4fee\u6539\u771f\u5b9essh\u7aef\u53e3\u540e\u8bbe\u7f6eFirewalld<\/strong><\/span><\/div>\n
\r\n$ sudo vim \/etc\/ssh\/sshd_config # \u4fee\u6539 Port \u4e3a 222\r\n$ sudo firewall-cmd --add-port=222\/tcp --permanent\r\n$ sudo firewall-cmd --add-port=2222\/tcp --permanent\r\n$ sudo firewall-cmd --permanent --add-forward-port=port=22:proto=tcp:toport=2222:addr={ YOUR SERVER IP }\r\n$ sudo firewall-cmd --reload\r\n<\/pre>\n
\u521b\u5efa\u7528\u6237&\u514b\u9686\u9879\u76ee<\/strong><\/span><\/div>\n
\r\n$ sudo useradd kippo\r\n$ sudo su kippo\r\n$ cd ~\r\n$ git clone https:\/\/github.com\/desaster\/kippo.git\r\n$ cd kippo\r\n<\/pre>\n
\u542f\u52a8Kippo<\/strong><\/span><\/div>\n
\r\n$ cp kippo.cfg.dist kippo.cfg\r\n$ .\/start.sh\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u4f7f\u7528 222 \u4f5c\u4e3a\u771f\u5b9e ssh \u7aef\u53e3\uff0c\u91c7\u7528 2222 \u4f5c\u4e3a Kippo \u63a5\u6536\u7aef\u53e3\u3002 \u516c\u6709\u4e91\u4e0a\u7684 CentO […]<\/p>\n","protected":false},"author":668,"featured_media":128695,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-143912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/143912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/668"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=143912"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/143912\/revisions"}],"predecessor-version":[{"id":143983,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/143912\/revisions\/143983"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/128695"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=143912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=143912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=143912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}