Can't login via SSH using Expect

Hi Volumio Comunity I’m reporting a issue that I’m have related with the ssh config. I have a luks volume connected to my raspberry pi 2 (Is slow but he got plenty of time), my goal is use sftp and sync some files from other computers. To open and close the encryption of the drive for that I want to use Expect, the script is being executed from another Raspberry Pi. I already activated the ssh and used ssh-keygen -t rsa and ssh-copy-id volumio@<IP ADRESS> to have the credentials to open via ssh without password but it keeps printing:

Pseudo-terminal will not be allocated because stdin is not a terminal.
Permission denied, please try again.
Permission denied, please try again.
volumio@: Permission denied (publickey,password).

If I input the password manually using an ssh connect over another another ssh connect it give me the error. I need this because to use Expect he “opens another” terminal to input all the commands but it gets stuck in this error.
I change the sudo nano /etc/ssh/sshd_config and add the line PasswordAuthentication yes to force the password authentication but got the same result.

Am I missing something?

Best regards, thanks in advance.

use winscp or putty and use volumio as name and as password :stuck_out_tongue:

I think it is ssh-keygen -R ipadresraspberry

Thank you but was already changed with passwd. In think is really about how the ssh is constructed in volumio.