cnsftp: Merge into cnssh
This commit is contained in:
parent
c2ddb0184a
commit
db7a784d9f
|
@ -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"
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue