ssh remote over gateway
sshpass -p gatewaypwd -t user@gateway sshpass -p targetpwd ssh user2@target
this is the origin command,and i am put it to my alias. it run well.
but now the target host's password contains single quotes
such as
sshpass -p gatewaypwd -t user@gateway sshpass -p target'pwd ssh user2@target
the command can not run well.
i did try to escape it by \'
,\\\'
and other method ,but neither success.
how to escape the quotes.