transferring several commands from private repo
This commit is contained in:
9
web/ssh-nosave
Executable file
9
web/ssh-nosave
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$1" = "-h" ]]; then
|
||||
echo "Set options to not use host key checking, and pass all commands to 'ssh'."
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
exec ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"
|
||||
Reference in New Issue
Block a user