{"id":70,"date":"2021-04-15T15:18:39","date_gmt":"2021-04-15T07:18:39","guid":{"rendered":"https:\/\/www.anger.ltd\/?p=70"},"modified":"2021-04-15T15:18:39","modified_gmt":"2021-04-15T07:18:39","slug":"one-key-update-ssh-to-8-5p1","status":"publish","type":"post","link":"https:\/\/www.anger.ltd\/index.php\/2021\/04\/15\/one-key-update-ssh-to-8-5p1\/","title":{"rendered":"One Key Update SSH to 8.5p1"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\nyum -y install zlib zlib-devel\nyum update openssh -y\nyum -y install make\nyum install -y openssl-devel openssl pcre-devel\nyum -y install pam-devel\n\ncp -rf \/etc\/ssh \/etc\/ssh.bak\n\nchmod 600 \/etc\/ssh\/ssh_host_rsa_key\nchmod 600 \/etc\/ssh\/ssh_host_ecdsa_key\nchmod 600 \/etc\/ssh\/ssh_host_ed25519_key\n\nsed -i 's\/^#PermitRootLogin yes\/PermitRootLogin yes\/' \/etc\/ssh\/sshd_config\nsed -i 's\/^GSSAPIAuthentication\/#&amp;\/' \/etc\/ssh\/sshd_config\nsed -i 's\/^GSSAPICleanupCredentials\/#&amp;\/' \/etc\/ssh\/sshd_config\nsed -i 's\/^UsePAM\/#&amp;\/' \/etc\/ssh\/sshd_config\n\nsed -i 's\/^Type\/#&amp;\/' \/lib\/systemd\/system\/ssh.service\n\nwget https:\/\/ftp.openbsd.org\/pub\/OpenBSD\/OpenSSH\/portable\/openssh-8.5p1.tar.gz\ntar zxf openssh-8.5p1.tar.gz\n\ncd openssh-8.5p1\n.\/configure --prefix=\/usr --with-privsep-path=\/var\/empty\/sshd\/ \\\n       --sysconfdir=\/etc\/ssh --with-ssl-dir=\/usr\/local\/openssl\/ \\\n       --with-default-path=\/usr\/local\/bin:\/bin:\/usr\/bin \\\n       --with-superuser-path=\/usr\/local\/sbin:\/usr\/local\/bin:\/sbin:\/bin:\/usr\/sbin:\/usr\/bin \\\n       --with-pam --with-selinux --disable-strip --with-md5-passwords\nmake\nmake install\n\nsystemctl daemon-reload\n\nsystemctl restart sshd\n\nssh -V<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":1,"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/posts\/70\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anger.ltd\/index.php\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}