Adding small tweaks to cnssh and cnsftp
This commit is contained in:
parent
f3176367f1
commit
7741b91ce5
|
@ -1,5 +1,4 @@
|
|||
cnsftp() {
|
||||
# sshpass -p "" ssh Crestron@192.168.0.51
|
||||
local uname="Crestron"
|
||||
local pass=""
|
||||
local cmd="$@"
|
||||
|
@ -8,6 +7,7 @@ cnsftp() {
|
|||
-o StrictHostKeyChecking=no\
|
||||
-o GlobalKnownHostsFile=/dev/null\
|
||||
-o UserKnownHostsFile=/dev/null\
|
||||
-o LogLevel=ERROR\
|
||||
-o User="$uname" \
|
||||
"$cmd"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
cnssh() {
|
||||
# Usage: cnssh <ip address> [command]
|
||||
# sshpass -p "" ssh Crestron@192.168.0.51
|
||||
local uname="Crestron"
|
||||
local pass=""
|
||||
local addr="$1"
|
||||
|
@ -11,5 +10,7 @@ cnssh() {
|
|||
-o StrictHostKeyChecking=no\
|
||||
-o GlobalKnownHostsFile=/dev/null\
|
||||
-o UserKnownHostsFile=/dev/null\
|
||||
"$uname"@"$addr" "$cmd"
|
||||
-o LogLevel=ERROR\
|
||||
-o User="$uname"\
|
||||
"$addr" "$cmd"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue