Hi,
I'm trying to upload some files to a sftp server, and keep having problem when connection due to the promt with password. so far i have got this
#!/usr/bin/expect
spawn sftp -b /home/user/sendfiles.txt username@ipaddress <<-EOF
expect "password:"
send "passwrod\n";
interact
but come back with this error messageermission denied (publickey,gssapi-with-mic,password).
anyone got a quick fix or different method? this is currently running on ubuntu server.
cheers,
sprouty