2019-12-11 17:46:30 +00:00
|
|
|
cnsftp() {
|
|
|
|
local uname="Crestron"
|
|
|
|
local pass=""
|
|
|
|
local cmd="$@"
|
|
|
|
|
|
|
|
sshpass -p "$pass" sftp \
|
|
|
|
-o StrictHostKeyChecking=no\
|
|
|
|
-o GlobalKnownHostsFile=/dev/null\
|
|
|
|
-o UserKnownHostsFile=/dev/null\
|
2019-12-12 20:16:33 +00:00
|
|
|
-o LogLevel=ERROR\
|
2019-12-11 17:46:30 +00:00
|
|
|
-o User="$uname" \
|
|
|
|
"$cmd"
|
|
|
|
}
|