5,337
edits
Line 110: | Line 110: | ||
;Notes | ;Notes | ||
* You can also run this without creating a shell using <code>-N</code> See [https://unix.stackexchange.com/questions/100859/ssh-tunnel-without-shell-on-ssh-server SE Answer]. | * You can also run this without creating a shell using <code>-N</code>. This will block your shell. See [https://unix.stackexchange.com/questions/100859/ssh-tunnel-without-shell-on-ssh-server SE Answer]. | ||
* Adding <code>-f</code> pushes ssh to the background. | * Adding <code>-f</code> pushes ssh to the background. | ||
** This will implicitly add <code>-n</code> which redirects <code>stdin</code> from <code>/dev/null</code>. | ** This will implicitly add <code>-n</code> which redirects <code>stdin</code> from <code>/dev/null</code>. | ||
** If you want to be able to foreground this again, the use <code>&</code> or <kbd>Ctrl</kbd>+<kbd>z</kbd> instead. | |||
===alias=== | ===alias=== |