Improve both do and sudo shell script
This commit is contained in:
5
do.sh
5
do.sh
@@ -7,8 +7,9 @@ ssh_clean ()
|
||||
|
||||
ssh_exec ()
|
||||
{
|
||||
ssh -p 4242 -l ${USER} -o StrictHostKeyChecking=no 127.0.0.1 $@ 2>&1 \
|
||||
| grep -v -e 'Warning: Permanently added'
|
||||
export SSHPASS="${SSHPASS-Born2beRoot}"
|
||||
./ssh.exp -p 4242 ${USER}@127.0.0.1 $@ 2>&1 \
|
||||
| grep -v -i -e '^Warning: Permanently added' -e ' password:' -e '^spawn ssh'
|
||||
}
|
||||
|
||||
main ()
|
||||
|
||||
Reference in New Issue
Block a user