{"id":1773,"date":"2015-02-11T23:01:00","date_gmt":"2015-02-12T05:01:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/habilitar-ssh-para-usuario-especifico-en-fedora\/"},"modified":"2015-02-11T23:01:00","modified_gmt":"2015-02-12T05:01:00","slug":"habilitar-ssh-para-usuario-especifico-en-fedora","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/habilitar-ssh-para-usuario-especifico-en-fedora\/","title":{"rendered":"Habilitar SSH para usuario espec\u00edfico en Fedora"},"content":{"rendered":"<p>En ocasiones es necesario administrar m\u00e1quinas desde otra PC, una de esas opciones es por SSH.<\/p>\n<p>Las configuraciones para esto son las siguientes:<\/p>\n<div style=\"text-align: justify;\">Agregar el nombre del usuario a permitir conectarse por SSH. Abrir el archivo de configuraci\u00f3n <span style=\"color: #660000;\">sshd_config<\/span> que est\u00e1 en el directorio&nbsp;<\/div>\n<p><span style=\"color: #990000;\">\/etc\/ssh\/sshd_config<\/span> <br \/>y agregar <span style=\"color: #660000;\">AllowUsers nombreUsuarioApermitirConexionSSH<\/span> al final del archivo.<br \/><span style=\"color: lime;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(&quot;http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png&quot;) no-repeat scroll 50% 0% rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; display: block; font-family: &quot;Roboto Mono&quot;,Consolas,monaco,monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">sudo gedit \/etc\/ssh\/sshd_config<\/code><\/span><\/span><\/p>\n<p>y quedar\u00eda algo as\u00ed<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-hJFpGJbGDJo\/VNwkgJmJGuI\/AAAAAAAAAds\/fDLkAIZhF4w\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-02-11%2B21%3A55%3A25.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-hJFpGJbGDJo\/VNwkgJmJGuI\/AAAAAAAAAds\/fDLkAIZhF4w\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-02-11%2B21%3A55%3A25.png\" height=\"296\" width=\"400\" \/><\/a><\/div>\n<p>Guardar la nueva configuraci\u00f3n y cerrar el archivo.<\/p>\n<p>Habilitar ssh:<br \/><span style=\"color: lime;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(&quot;http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png&quot;) no-repeat scroll 50% 0% rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; display: block; font-family: &quot;Roboto Mono&quot;,Consolas,monaco,monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">sudo systemctl start sshd.service<\/code><\/span><\/span><br \/>Deshabilitar ssh:<br \/><span style=\"color: lime;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(&quot;http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png&quot;) no-repeat scroll 50% 0% rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; display: block; font-family: &quot;Roboto Mono&quot;,Consolas,monaco,monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">sudo systemctl stop sshd.service<\/code><\/span><\/span><br \/>Para conectarse se hace de la siguiente manera:<br \/>Primero es necesario conocer la IP de la pc a conectarse, para saber la ip se usa <span style=\"color: #660000;\">ifconfig<\/span>&nbsp; una vez que se obtenga la IP se realiza la conexi\u00f3n de este tipo.<br \/><span style=\"color: lime;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><code style=\"background: url(&quot;http:\/\/blog.desdelinux.net\/wp-content\/themes\/DesdeLinuxV5_new\/img\/terminal.png&quot;) no-repeat scroll 50% 0% rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; display: block; font-family: &quot;Roboto Mono&quot;,Consolas,monaco,monospace; font-size: 14px; font-weight: normal; margin: 8px 15px; padding: 30px 4px 10px; text-shadow: none; white-space: pre-wrap;\">ssh nombreUsuario@192.168.33.32<\/code><\/span><\/span><\/p>\n<p>Y eso es todo.<br \/>Fuentes:<br \/><a href=\"http:\/\/linuxgx.blogspot.mx\/2014\/11\/habilitar-ssh-unicamente-cuando-sea.html\">http:\/\/linuxgx.blogspot.mx\/2014\/11\/habilitar-ssh-unicamente-cuando-sea.html<\/a><br \/><a href=\"http:\/\/linuxgx.blogspot.mx\/2014\/11\/deshabilitar-sesiones-de-root-de-ssh-en.html\">http:\/\/linuxgx.blogspot.mx\/2014\/11\/deshabilitar-sesiones-de-root-de-ssh-en.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En ocasiones es necesario administrar m\u00e1quinas desde otra PC, una de esas opciones es por SSH. Las configuraciones para esto son las siguientes: Agregar el nombre del usuario a permitir conectarse por SSH. Abrir el archivo de configuraci\u00f3n sshd_config que est\u00e1 en el directorio&nbsp; \/etc\/ssh\/sshd_config y agregar AllowUsers nombreUsuarioApermitirConexionSSH al final del archivo.sudo gedit \/etc\/ssh\/sshd_config [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1336,1338,1236,87,1339,1337,244],"tags":[],"class_list":["post-1773","post","type-post","status-publish","format-standard","hentry","category-conexion-ssh","category-desahabilitar-ssh","category-fedora-21","category-gnome","category-habilitar-ssh","category-session-ssh","category-ssh"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1773","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=1773"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1773\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}