cnsftp: Merge into cnssh

This commit is contained in:
David Thurstenson 2021-05-06 14:39:22 -05:00
parent c2ddb0184a
commit db7a784d9f
2 changed files with 15 additions and 13 deletions

View File

@ -1,13 +0,0 @@
cnsftp() {
local uname="Crestron"
local pass=""
local cmd="$@"
sshpass -p "$pass" sftp \
-o StrictHostKeyChecking=no\
-o GlobalKnownHostsFile=/dev/null\
-o UserKnownHostsFile=/dev/null\
-o LogLevel=ERROR\
-o User="$uname" \
"$cmd"
}

View File

@ -101,3 +101,18 @@ cnssh() { # Helper for sshing into Crestron devices
# Main
####
}
cnsftp() {
local uname="Crestron"
local pass=""
local cmd="$@"
sshpass -p "$pass" sftp \
-o StrictHostKeyChecking=no\
-o GlobalKnownHostsFile=/dev/null\
-o UserKnownHostsFile=/dev/null\
-o LogLevel=ERROR\
-o User="$uname" \
"$cmd"
}