You could write a small script that does something like:
Code:
#!/bin/bash
echo "Readlly?"
read choice
if [ $choice == "Y" ]; then
/usr/bin/ssh $1
fi
Let's say you call it /home/rizwan/tmp/my_ssh.
Do:
Code:
alias ssh='/home/rizwan/tmp/my_ssh'
And you should be ok. You can further enhance my_ssh by sending all its parameters to the real ssh command.
Probably there are better ways but I would do that :-)