PDA

View Full Version : [ubuntu] Sftp


sprouty
August 12th, 2009, 09:24 AM
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 message:Permission denied (publickey,gssapi-with-mic,password).

anyone got a quick fix or different method?

cheers,
sprouty

sprouty
August 13th, 2009, 01:33 AM
anyone?

DaithiF
August 13th, 2009, 12:50 PM
just a guess ... do you really need the newline after the password?