The
-f switch instructs the ssh client to fork the ssh
session to the background. Therefore, we remain at our local terminal’s
prompt, from where we can execute more commands on our local machine. However, the
-f switch has one requirement. It cannot be used on its own. It needs to be accompanied either by the
-N switch or we have to execute a specific command on the remote machine.
Dipin Krishna