Ssh config ‘Missing target argument’

ssh

I'm trying to run the equivalent of this:


ssh -L 4200:localhost:4243 root@192.168.1.4

In an SSH Config file:

Host crashplan
HostName 192.168.1.4
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 :-)