I have to transfer an audio file recorded with the robot NAO into my pc for further operation regarding the speech emotion recognition. someone know how I can do it through a script python and not through Coreograph. Thanks. This is the code i wrote:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname = "192.168.1.131", username = 'username-here', password = 'password-here')
log.info("Provo a ad aprire la connessine sftp")
sftp = ssh.open_sftp()
localpath = 'C:/Users/alexx/Desktop/prova/provaAudioNao.wav'
remotepath = '"/home/nao/test.wav"'
sftp.get(remotepath, localpath)
sftp.close()
ssh.close()
but this exception is thrown:
paramiko.ssh_exception.BadAuthenticationType: Bad authentication type; allowed types: [u'publickey', u'keyboard-interactive']
Someone know how to solve it?