miércoles, 26 de septiembre de 2018

Linux básico / SSH / PuTTY



Habilitar Key-Based Authentication en SSH Server
https://docs.bitnami.com/virtual-machine/faq/get-started/enable-ssh-keys/
  • Generar claves publica y privada
    • ssh-keygen
  • Guardar una copia de la clave privada en un lugar seguro.
  • Transferir contenido de la clave pública "id_rsa.pub" --> "authorized_keys"
    • cd /home/bitnami/.ssh
    • cat id_rsa.pub >> /home/bitnami/.ssh/authorized_keys
  • Editar "/etc/ssh/sshd_config"
    • sudo edit /etc/ssh/sshd_config
      • RSAAuthentication yes
      • PubkeyAuthentication yes
      • y también desabilitar ingreso x contraseña:
      • ChallengeResponseAuthentication no
      • PermitRootLogin no
      • PasswordAuthentication no
      • UsePAM no
  • Restart SSH
    • sudo /etc/init.d/ssh force-reload

Configurar Client Access desde Windows (PuTTY)
Se puede ver dentro de las instrucciones de cómo acceder a GitLab vía SSH.
  1. Convertir la clave privada (SSH) de Linux en formato .PEM a formato .PPK utilizando "puttygen.exe"
  2. Configurar PuTTY
    • Connection / SSH / Auth / Private Key File for Authentication
    • Connection / Data / Auto Login Name
    • Guardar configuración: Session / <Save>

Cómo copiar archivos de Linux a Windows
Luego de instalar PuTTY queda configurado el PATH para poder utilizar PSCP por línea de comando.
Ejemplo:
- pscp -pw xxxxxx bitnami@172.10.10.246:/home/bitnami/.ssh/id_rsa.pub c:/temp
Ver manual.

Cómo montar un CD/DVD
cd /
mkdir cdrom
mount-cd1996 /dev/cd0 /cdrom

Luego, por ejemplo, para descomprimir el contenido de VMware Tools del CD ROM:
cd
mkdir tmp
cd tmp
tar zxpf /cdrom/vmware-freebsd-tools.tar.gz
umount /cdrom




2 comentarios:

  1. if you need hardware development, software embeded you find it here https://aduk.de

    ResponderEliminar
  2. I really like it :) In general, I like various fascinating articles and interesting ones. I'm into games like https://www.newcasinoslist.ca/new-casino-slots and that's cool. It's cool that you can work like this, play and win money. Miracles and nothing more. In general, I think that this is a personal matter for everyone. And it's cool when everyone likes it.

    ResponderEliminar