My shell portfolio begins
This commit is contained in:
10
custom_ssh_handler.sh
Normal file
10
custom_ssh_handler.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
function custom_ssh()
|
||||
{
|
||||
CUSTOMSSH_USER=$1
|
||||
CUSTOMSSH_HOST=$2
|
||||
CUSTOMSSH_COMMAND=$3
|
||||
|
||||
SSH_TARGET="$CUSTOMSSH_USER@$CUSTOMSSH_HOST"
|
||||
ssh -q -t -o StrictHostKeyChecking=no -i $SSH_KEY $SSH_TARGET "$CUSTOMSSH_COMMAND"
|
||||
}
|
||||
|
Reference in New Issue
Block a user