<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://educacion.luisantolin.com/index.php?action=history&amp;feed=atom&amp;title=Openssh_sin_contrase%C3%B1a_en_windows10</id>
	<title>Openssh sin contraseña en windows10 - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://educacion.luisantolin.com/index.php?action=history&amp;feed=atom&amp;title=Openssh_sin_contrase%C3%B1a_en_windows10"/>
	<link rel="alternate" type="text/html" href="http://educacion.luisantolin.com/index.php?title=Openssh_sin_contrase%C3%B1a_en_windows10&amp;action=history"/>
	<updated>2026-05-12T13:44:57Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://educacion.luisantolin.com/index.php?title=Openssh_sin_contrase%C3%B1a_en_windows10&amp;diff=247&amp;oldid=prev</id>
		<title>Lantolin: Página creada con «Objetivo: poder acceder remotamente desde un Linux a un Windows10 para poder lanzar comandos remotamente de modo que se puedan automatizar tareas.  Seguro que no es la form…»</title>
		<link rel="alternate" type="text/html" href="http://educacion.luisantolin.com/index.php?title=Openssh_sin_contrase%C3%B1a_en_windows10&amp;diff=247&amp;oldid=prev"/>
		<updated>2021-02-02T18:01:36Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «Objetivo: poder acceder remotamente desde un Linux a un Windows10 para poder lanzar comandos remotamente de modo que se puedan automatizar tareas.  Seguro que no es la form…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Objetivo: poder acceder remotamente desde un Linux a un Windows10 para poder lanzar comandos remotamente de modo que se puedan automatizar tareas.&lt;br /&gt;
&lt;br /&gt;
Seguro que no es la forma mas &amp;quot;windows&amp;quot;, pero para Linuxeros, tu dame un SSH y moveré el mundo.&lt;br /&gt;
&lt;br /&gt;
=== Instalar OpenSSH Server ===&lt;br /&gt;
&lt;br /&gt;
No viene por defecto&lt;br /&gt;
&lt;br /&gt;
Abrimos una Powershell con privilegios de Administrador&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nos informará de si le hace falta reboot o no.&lt;br /&gt;
&lt;br /&gt;
 Set-Service -Name sshd -StartupType &amp;#039;Automatic&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 Start-Service -Name sshd&lt;br /&gt;
&lt;br /&gt;
Listo, deberíamos tener el puerto 22 escuchando&lt;br /&gt;
&lt;br /&gt;
=== Autorizar la clave pública ===&lt;br /&gt;
&lt;br /&gt;
 scp /home/lantolin/.ssh/id_rsa.pub l.antolin@172.16.4.236:/ProgramData/ssh/administrators_authorized_keys&lt;br /&gt;
&lt;br /&gt;
Por estas cosas maravillosas de Windows ... que tanto nos enamoran, para que funcione hay que ejecutar lo siguiente en PS&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;$acl = Get-Acl C:\ProgramData\ssh\administrators_authorized_keys&lt;br /&gt;
 $acl.SetAccessRuleProtection($true, $false)&lt;br /&gt;
 $administratorsRule = New-Object system.security.accesscontrol.filesystemaccessrule(&amp;quot;Administradores&amp;quot;,&amp;quot;FullControl&amp;quot;,&amp;quot;Allow&amp;quot;)&lt;br /&gt;
 $systemRule = New-Object system.security.accesscontrol.filesystemaccessrule(&amp;quot;SYSTEM&amp;quot;,&amp;quot;FullControl&amp;quot;,&amp;quot;Allow&amp;quot;)&lt;br /&gt;
 $acl.SetAccessRule($administratorsRule)&lt;br /&gt;
 $acl.SetAccessRule($systemRule)&lt;br /&gt;
 $acl | Set-Acl&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cosas que se pueden hacer ===&lt;br /&gt;
&lt;br /&gt;
Cambiar el proxy&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ssh lantolin@192.168.1.114 powershell Set-ItemProperty \&amp;#039;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet\ Settings\&amp;#039; -Name ProxyEnable -Value 0&lt;br /&gt;
 Set-ItemProperty &amp;#039;HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings&amp;#039; -Name ProxyEnable -Value 0&lt;br /&gt;
 Set-ItemProperty &amp;#039;HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings&amp;#039; -Name ProxyEnable -Value 1&lt;br /&gt;
 Set-ItemProperty &amp;#039;HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings&amp;#039; -Name ProxyServer -Value 172.16.7.200:3128&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Quitar la ruta por defecto. Esto es un modo de dejar un PC con Intranet (red local directamente conectada) pero sin Internet. Muy util para PCs de alumnos.&lt;br /&gt;
&lt;br /&gt;
 Remove-NetRoute -DestinationPrefix 0.0.0.0/0 -Confirm:$false&lt;/div&gt;</summary>
		<author><name>Lantolin</name></author>
	</entry>
</feed>