I would like using ssh tunneling options. For that purpose I use command:ssh -L 1234:localhost:5678 hosthowever this logs me into the shell on remote host. Next I tried -f as: ssh -f -L 8999:localhost:6006 hostbut I get error Cannot fork into background without a command to execute.How can I get only ssh tunneling capabilities and running it in background without unnecessary clutter. My ssh version is OpenSSH_7.2p2, OpenSSL 1.0.2h  3 May 2016
Cannot tunnel over ssh without command/getting shell
ssh;ssh tunneling;openssh
Use the -N option  -N      Do not execute a remote command.  This is useful for just for-         warding ports (protocol version 2 only).Examplessh -fN -L 8999:localhost:6006 host