Page 1
more
more
ssh
Standard

Conectar openvox por ssh

ssh -p12345 admin@192.168.1.201

Por defecto el puerto de ssh es el 12345 y el usuario admin, pero al realizar la conexión aparece el siguiente error:

Unable to negotiate with 192.168.1.201 port 12345: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Continue Reading →
more
more
Standard

Permisos por defecto para /var/www

Los permisos correctos deben ser 755 para carpetas y 644 para archivos. Para realizar esta modificación de forma recursiva se deben usar los siguientes comandos:

find . -type f -print0 | xargs -0 chmod 644
find . -type d -print0 | xargs -0 chmod 755

more
more
Standard

Error al instalar Wine: The following signatures couldn’t be verified because the public key is not available

Cuando ejecutamos

sudo apt-get update

aparece el error:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F W: Some index files failed to download. They have been ignored, or old ones used instead.

Solución:

wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update
sudo apt-get install --install-recommends winehq-stable
more
Standard

Habilitar query log en MySQL

Editar el archivo /etc/mysql/my.cnf y agregar al final del archivo:

[mysqld]
general_log=on
general_log_file=/var/log/mysql/query.log

Reiniciar el servicio

service mysql restart

Revisamos la salida

tail -f /var/log/mysql/query.log
more
Standard

Cambiar la contraseña root de MySQL en Issabel

A continuación muestro como cambiar la contraseña root de Mysql en Issabel

Detener el servicio mysql

systemctl stop mariadb

Iniciamos el modo seguro:

mysqld_safe --skip-grant-tables &

Hacemos un login a MySQL sin password

mysql -u root

Actualizamos la contraseña

update mysql.user set password=PASSWORD("1notfound1") where user='root';

Cargamos los privilegios / permisos y salimos de la sesión:

Iniciamos el servicio
systemctl start mariadb
 y Listo!
more
Standard

Loguearse por SSH sin ingresar contraseña

Conectarse de un Equipo A con IP 192.168.1.10 a otro Equipo B con direccion ip 192.168.2.20 sin ingresar la contraseña.

  1. Crear clave de autenticación en el Equipo A 192.168.1.10

ssh-keygen -t rsa

No ingresar contraseña

  1. Copiar la clave pública desde el Equipoo A al Equipo B
cat ~/.ssh/id_rsa.pub | ssh demo@192.168.2.20 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"
ssh-copy-id demo@192.168.2.20
  1.  Conectar de Equipo A a Equipo B sin contraseña
ssh demo@192.168.2.20

more