[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problemas puntuales con el ssh - Solucionado



ZorroPlateado wrote:
Llevaba meses funcionanbo muy bien con el ssh cuando de pronto un dia no me pide la frase de paso sino que me pide directamente el password de la cuenta de inicio de sesion en el servidor. Con el password puedo conectar pero prefiero con el par de llaves publica/privada.

    Incluso probe a regenerar mi par de claves y nada, no hay manera.

    Estoy en sarge, y el servidor tambien.

    Mi salida depurada de una conexion es como sigue:

OpenSSH_3.8.1p1 Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to miservidor [miservidor] port 22.
debug1: Connection established.
debug1: identity file /home/i32lelor/.ssh/identity type -1
debug1: identity file /home/i32lelor/.ssh/id_rsa type 1
debug1: identity file /home/i32lelor/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'miservidor' is known and matches the RSA host key.
debug1: Found key in /home/i32lelor/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/i32lelor/.ssh/identity
debug1: Offering public key: /home/i32lelor/.ssh/id_rsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/i32lelor/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:




Bueno al final di con el problema, leyendo por google varios dias, imaginarios que en el servidor tengo la carpeta /home/usuario, este directorio debe de tener permisos 700 y no 755.

Al tener 755 el sshd pasa del metodo de identificacion de llave pública/privada y pasa directamente a pedir el passwor de la cuenta de sesion en el servidor. Con 700 todo vuelve a la normalidad.

	Se ve que el sshd es exigente con los permisos.




Reply to: