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 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to hostip [hostip] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/clientuser/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/clientuser/.ssh/id_rsa type 1
debug1: Server host key: RSA 78:0e:41:cd:69:50:e5:25:b3:98:0d:c1:cb:37:69:c6
debug3: 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:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'hostip' is known and matches the RSA host key.
debug1: Found key in /home/clientuser/.ssh/known_hosts:1
debug2: bits set: 557/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: 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_banner
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/clientuser/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/clientuser/.ssh/id_dsa
debug3: no such identity: /home/clientuser/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/clientuser/.ssh/id_ecdsa
debug3: no such identity: /home/clientuser/.ssh/id_ecdsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
serveruser@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