X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8cee3b72e807bc6cea6237e904c42f754a537311..fd66175e28ee5fd0ff15fa4b3439278e97a22712:/doc/using.but diff --git a/doc/using.but b/doc/using.but index 43fb3441..8a0392e2 100644 --- a/doc/using.but +++ b/doc/using.but @@ -1,4 +1,4 @@ -\versionid $Id: using.but,v 1.11 2003/01/16 15:43:18 jacob Exp $ +\versionid $Id: using.but,v 1.15 2003/07/16 08:28:31 jacob Exp $ \C{using} Using PuTTY @@ -62,6 +62,12 @@ mouse button does this instead.) Click the button on the screen, and you can pick up the nearest end of the selection and drag it to somewhere else. +It's possible for the server to ask to handle mouse clicks in the +PuTTY window itself. If this happens, the mouse cursor will turn +into an arrow, and copy and paste will only work if you hold down +Shift. See \k{config-features-mouse} and \k{config-mouseshift} for +details of this feature and how to configure it. + \S{using-scrollback} Scrolling the screen back PuTTY keeps track of text that has scrolled up off the top of the @@ -71,7 +77,8 @@ look for it, you can use the scrollbar on the right side of the window to look back up the session history and find it again. As well as using the scrollbar, you can also page the scrollback up -and down by pressing Shift-PgUp and Shift-PgDn. These are still +and down by pressing Shift-PgUp and Shift-PgDn. You can scroll a +line at a time using Ctrl-PgUp and Ctrl-PgDn. These are still available if you configure the scrollbar to be invisible. By default the last 200 lines scrolled off the top are @@ -293,15 +300,25 @@ To do this, just select the \q{Remote} radio button instead of the number on the \e{server} (note that most servers will not allow you to use port numbers under 1024 for this purpose). +An alternative way to forward local connections to remote hosts is +to use dynamic SOCKS proxying. For this, you will need to select the +\q{Dynamic} radio button instead of \q{Local}, and then you should +not enter anything into the \q{Destination} box (it will be +ignored). This will cause PuTTY to listen on the port you have +specified, and provide a SOCKS proxy service to any programs which +connect to that port. So, in particular, you can forward other PuTTY +connections through it by setting up the Proxy control panel (see +\k{config-proxy} for details). + The source port for a forwarded connection usually does not accept connections from any machine except the SSH client or server machine itself (for local and remote forwardings respectively). There are controls in the Tunnels panel to change this: \b The \q{Local ports accept connections from other hosts} option -allows you to set up local-to-remote port forwardings in such a way -that machines other than your client PC can connect to the forwarded -port. +allows you to set up local-to-remote port forwardings (including +dynamic port forwardings) in such a way that machines other than +your client PC can connect to the forwarded port. \b The \q{Remote ports do the same} option does the same thing for remote-to-local port forwardings (so that machines other than the @@ -444,7 +461,7 @@ These options are equivalent to the username selection box in the Connection panel of the PuTTY configuration box (see \k{config-username}). -\S2{using-cmdline-portfwd} \c{-L} and \c{-R}: set up port forwardings +\S2{using-cmdline-portfwd} \c{-L}, \c{-R} and \c{-D}: set up port forwardings As well as setting up port forwardings in the PuTTY configuration (see \k{config-ssh-portfwd}), you can also set up forwardings on the @@ -458,12 +475,18 @@ one of these: \c putty -L 5110:popserver.example.com:110 -load mysession \c plink mysession -L 5110:popserver.example.com:110 -And to forward a remote port to a local destination, just use the -\c{-R} option instead of \c{-L}: +To forward a remote port to a local destination, just use the \c{-R} +option instead of \c{-L}: \c putty -R 5023:mytelnetserver.myhouse.org:23 -load mysession \c plink mysession -R 5023:mytelnetserver.myhouse.org:23 +To set up SOCKS-based dynamic port forwarding on a local port, use +the \c{-D} option. For this one you only have to pass the port +number: + +\c putty -D 4096 -load mysession + For general information on port forwarding, see \k{using-port-forwarding}. @@ -476,7 +499,7 @@ file The \c{-m} option performs a similar function to the \q{Remote command} box in the SSH panel of the PuTTY configuration box (see \k{config-command}). However, the \c{-m} option expects to be given -a file name, and it will read a command from that file. On most Unix +a local file name, and it will read a command from that file. On most Unix systems, you can even put multiple lines in this file and execute more than one command in sequence, or a whole shell script.