Ssh config ‘Missing target argument’


I'm trying to run the equivalent of this:

ssh -L 4200:localhost:4243 root@

In an SSH Config file:

Host crashplan
LocalForward 4200:localhost:4243
User root

But when I run ssh crashplan I get the error:

line 4: Missing target argument.

Best Answer

Valid config format is this:

LocalForward localhost:4200 localhost:4243

I have solved the same issue right now :-)