1

I am trying to do some ssh based git clone. While at it, I ran into a ssh command syntax some of which I don't understand:

ssh -i $pwd/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "\$@"

What is this "\$@"?

Thanks!

1 Answer 1

4

$@ means all the parameters passed to the script, but this may be interpretted too early.

For passing it originally to ssh params, you need to escape it, and the simplest way is to escape the $ sign, which results in "\$@".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .