I am trying to setup SSH public keys to login to my GoFlex Home 2TB. These are the steps I took
- Copy my public key to
/home/user/.ssh/authorized_keys - Modify
/etc/ssh/sshd_configto allow public key authentication and point to theauthorized_keysfile - End the SSH session
- login to
goflexhome.loaland reboot the NAS device
Details of the client system:
- OS: Linux Mint 17.3
- Network type: LAN (Ethernet)
Details of the host system (NAS)
- OS: hipserv2 (Linux based by Seagate, default OS in GoFlex Home)
When I try to initiate the ssh session I get a password prompt instead of using my private key to login
File Permissions at /home/user/.ssh
-bash-3.2$ ls -la
total 4
drwxr-xr-x 2 user root 232 Mar 18 16:49 .
dr-xr-x--- 7 user www 616 Mar 18 16:48 ..
-rwxr-xr-x 1 user root 746 Mar 18 16:49 authorized_keys
-bash-3.2$
SSH verbose
Full PasteBin.
Excerpt:
ssh -v user_hipserv2_seagateplug_XXXX-XXXX-XXXX-XXXX@goflexhome.local
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
...
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
...
debug1: Next authentication method: publickey
debug1: Offering RSA public key: user@user-system
debug1: Server accepts key: pkalg ssh-rsa blen 535
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: /home/user/.ssh/id_rsa
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: Next authentication method: password
user_hipserv2_seagateplug_XXX@goflexhome.local's password:
debug1: Authentication succeeded (password).
Authenticated to goflexhome.local ([10.42.0.12]:22).
sshd_configare you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS devicels -al /home/user/.ssh– MelBurslan Mar 18 '16 at 18:54ls -al /home/user/.sshwhere user needs to be replaced by your username on hipserv2 box – MelBurslan Mar 18 '16 at 20:01