lunes, 14 de junio de 2021

SSH en Windows Instalar (Cliente y Server)

Fuente: Instalar openssh | Documentos de Microsoft

Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' 

# Install the OpenSSH Client Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 # Install the OpenSSH Server Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Start-Service sshd

Set-Service -Name sshd -StartupType 'Automatic' # Confirm the firewall rule is configured. It should be created automatically by setup. Get-NetFirewallRule -Name *ssh*







martes, 8 de junio de 2021

Conectar el Windows con Ubuntu Server LTD 20.04 a traves de MYSQL

Es necesario tener tanto el Windows cliente como el Ubuntu Server instalado el Mysql Server.

Además es necesario tener la variable global --local-infile = ON,

Por ultimo los usuarios de Windows y linux de Mysql deben tener el mismo nombre y contraseña y ademas el usuario del Mysql SERVER debe tener un usuario con HOST = %

Comando desde Windows; 

C:\Users\Indra>mysql -u jason -p -D cms -e "load data infile 'C:/Users/Indra/OneDrive - Indra/Planta Comercial/Source(;).csv'IGNORE INTO TABLE planta_clarita CHARACTER SET latin1 FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n' IGNORE 1 LINES"

MYSQL | Diferencias entre LOAD DATA INFILE y LOAD DATA LOCAL INFILE

 Fuente: C Con Clase | Curso de MySQL (sqlsen)(LOAD DATA)

MYSQL Permitir acceso remoto en Ubuntu server

 Fuente: Cómo permitir el acceso remoto de MySQL en Ubuntu Server (configserverfirewall.com)