When I run ssh from the command line I get these options:
localhost / # ssh
ssh
Dropbear client v0.53.1
Usage: ssh [options] [[email protected]]host[/port][,[[email protected]]host/port],...] [command]
Options are:
-p <remoteport>
-l <username>
-t Allocate a pty
-T Don't allocate a pty
-N Don't run a remote command
-f Run in background after auth
-y Always accept remote host key if unknown
-s Request a subsystem (use for sftp)
-i <identityfile> (multiple allowed)
-A Enable agent auth forwarding
-L <[listenaddress:]listenport:remotehost:remoteport> Local port forwarding
-g Allow remote hosts to connect to forwarded ports
-R <[listenaddress:]listenport:remotehost:remoteport> Remote port forwarding
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
-K <keepalive> (0 is never, default 0)
-I <idle_timeout> (0 is never, default 0)
-B <endhost:endport> Netcat-alike forwarding
-J <proxy_program> Use program pipe rather than TCP connection
-v verbose (compiled with DEBUG_TRACE)
The command to execute an SSH tunnel is:
ssh -fN [email protected] -L 2222:linux.test.com:22
But on my phone the output is:
localhost / # ssh -fN [email protected] -L 2222:linux.test.com:22
ssh -fN [email protected] -L 2222:linux.test.com:22
ssh: Exited: Command required for -f
Since when is a command required for -f?
localhost / # ssh
ssh
Dropbear client v0.53.1
Usage: ssh [options] [[email protected]]host[/port][,[[email protected]]host/port],...] [command]
Options are:
-p <remoteport>
-l <username>
-t Allocate a pty
-T Don't allocate a pty
-N Don't run a remote command
-f Run in background after auth
-y Always accept remote host key if unknown
-s Request a subsystem (use for sftp)
-i <identityfile> (multiple allowed)
-A Enable agent auth forwarding
-L <[listenaddress:]listenport:remotehost:remoteport> Local port forwarding
-g Allow remote hosts to connect to forwarded ports
-R <[listenaddress:]listenport:remotehost:remoteport> Remote port forwarding
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
-K <keepalive> (0 is never, default 0)
-I <idle_timeout> (0 is never, default 0)
-B <endhost:endport> Netcat-alike forwarding
-J <proxy_program> Use program pipe rather than TCP connection
-v verbose (compiled with DEBUG_TRACE)
The command to execute an SSH tunnel is:
ssh -fN [email protected] -L 2222:linux.test.com:22
But on my phone the output is:
localhost / # ssh -fN [email protected] -L 2222:linux.test.com:22
ssh -fN [email protected] -L 2222:linux.test.com:22
ssh: Exited: Command required for -f
Since when is a command required for -f?