There are a few local servers for which I do not want SSH signature validation. Found the following method to do that:
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@host
Now, I don't want all my profiles cluttered with the bits before user@host, so I have defined an alias as shown below and added that to /etc/bashrc (on MacOS 10.7.5).
alias ssh='/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
I can confirm that the alias works fine when I run 'ssh
ro...@192.168.1.30' from a regular shell.
Now, whenever I launch a profile show setup is to use a Command, e.g., 'ssh
ro...@192.168.1.30', I get the following error:
## exec failed ##
argpath=sshm error=No such file or directory
How can I use an alias to start an SSH session without the error shown above?
Thank you ...