miércoles, 9 de septiembre de 2015

RegExp : validación nombres y apellidos

^[^±!@£$%^&*_+§¡€#¢§¶•ªº«\\/<>?:;|=.,]{1,20}$ 

jueves, 2 de abril de 2015

Eliminar host de know_host

Para eliminar la entrada de una clave de un servidor al que se conecta via ssh.

$ ssh-keygen -R 192.168.1.33

Suele ser necesaria esta acción cuando la maquina a la que nos queremos conectar tiene la misma ip que otra maquina a la que nos hayamos conectado.

Al hacer ssh sobre la maquina aparece este mensaje de error

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
f2:92:1d:da:81:2a:d7:16:0a:48:f0:43:20:1c:f4:b5.
Please contact your system administrator.
Add correct host key in /home/bodhi/.ssh/known_hosts to get rid of this message.
Offending key in /home/bodhi/.ssh/known_hosts:1