Se genera un par de llaves la llave se se copia al servidor es la llave publica.
1. Generar la llave
ssh-keygen
2. buscando la llave
cd .ssh/
Existen dos archivos nombre_maquina_id_rsa e nombre_maquina_id_rsa.pub.
3. Transferir al servidor de destino la llave publica, es decir, nombre_maquina_id_rsa.pub.
scp -P ## nombre_maquina_id_rsa.pub usuario_servidor@direccion_servidor.com:/tmp
4. Conectamos al servidor vía SSH
ssh usuario_servidor@direccion_servidor.com
cd .ssh/
5. Agrega la clave pública al listado autorización
cat /tmp/id_rsa.pub >> authorized-keys
6. Borrar el archivo de clave pública ubicado en /tmp
rm /tmp/id_rsa.pub
domingo, septiembre 10, 2017
sábado, septiembre 09, 2017
How to enable on Linux Bluetooth
1. We must know the hardware we have
$:hwinfo --shortbluetooth:
Qualcomm Atheros Bluetooth Device
2. We must know the driver has been loaded.
osx:/home/xfib # lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
|__ Port 1: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 6: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 7: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
|__ Port 8: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 8: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 9: Dev 5, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 9: Dev 5, If 1, Class=Video, Driver=uvcvideo, 480M
3. We now list wireless status
osx:/home/xfib # /usr/sbin/rfkill list all
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
4. In this case only have soft blocket, then now we try unblock soft device.
osx:/home/xfib # /usr/sbin/rfkill unblock all
5. We list again to confirm the block is off
osx:/home/xfib # /usr/sbin/rfkill list all
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Suscribirse a:
Entradas (Atom)