0

After setting up user's public key, still being asked for password to transfer

The instruction on Aspera Enterprise Server Admin Guide is not complete.
Following instruction “Setting Up a User's Public Key”, I tested the transfer by using public key authorization but still being asked to enter the password for user.
I found error message from /var/log/secure file,
sshd[23396]: Authentication refused: bad ownership or modes for directory /home/aspera_user_1/.ssh
sshd[23700]: Authentication refused: bad ownership or modes for directory /home/aspera_user_1
You need to change the mode for key file, .ssh directory and home directory
750 for /home/aspera_user_1
$ ls -l /home
drwxr-x---. 8 aspera_user_1 aspera_user_1 4096 Feb 24 02:17 aspera_user_1

700 for /home/aspera_user_1/.ssh
$ ls -la /home/aspera_user_1
drwx------ 2 aspera_user_1 aspera_user_1 77 Feb 24 01:39 .ssh

644 for /home/aspera_user_1/.ssh/authorized_keys
$ ls -l /home/aspera_user_1/.ssh/authorized_keys
-rw-r--r-- 1 aspera_user_1 aspera_user_1 398 Feb 24 01:39 authorized_keys

This is how I made it work for Aspera running on RHEL and on Isilon OneFS.

 

1 comment

Please sign in to leave a comment.