|
cnsftp() {
|
|
# sshpass -p "" ssh Crestron@192.168.0.51
|
|
local uname="Crestron"
|
|
local pass=""
|
|
local cmd="$@"
|
|
|
|
sshpass -p "$pass" sftp \
|
|
-o StrictHostKeyChecking=no\
|
|
-o GlobalKnownHostsFile=/dev/null\
|
|
-o UserKnownHostsFile=/dev/null\
|
|
-o User="$uname" \
|
|
"$cmd"
|
|
}
|