Quantcast
Channel: Active questions tagged password - Ask Ubuntu
Viewing all articles
Browse latest Browse all 332

ssh connection fails with and without rsa keys

$
0
0

I've got a machine running Ubuntu in the office.I've got a machine running Mint at home.My goal is to be able to work from home connecting to the office with ssh.

I swear i tried to look for similar errors in the forum but they all were to me different or the solution was weird to me. Please be patient with me.

what i did:

i took my personal home laptop at work to configure it correctly.

purged from both machines ssh

installed them again

tried to ssh from client (personal laptop) to server (work machine)it doesn't work. It seems not able to recognize my password.

stefania@host's password: Permission denied, please try again.stefania@host's password: Permission denied, please try again.stefania@host's password: Permission denied (publickey,password)

tried then to avoid the issue using rsa keys for authentication

ssh-keygen -t rsa on the client

left with no passphrase

ssh-copy-id wouldn't work (with the same password issue -of course-) so i manually generated the authorized_keys file on the server side transferring the client id_rsa.pub with a pendrive and made sure it was chmod 600 and chmod 700 on both ~/.ssh folders.

all the config files (/etc/ssh/ssh_config and /etc/ssh/sshd_config) are untouched and therefore set as default and rsakey authentication is enabled.(Just to make crystal clear i didn't have errors in them i compared both files with the ones by a friend which is actually able to ssh connect and they are the same)

retried

ssh -vvv name@host 

(i'll post only the interesting bits)

OpenSSH_6.2p2 Ubuntu-6ubuntu0.4, OpenSSL 1.0.1e 11 Feb 2013debug1: Reading configuration data /etc/ssh/ssh_configdebug1: /etc/ssh/ssh_config line 19: Applying options for *debug2: ssh_connect: needpriv 0debug1: Connecting to hostip [hostip] port 22.debug1: Connection established.debug3: Incorrect RSA1 identifierdebug3: Could not load "/home/clientuser/.ssh/id_rsa" as a RSA1 public keydebug1: identity file /home/clientuser/.ssh/id_rsa type 1debug1: Server host key: RSA 78:0e:41:cd:69:50:e5:25:b3:98:0d:c1:cb:37:69:c6debug3: load_hostkeys: loading entries for host "hostip" from file "/home/clientuser/.ssh/known_hosts"debug3: load_hostkeys: found key type RSA in file /home/clientuser/.ssh/known_hosts:1debug3: load_hostkeys: loaded 1 keysdebug1: Host 'hostip' is known and matches the RSA host key.debug1: Found key in /home/clientuser/.ssh/known_hosts:1debug2: bits set: 557/1024debug1: ssh_rsa_verify: signature correctdebug2: kex_derive_keysdebug2: set_newkeys: mode 1debug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug2: set_newkeys: mode 0debug1: SSH2_MSG_NEWKEYS receiveddebug1: Roaming not allowed by serverdebug1: SSH2_MSG_SERVICE_REQUEST sentdebug2: service_accept: ssh-userauthdebug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug2: key: /home/clientuser/.ssh/id_rsa (0x7f8c00e1c690),debug2: key: /home/clientuser/.ssh/id_dsa ((nil)),debug2: key: /home/clientuser/.ssh/id_ecdsa ((nil)),debug3: input_userauth_bannerdebug1: Authentications that can continue: publickey,passworddebug3: start over, passed a different list publickey,passworddebug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,passworddebug3: authmethod_lookup publickeydebug3: remaining preferred: keyboard-interactive,passworddebug3: authmethod_is_enabled publickeydebug1: Next authentication method: publickeydebug1: Offering RSA public key: /home/clientuser/.ssh/id_rsadebug3: send_pubkey_testdebug2: we sent a publickey packet, wait for replydebug1: Authentications that can continue: publickey,passworddebug1: Trying private key: /home/clientuser/.ssh/id_dsadebug3: no such identity: /home/clientuser/.ssh/id_dsa: No such file or directorydebug1: Trying private key: /home/clientuser/.ssh/id_ecdsadebug3: no such identity: /home/clientuser/.ssh/id_ecdsa: No such file or directorydebug2: we did not send a packet, disable methoddebug3: authmethod_lookup passworddebug3: remaining preferred: ,passworddebug3: authmethod_is_enabled passworddebug1: Next authentication method: passwordserveruser@hostip's password: 

the server side fails to find the key and propmpts for a password which doesn't work as mentioned.

i'm lost. many thanks


Viewing all articles
Browse latest Browse all 332

Trending Articles