{"id":1807,"date":"2014-11-06T14:14:00","date_gmt":"2014-11-06T20:14:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/habilitar-ssh-unicamente-cuando-sea-necesario\/"},"modified":"2014-11-06T14:14:00","modified_gmt":"2014-11-06T20:14:00","slug":"habilitar-ssh-unicamente-cuando-sea-necesario","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/habilitar-ssh-unicamente-cuando-sea-necesario\/","title":{"rendered":"Habilitar ssh \u00fanicamente cuando sea necesario"},"content":{"rendered":"<div style=\"text-align: justify;\">En la mayor\u00eda de las distribuciones linux, ssh vienen activado por default. Si usan fedora tienen una seguridad m\u00e1s, ya que en fedora selinux no permite las conexiones, es necesario darle permisos en el firewall. Pero en las dem\u00e1s distribuciones puede ser un punto vulnerable para la seguridad. Alg\u00fan hacker con un poco de experiencia en contrase\u00f1as podr\u00eda descifrar la contrase\u00f1a de root en caso de que en las reglas de ssh est\u00e9n activas para el usuario root.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Para evitar que ssh inicie al encender el sistema ejecutar el siguiente comando, los comandos se ejecutan con usuario que tenga privilegios de administrados o sudoers:<\/div>\n<div style=\"text-align: justify;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png) 50% 0% no-repeat scroll rgb(45, 45, 45); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #828fff; display: block; font-family: 'Roboto Mono', Consolas, monaco, monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">systemctl disable sshd.service<\/code><\/span><\/div>\n<div style=\"text-align: justify;\">Si despu\u00e9s deseas que ssh inicie cuando inicia el sistema entonces realiza los siguiente:<\/div>\n<div style=\"text-align: justify;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png) 50% 0% no-repeat scroll rgb(45, 45, 45); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #828fff; display: block; font-family: 'Roboto Mono', Consolas, monaco, monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">systemctl enable sshd.service<\/code><\/span><\/div>\n<div style=\"text-align: justify;\">Para iniciar el demonio de ssh realizar lo siguiente:<\/div>\n<div style=\"text-align: justify;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png) 50% 0% no-repeat scroll rgb(45, 45, 45); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #828fff; display: block; font-family: 'Roboto Mono', Consolas, monaco, monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">systemctl start sshd.service<\/code><\/span><\/div>\n<div style=\"text-align: justify;\">&nbsp;o puedes usar este otro:<\/div>\n<div style=\"text-align: justify;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png) 50% 0% no-repeat scroll rgb(45, 45, 45); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #828fff; display: block; font-family: 'Roboto Mono', Consolas, monaco, monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">\/etc\/init.d\/sshd restart<\/code><\/span> <\/div>\n<div style=\"text-align: justify;\">Para finalizar el demonio de ssh ejecutar el siguiente comando:<\/div>\n<div style=\"text-align: justify;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png) 50% 0% no-repeat scroll rgb(45, 45, 45); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #828fff; display: block; font-family: 'Roboto Mono', Consolas, monaco, monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">systemctl stop sshd.service<\/code><\/span><\/div>\n<div style=\"text-align: justify;\">o puedes usar este otro comando:<\/div>\n<div style=\"text-align: justify;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png) 50% 0% no-repeat scroll rgb(45, 45, 45); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #828fff; display: block; font-family: 'Roboto Mono', Consolas, monaco, monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">\/etc\/init.d\/sshd stop<\/code><\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>En la mayor\u00eda de las distribuciones linux, ssh vienen activado por default. Si usan fedora tienen una seguridad m\u00e1s, ya que en fedora selinux no permite las conexiones, es necesario darle permisos en el firewall. Pero en las dem\u00e1s distribuciones puede ser un punto vulnerable para la seguridad. Alg\u00fan hacker con un poco de experiencia [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1338,7,4,244,1413],"tags":[],"class_list":["post-1807","post","type-post","status-publish","format-standard","hentry","category-desahabilitar-ssh","category-fedora","category-linux","category-ssh","category-sshd"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1807"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1807\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}