/usr/share/sadms-2.0.15/scp.expect is in sadms 2.0.15.repack-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # bbou@ac-toulouse.fr
# 2005-08-15 08:23:21
# expect-scp
set HOST [lindex $argv 0]
set USER [lindex $argv 1]
set PASSPHRASE [lindex $argv 2]
set SOURCE [lindex $argv 3]
set DESTINATION [lindex $argv 4]
set timeout -1
log_user 0
spawn scp -o PreferredAuthentications=password,keyboard-interactive ${SOURCE} ${USER}@${HOST}:${DESTINATION}
expect {
"Are you sure you want to continue connecting (yes/no)?"
{
send "yes\n"
exp_continue
}
"password:" {
send "$PASSPHRASE\n"
}
"Password:" {
send "$PASSPHRASE\n"
}
}
expect {
"\n"
"\r"
}
log_user 1
expect eof
|