{"id":1502,"date":"2017-01-07T10:11:00","date_gmt":"2017-01-07T16:11:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/habilitar-ssh-en-fedora-25-dentro-de-una-red-local\/"},"modified":"2017-01-07T10:11:00","modified_gmt":"2017-01-07T16:11:00","slug":"habilitar-ssh-en-fedora-25-dentro-de-una-red-local","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/habilitar-ssh-en-fedora-25-dentro-de-una-red-local\/","title":{"rendered":"Habilitar ssh en Fedora 25 dentro de una red local"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-eIJKAUHjIZc\/WHB--F2CUOI\/AAAAAAAAEQo\/TFrwWEyMqGgEhbnJEBKLDnsFaXs--erKgCLcB\/s1600\/ssh.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/3.bp.blogspot.com\/-eIJKAUHjIZc\/WHB--F2CUOI\/AAAAAAAAEQo\/TFrwWEyMqGgEhbnJEBKLDnsFaXs--erKgCLcB\/s1600\/ssh.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">El uso de SSH en Fedora difiere en algunas configuraciones, por ejemplo, Selinux es muy estricto en los bloqueos de puertos, y en muchas ocasiones es necesario a\u00f1adir el puerto a la lista de permitidos en firewall.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">1.- Instalar openssh y la interfaz gr\u00e1fica de firewall en caso de no tenerlo previamente.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"background-color: white; border: 0px; color: #262626; font-family: &quot;carrois gothic&quot; , sans-serif; font-size: medium; font-style: normal; font-weight: normal; letter-spacing: normal; margin: 0px; outline: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;\"><\/span><\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: inherit; letter-spacing: normal; line-height: 15.68px; margin: 0px 0px 1.1em; max-width: 100%; orphans: 2; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; widows: 2; word-spacing: 0px; word-wrap: break-word;\">sudo dnf install openssh-server firewall-config<\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Iniciar el servicio:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo service sshd start<\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">2.- A partir de iniciar el servicio, ya es posible conectarse, para hacerlo solo basta usar la siguiente instrucci\u00f3n desde consola:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">ssh linuxitos@192.168.1.66<\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">O bien, hacerlo desde nautilus:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-p_kXEXAKQfc\/WHCAYeq9GLI\/AAAAAAAAEQ0\/KwdFCfA0W_MwxIChRElPCa8NWMA-R-BjACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-32-47.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/2.bp.blogspot.com\/-p_kXEXAKQfc\/WHCAYeq9GLI\/AAAAAAAAEQ0\/KwdFCfA0W_MwxIChRElPCa8NWMA-R-BjACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-32-47.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">En la configuraci\u00f3n por defecto, el usuario root, est\u00e1 permitido para inicio de sesi\u00f3n, esto es una vulnerabilidad, por lo tanto se procede a deshabilitarlo:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.bk_factory<\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"font-size: large;\">Buscar la l\u00ednea que diga&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\">PermitRootLogin &nbsp;yes y cambiarla a&nbsp;<\/span><\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\">PermitRootLogin no<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/span><\/div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config<\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Quedando de la siguiente manera:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"background-color: white; border: 0px; color: #262626; font-family: &quot;carrois gothic&quot; , sans-serif; font-size: medium; font-style: normal; font-weight: normal; letter-spacing: normal; margin: 0px; outline: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;\"><\/span><\/div>\n<pre style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; font-stretch: normal; line-height: 1.6; margin: 0px 0px 10px; max-width: 100%; orphans: 2; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-align: left; text-indent: 0px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; widows: 2; word-break: break-all; word-wrap: break-word;\"><span style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"color: #333333; font-family: &quot;courier pitch&quot; , &quot;courier&quot; , monospace;\"><span style=\"font-size: 15px; white-space: pre-wrap;\"># deshabilitando el inicio del usuario root<br \/>PermitRootLogin no<\/span><\/span><span style=\"color: #333333; font-family: inherit;\"><span style=\"font-size: 15px; font-style: inherit; font-weight: inherit; white-space: pre-wrap;\"><br \/><\/span><\/span><\/span><\/span><\/span><\/span><\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Es necesario reiniciar el servicio de sshd<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo service sshd restart<\/pre>\n<div><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Y de esta manera, cuando se intente iniciar sesi\u00f3n con el usuario root, mostrar\u00e1 el siguiente mensaje:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-tivrmrxWAFs\/WHCCU9n8k_I\/AAAAAAAAERE\/ZOyUUipLpqAm9WSR4Eru79xxRmh0gQc1gCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-52-10.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-tivrmrxWAFs\/WHCCU9n8k_I\/AAAAAAAAERE\/ZOyUUipLpqAm9WSR4Eru79xxRmh0gQc1gCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-52-10.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Si por alguna raz\u00f3n, no funciona ssh, entonces es necesario abrir la aplicaci\u00f3n de firewall y habilitar ssh en firewall.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Al abrir la aplicaci\u00f3n de firewall, seleccionar el modo permanente, luego ir a workstation, suponiendo que utilicen esa versi\u00f3n, buscar ssh y habilitarlo.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-qfDDemzRHWY\/WHCC-TtKlEI\/AAAAAAAAERM\/WkjP_-k2xP8XrxxBYsvO_9oCSndFnR5NwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-34-08.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/1.bp.blogspot.com\/-qfDDemzRHWY\/WHCC-TtKlEI\/AAAAAAAAERM\/WkjP_-k2xP8XrxxBYsvO_9oCSndFnR5NwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-34-08.png\" \/><\/a><\/div>\n<p><span style=\"font-size: large; text-align: justify;\">Al abrir la aplicaci\u00f3n de firewall, seleccionar el modo ejecuci\u00f3n, luego ir a workstation, suponiendo que utilicen esa versi\u00f3n, buscar ssh y habilitarlo.<\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-qxvjxaPnuqc\/WHCC-q2FqMI\/AAAAAAAAERQ\/pktdMQQtuQcO5i1knx8PZJ4FaRDBhl10QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-34-20.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/2.bp.blogspot.com\/-qxvjxaPnuqc\/WHCC-q2FqMI\/AAAAAAAAERQ\/pktdMQQtuQcO5i1knx8PZJ4FaRDBhl10QCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2017-01-06%2B23-34-20.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">De este modo, ya deber\u00eda funcionar.&nbsp;<\/span><span style=\"font-size: large;\">Espero que sea de utilidad.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: right;\"><a href=\"http:\/\/www.techotopia.com\/index.php\/Configuring_Fedora_Linux_Remote_Access_using_SSH\">http:\/\/www.techotopia.com\/index.php\/Configuring_Fedora_Linux_Remote_Access_using_SSH<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>El uso de SSH en Fedora difiere en algunas configuraciones, por ejemplo, Selinux es muy estricto en los bloqueos de puertos, y en muchas ocasiones es necesario a\u00f1adir el puerto a la lista de permitidos en firewall. 1.- Instalar openssh y la interfaz gr\u00e1fica de firewall en caso de no tenerlo previamente. sudo dnf install [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,7,245,246,244],"tags":[],"class_list":["post-1502","post","type-post","status-publish","format-standard","hentry","category-conectar","category-fedora","category-openssh","category-red-local","category-ssh"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1502","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=1502"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1502\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}