Hex Artifact Content
Not logged in

Artifact d33c4e260b38c24c8b15dcb882052fc752c09910:

Wiki page [port-forwarding] by sandro 2018-07-15 16:21:23.
0000: 44 20 32 30 31 38 2d 30 37 2d 31 35 54 31 36 3a  D 2018-07-15T16:
0010: 32 31 3a 32 33 2e 33 35 38 0a 4c 20 70 6f 72 74  21:23.358.L port
0020: 2d 66 6f 72 77 61 72 64 69 6e 67 0a 50 20 37 37  -forwarding.P 77
0030: 38 65 63 63 65 63 61 35 33 64 38 64 30 35 35 65  8ecceca53d8d055e
0040: 31 35 34 38 37 61 30 35 35 35 66 66 35 30 32 35  15487a0555ff5025
0050: 38 64 32 62 36 66 0a 55 20 73 61 6e 64 72 6f 0a  8d2b6f.U sandro.
0060: 57 20 39 39 37 39 0a 42 61 63 6b 20 74 6f 20 74  W 9979.Back to t
0070: 68 65 20 3c 62 3e 56 69 72 74 75 61 6c 50 47 3c  he <b>VirtualPG<
0080: 2f 62 3e 20 3c 61 20 68 72 65 66 3d 22 68 74 74  /b> <a href="htt
0090: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69  ps://www.gaia-gi
00a0: 73 2e 69 74 2f 66 6f 73 73 69 6c 2f 76 69 72 74  s.it/fossil/virt
00b0: 75 61 6c 70 67 2f 77 69 6b 69 3f 6e 61 6d 65 3d  ualpg/wiki?name=
00c0: 74 75 74 6f 72 69 61 6c 22 3e 74 75 74 6f 72 69  tutorial">tutori
00d0: 61 6c 3c 2f 61 3e 0d 0a 3c 62 72 3e 3c 62 72 3e  al</a>..<br><br>
00e0: 0d 0a 3c 68 32 3e 43 6f 6e 6e 65 63 74 69 6e 67  ..<h2>Connecting
00f0: 20 74 6f 20 61 20 72 65 6d 6f 74 65 20 50 6f 73   to a remote Pos
0100: 74 67 72 65 53 51 4c 20 73 65 72 76 65 72 20 76  tgreSQL server v
0110: 69 61 20 50 6f 72 74 20 46 6f 72 77 61 72 64 69  ia Port Forwardi
0120: 6e 67 20 2f 20 53 53 48 20 54 75 6e 6e 65 6c 69  ng / SSH Tunneli
0130: 6e 67 3c 2f 68 32 3e 0d 0a 54 68 65 20 77 65 6c  ng</h2>..The wel
0140: 6c 20 6b 6e 6f 77 6e 20 3c 62 3e 53 53 48 3c 2f  l known <b>SSH</
0150: 62 3e 20 28 3c 69 3e 3c 62 3e 53 3c 2f 62 3e 65  b> (<i><b>S</b>e
0160: 63 75 72 65 20 3c 62 3e 53 48 3c 2f 62 3e 65 6c  cure <b>SH</b>el
0170: 6c 3c 2f 69 3e 29 20 3c 61 20 68 72 65 66 3d 22  l</i>) <a href="
0180: 68 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70  https://en.wikip
0190: 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 53 65  edia.org/wiki/Se
01a0: 63 75 72 65 5f 53 68 65 6c 6c 22 3e 70 72 6f 74  cure_Shell">prot
01b0: 6f 63 6f 6c 3c 2f 61 3e 20 69 73 20 76 65 72 79  ocol</a> is very
01c0: 20 66 72 65 71 75 65 6e 74 6c 79 20 61 64 6f 70   frequently adop
01d0: 74 65 64 20 62 79 20 73 79 73 74 65 6d 20 61 64  ted by system ad
01e0: 6d 69 6e 69 73 74 72 61 74 6f 72 73 20 66 6f 72  ministrators for
01f0: 20 65 73 74 61 62 6c 69 73 68 69 6e 67 20 73 61   establishing sa
0200: 66 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 20 74  fe connections t
0210: 6f 20 72 65 6d 6f 74 65 20 73 65 72 76 65 72 73  o remote servers
0220: 2e 3c 62 72 3e 0d 0a 53 53 48 20 61 75 74 6f 6d  .<br>..SSH autom
0230: 61 74 69 63 61 6c 6c 79 20 65 6e 63 72 79 70 74  atically encrypt
0240: 73 20 61 6c 6c 20 74 68 65 20 74 72 61 66 66 69  s all the traffi
0250: 63 20 62 65 74 77 65 65 6e 20 74 68 65 20 6c 6f  c between the lo
0260: 63 61 6c 20 50 43 20 61 6e 64 20 74 68 65 20 72  cal PC and the r
0270: 65 6d 6f 74 65 20 73 65 72 76 65 72 20 62 79 20  emote server by 
0280: 75 73 69 6e 67 20 73 74 72 6f 6e 67 20 63 72 79  using strong cry
0290: 70 74 6f 67 72 61 70 68 69 63 20 63 79 70 68 65  ptographic cyphe
02a0: 72 73 2c 20 74 68 75 73 20 61 6c 6c 6f 77 69 6e  rs, thus allowin
02b0: 67 20 66 6f 72 20 76 65 72 79 20 73 65 63 75 72  g for very secur
02c0: 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 20 6f 76  e connections ov
02d0: 65 72 20 74 68 65 20 69 6e 74 72 69 6e 73 69 63  er the intrinsic
02e0: 61 6c 6c 79 20 69 6e 73 65 63 75 72 65 20 49 6e  ally insecure In
02f0: 74 65 72 6e 65 74 2e 3c 62 72 3e 3c 62 72 3e 0d  ternet.<br><br>.
0300: 0a 59 6f 75 20 63 61 6e 20 75 73 65 20 53 53 48  .You can use SSH
0310: 20 61 6c 73 6f 20 66 6f 72 20 65 73 74 61 62 6c   also for establ
0320: 69 73 68 69 6e 67 20 73 61 66 65 20 63 6f 6e 6e  ishing safe conn
0330: 65 63 74 69 6f 6e 73 20 74 6f 20 72 65 6d 6f 74  ections to remot
0340: 65 20 50 6f 73 74 67 72 65 53 51 4c 20 73 65 72  e PostgreSQL ser
0350: 76 65 72 73 2c 20 62 75 74 20 74 68 69 73 20 72  vers, but this r
0360: 65 71 75 69 72 65 73 20 74 6f 20 61 63 74 69 76  equires to activ
0370: 61 74 65 20 73 6f 6d 65 20 73 70 65 63 69 61 6c  ate some special
0380: 20 53 53 48 20 66 65 61 74 75 72 65 20 6b 6e 6f   SSH feature kno
0390: 77 6e 20 61 73 20 3c 61 20 68 72 65 66 3d 22 68  wn as <a href="h
03a0: 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65  ttps://en.wikipe
03b0: 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 50 6f 72  dia.org/wiki/Por
03c0: 74 5f 66 6f 72 77 61 72 64 69 6e 67 22 3e 70 6f  t_forwarding">po
03d0: 72 74 20 66 6f 72 77 61 72 64 69 6e 67 3c 2f 61  rt forwarding</a
03e0: 3e 20 61 6b 61 20 3c 61 20 68 72 65 66 3d 22 68  > aka <a href="h
03f0: 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65  ttps://en.wikipe
0400: 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 54 75 6e  dia.org/wiki/Tun
0410: 6e 65 6c 69 6e 67 5f 70 72 6f 74 6f 63 6f 6c 22  neling_protocol"
0420: 3e 53 53 48 20 74 75 6e 6e 65 6c 69 6e 67 3c 2f  >SSH tunneling</
0430: 61 3e 2e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 72  a>.<br><br>..<hr
0440: 3e 20 0d 0a 3c 68 32 3e 42 61 73 69 63 20 63 6f  > ..<h2>Basic co
0450: 6e 63 65 70 74 73 3c 2f 68 32 3e 0d 0a 3c 69 6d  ncepts</h2>..<im
0460: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77  g src="https://w
0470: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67  ww.gaia-gis.it/g
0480: 61 69 61 2d 73 69 6e 73 2f 70 6f 72 74 2d 66 6f  aia-sins/port-fo
0490: 72 77 61 72 64 69 6e 67 2d 73 73 68 2d 74 75 6e  rwarding-ssh-tun
04a0: 6e 65 6c 2f 53 73 68 2d 70 6f 72 74 2d 66 6f 72  nel/Ssh-port-for
04b0: 77 61 72 64 69 6e 67 2e 70 6e 67 22 20 61 6c 74  warding.png" alt
04c0: 3d 22 70 6f 72 74 2d 66 6f 72 77 61 72 64 69 6e  ="port-forwardin
04d0: 67 22 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 3e  g"><br><br>..<b>
04e0: 54 68 65 20 70 72 6f 62 6c 65 6d 3c 2f 62 3e 3a  The problem</b>:
04f0: 20 79 6f 75 20 61 72 65 20 61 74 74 65 6d 70 74   you are attempt
0500: 69 6e 67 20 74 6f 20 65 73 74 61 62 6c 69 73 68  ing to establish
0510: 20 61 20 6e 65 74 77 6f 72 6b 20 63 6f 6e 6e 65   a network conne
0520: 63 74 69 6f 6e 20 62 65 74 77 65 65 6e 20 79 6f  ction between yo
0530: 75 72 20 6c 6f 63 61 6c 20 6d 61 63 68 69 6e 65  ur local machine
0540: 20 61 6e 64 20 61 20 72 65 6d 6f 74 65 20 73 65   and a remote se
0550: 72 76 65 72 20 6f 6e 20 49 50 20 50 6f 72 74 20  rver on IP Port 
0560: 3c 62 3e 36 36 36 37 3c 2f 62 3e 2e 3c 62 72 3e  <b>6667</b>.<br>
0570: 0d 0a 42 75 74 20 74 68 65 20 46 69 72 65 77 61  ..But the Firewa
0580: 6c 6c 20 66 6f 72 62 69 64 73 20 61 6e 79 20 63  ll forbids any c
0590: 6f 6e 6e 65 63 74 69 6f 6e 20 74 6f 20 70 6f 72  onnection to por
05a0: 74 20 36 36 36 37 20 28 72 65 70 72 65 73 65 6e  t 6667 (represen
05b0: 74 65 64 20 69 6e 20 74 68 65 20 61 62 6f 76 65  ted in the above
05c0: 20 66 69 67 75 72 65 20 62 79 20 74 68 65 20 3c   figure by the <
05d0: 69 3e 3c 62 3e 72 65 64 20 61 72 72 6f 77 3c 2f  i><b>red arrow</
05e0: 62 3e 3c 2f 69 3e 29 3b 20 61 6e 64 20 74 68 65  b></i>); and the
05f0: 72 65 20 69 73 20 61 20 76 65 72 79 20 67 6f 6f  re is a very goo
0600: 64 20 72 65 61 73 6f 6e 20 66 6f 72 20 64 6f 69  d reason for doi
0610: 6e 67 20 74 68 69 73 2e 3c 62 72 3e 0d 0a 49 66  ng this.<br>..If
0620: 20 70 6f 72 74 20 36 36 36 37 20 77 61 73 20 65   port 6667 was e
0630: 6e 61 62 6c 65 64 20 74 6f 20 61 63 63 65 70 74  nabled to accept
0640: 20 61 6e 79 20 69 6e 63 6f 6d 69 6e 67 20 74 72   any incoming tr
0650: 61 66 66 69 63 20 66 72 6f 6d 20 74 68 65 20 6f  affic from the o
0660: 75 74 73 69 64 65 2c 20 74 68 69 73 20 77 6f 75  utside, this wou
0670: 6c 64 20 6f 70 65 6e 20 61 20 73 65 76 65 72 65  ld open a severe
0680: 20 73 65 63 75 72 69 74 79 20 62 72 65 61 63 68   security breach
0690: 2c 20 62 65 63 61 75 73 65 20 61 6e 79 6f 6e 65  , because anyone
06a0: 20 28 61 6e 64 20 6e 6f 74 20 79 6f 75 20 6f 6e   (and not you on
06b0: 6c 79 29 20 63 6f 75 6c 64 20 66 72 65 65 6c 79  ly) could freely
06c0: 20 63 6f 6e 6e 65 63 74 20 74 6f 20 74 68 65 20   connect to the 
06d0: 73 65 72 76 65 72 2e 3c 62 72 3e 0d 0a 45 76 65  server.<br>..Eve
06e0: 6e 20 77 6f 72 73 74 2c 20 74 68 65 20 74 72 61  n worst, the tra
06f0: 66 66 69 63 20 6f 76 65 72 20 74 68 65 20 63 6f  ffic over the co
0700: 6e 6e 65 63 74 69 6f 6e 20 63 6f 75 6c 64 20 62  nnection could b
0710: 65 20 6e 6f 74 20 63 79 70 68 65 72 65 64 20 28  e not cyphered (
0720: 6f 72 20 6f 6e 6c 79 20 77 65 61 6b 6c 79 20 63  or only weakly c
0730: 79 70 68 65 72 65 64 29 2c 20 61 6e 64 20 63 6f  yphered), and co
0740: 6e 73 65 71 75 65 6e 74 6c 79 20 76 65 72 79 20  nsequently very 
0750: 65 61 73 79 20 74 6f 20 62 65 20 6d 61 6c 69 63  easy to be malic
0760: 69 6f 75 73 6c 79 20 69 6e 74 65 72 63 65 70 74  iously intercept
0770: 65 64 20 6f 72 20 66 61 6c 73 69 66 69 65 64 2e  ed or falsified.
0780: 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 3e 54 68 65  <br><br>..<b>The
0790: 20 70 65 72 66 65 63 74 20 73 6f 6c 75 74 69 6f   perfect solutio
07a0: 6e 3c 2f 62 3e 3a 20 61 73 20 77 65 27 76 65 20  n</b>: as we've 
07b0: 61 6c 72 65 61 64 79 20 73 65 65 6e 2c 20 74 68  already seen, th
07c0: 65 20 53 53 48 20 70 72 6f 74 6f 63 6f 6c 20 77  e SSH protocol w
07d0: 61 73 20 69 6e 76 65 6e 74 65 64 20 66 6f 72 20  as invented for 
07e0: 65 6e 73 75 72 69 6e 67 20 73 61 66 65 20 6e 65  ensuring safe ne
07f0: 74 77 6f 72 6b 20 63 6f 6e 6e 65 63 74 69 6f 6e  twork connection
0800: 73 20 62 61 73 65 64 20 6f 6e 20 73 74 72 6f 6e  s based on stron
0810: 67 20 65 6e 63 72 79 70 74 69 6f 6e 2e 3c 62 72  g encryption.<br
0820: 3e 0d 0a 54 68 65 20 73 74 61 6e 64 61 72 64 20  >..The standard 
0830: 49 50 20 50 6f 72 74 20 66 6f 72 20 53 53 48 20  IP Port for SSH 
0840: 69 73 20 3c 62 3e 32 32 3c 2f 62 3e 2c 20 61 6e  is <b>22</b>, an
0850: 64 20 66 69 72 65 77 61 6c 6c 73 20 61 72 65 20  d firewalls are 
0860: 75 73 75 61 6c 6c 79 20 63 6f 6e 66 69 67 75 72  usually configur
0870: 65 64 20 73 6f 20 74 6f 20 61 6c 6c 6f 77 20 63  ed so to allow c
0880: 6f 6e 6e 65 63 74 69 6f 6e 73 20 6f 6e 20 70 6f  onnections on po
0890: 72 74 20 32 32 20 28 3c 69 3e 3c 62 3e 67 72 65  rt 22 (<i><b>gre
08a0: 65 6e 20 61 72 72 6f 77 3c 2f 62 3e 3c 2f 69 3e  en arrow</b></i>
08b0: 29 2e 3c 62 72 3e 0d 0a 53 6f 20 77 65 20 6a 75  ).<br>..So we ju
08c0: 73 74 20 72 65 71 75 69 72 65 20 73 6f 6d 65 20  st require some 
08d0: 61 70 70 72 6f 70 72 69 61 74 65 20 3c 69 3e 3c  appropriate <i><
08e0: 62 3e 6d 61 67 69 63 20 74 72 69 63 6b 3c 2f 62  b>magic trick</b
08f0: 3e 3c 2f 69 3e 20 63 61 70 61 62 6c 65 20 6f 66  ></i> capable of
0900: 20 3c 62 3e 74 75 6e 6e 65 6c 69 6e 67 3c 2f 62   <b>tunneling</b
0910: 3e 20 6f 75 72 20 6f 77 6e 20 74 72 61 66 66 69  > our own traffi
0920: 63 20 6f 76 65 72 20 61 6e 20 53 53 48 20 63 6f  c over an SSH co
0930: 6e 6e 65 63 74 69 6f 6e 2e 20 4c 65 74 27 73 20  nnection. Let's 
0940: 73 65 65 20 69 6e 20 66 75 6c 6c 20 64 65 74 61  see in full deta
0950: 69 6c 20 68 6f 77 20 69 74 20 77 6f 72 6b 73 3a  il how it works:
0960: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 6f 6e 20 79  ..<ul>..<li>on y
0970: 6f 75 72 20 6c 6f 63 61 6c 65 20 6d 61 63 68 69  our locale machi
0980: 6e 65 20 74 68 65 20 53 53 48 20 63 6c 69 65 6e  ne the SSH clien
0990: 74 20 77 69 6c 6c 20 73 74 61 72 74 20 6c 69 73  t will start lis
09a0: 74 65 6e 69 6e 67 20 61 74 20 70 6f 72 74 20 3c  tening at port <
09b0: 62 3e 31 32 33 34 3c 2f 62 3e 20 28 79 6f 75 20  b>1234</b> (you 
09c0: 63 6f 75 6c 64 20 61 63 74 75 61 6c 6c 79 20 66  could actually f
09d0: 72 65 65 6c 79 20 63 6f 6e 66 69 67 75 72 65 20  reely configure 
09e0: 61 6e 79 20 75 6e 75 73 65 64 20 49 50 20 50 6f  any unused IP Po
09f0: 72 74 2c 20 31 32 33 34 20 69 73 20 6a 75 73 74  rt, 1234 is just
0a00: 20 61 6e 20 65 78 61 6d 70 6c 65 29 2e 3c 2f 6c   an example).</l
0a10: 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 53 53 48 20  i>..<li>the SSH 
0a20: 63 6c 69 65 6e 74 20 77 69 6c 6c 20 65 6e 63 72  client will encr
0a30: 79 70 74 20 61 6e 79 20 64 61 74 61 20 72 65 63  ypt any data rec
0a40: 65 69 76 65 64 20 6f 6e 20 6c 6f 63 61 6c 20 70  eived on local p
0a50: 6f 72 74 20 31 32 33 34 2c 20 61 6e 64 20 77 69  ort 1234, and wi
0a60: 6c 6c 20 73 65 6e 64 20 74 68 65 20 72 65 73 75  ll send the resu
0a70: 6c 74 69 6e 67 20 74 72 61 66 66 69 63 20 74 6f  lting traffic to
0a80: 20 74 68 65 20 72 65 6d 6f 74 65 20 73 65 72 76   the remote serv
0a90: 65 72 20 6f 6e 20 74 68 65 20 73 74 61 6e 64 61  er on the standa
0aa0: 72 64 20 53 53 48 20 70 6f 72 74 2c 20 74 68 61  rd SSH port, tha
0ab0: 74 20 69 73 20 32 32 2e 3c 2f 6c 69 3e 0d 0a 3c  t is 22.</li>..<
0ac0: 6c 69 3e 74 68 65 20 53 53 48 20 73 65 72 76 65  li>the SSH serve
0ad0: 72 20 28 6f 6e 20 74 68 65 20 72 65 6d 6f 74 65  r (on the remote
0ae0: 20 6d 61 63 68 69 6e 65 29 20 77 69 6c 6c 20 65   machine) will e
0af0: 78 61 6d 69 6e 65 20 74 68 65 20 69 6e 63 6f 6d  xamine the incom
0b00: 69 6e 67 20 74 72 61 66 66 69 63 2c 20 61 6e 64  ing traffic, and
0b10: 20 77 69 6c 6c 20 72 65 63 6f 67 6e 69 7a 65 20   will recognize 
0b20: 61 20 74 75 6e 6e 65 6c 6c 65 64 20 72 65 71 75  a tunnelled requ
0b30: 65 73 74 2e 3c 62 72 3e 0d 0a 43 6f 6e 73 65 71  est.<br>..Conseq
0b40: 75 65 6e 74 6c 79 20 69 74 20 77 69 6c 6c 20 64  uently it will d
0b50: 65 63 69 70 68 65 72 20 74 68 65 20 65 6e 63 72  ecipher the encr
0b60: 79 70 74 65 64 20 6d 65 73 73 61 67 65 2c 20 61  ypted message, a
0b70: 6e 64 20 77 69 6c 6c 20 66 6f 72 77 61 72 64 20  nd will forward 
0b80: 74 68 65 20 70 6c 61 69 6e 20 64 61 74 61 20 74  the plain data t
0b90: 6f 20 6c 6f 63 61 6c 20 70 6f 72 74 20 3c 62 3e  o local port <b>
0ba0: 36 36 36 37 3c 2f 62 3e 2c 20 61 67 61 69 6e 20  6667</b>, again 
0bb0: 6f 6e 20 74 68 65 20 72 65 6d 6f 74 65 20 73 65  on the remote se
0bc0: 72 76 65 72 20 28 3c 69 3e 3c 62 3e 76 69 6f 6c  rver (<i><b>viol
0bd0: 65 74 20 61 72 72 6f 77 3c 2f 62 3e 3c 2f 69 3e  et arrow</b></i>
0be0: 29 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 73 79 6d  ).</li>..<li>sym
0bf0: 6d 65 74 72 69 63 61 6c 20 61 63 74 69 6f 6e 73  metrical actions
0c00: 20 77 69 6c 6c 20 68 61 70 70 65 6e 20 69 6e 20   will happen in 
0c10: 72 65 76 65 72 73 65 20 6f 72 64 65 72 20 66 6f  reverse order fo
0c20: 72 20 74 75 6e 6e 65 6c 69 6e 67 20 74 68 65 20  r tunneling the 
0c30: 73 65 72 76 65 72 27 73 20 72 65 73 70 6f 6e 73  server's respons
0c40: 65 20 74 6f 20 74 68 65 20 63 6c 69 65 6e 74 2e  e to the client.
0c50: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 66  </li>..<li>the f
0c60: 69 6e 61 6c 20 6e 65 74 20 65 66 66 65 63 74 20  inal net effect 
0c70: 6f 66 20 73 75 63 68 20 61 6e 20 3c 62 3e 3c 69  of such an <b><i
0c80: 3e 53 53 48 20 74 75 6e 6e 65 6c 3c 2f 69 3e 3c  >SSH tunnel</i><
0c90: 2f 62 3e 20 69 73 20 74 68 61 74 20 6e 6f 77 20  /b> is that now 
0ca0: 70 6f 72 74 20 3c 62 3e 31 32 33 34 3c 2f 62 3e  port <b>1234</b>
0cb0: 20 6f 6e 20 74 68 65 20 6c 6f 63 61 6c 20 6d 61   on the local ma
0cc0: 63 68 69 6e 65 20 77 69 6c 6c 20 62 65 20 3c 62  chine will be <b
0cd0: 3e 3c 69 3e 66 6f 72 77 61 72 64 65 64 3c 2f 69  ><i>forwarded</i
0ce0: 3e 3c 2f 62 3e 20 74 6f 20 70 6f 72 74 20 3c 62  ></b> to port <b
0cf0: 3e 36 36 36 37 3c 2f 62 3e 20 6f 6e 20 74 68 65  >6667</b> on the
0d00: 20 72 65 6d 6f 74 65 20 73 65 72 76 65 72 2c 20   remote server, 
0d10: 61 6e 64 20 76 69 63 65 20 76 65 72 73 61 2e 3c  and vice versa.<
0d20: 62 72 3e 0d 0a 74 68 65 20 53 53 48 20 70 72 6f  br>..the SSH pro
0d30: 74 6f 63 6f 6c 20 69 73 20 72 6f 62 75 73 74 6c  tocol is robustl
0d40: 79 20 63 79 70 68 65 72 65 64 2c 20 73 6f 20 73  y cyphered, so s
0d50: 75 63 68 20 61 20 63 6f 6e 6e 65 63 74 69 6f 6e  uch a connection
0d60: 20 69 73 20 69 6e 74 72 69 6e 73 69 63 61 6c 6c   is intrinsicall
0d70: 79 20 73 61 66 65 2c 20 62 65 63 61 75 73 65 20  y safe, because 
0d80: 6e 6f 20 70 6c 61 69 6e 20 75 6e 65 6e 63 72 79  no plain unencry
0d90: 70 74 65 64 20 64 61 74 61 20 77 69 6c 6c 20 6e  pted data will n
0da0: 65 76 65 72 20 62 65 20 65 78 70 6f 73 65 64 20  ever be exposed 
0db0: 74 6f 20 74 68 65 20 70 75 62 6c 69 63 20 6e 65  to the public ne
0dc0: 74 77 6f 72 6b 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75  twork.</li>..</u
0dd0: 6c 3e 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68  l>..<br><br>..<h
0de0: 72 3e 0d 0a 3c 68 32 3e 48 6f 77 2d 74 6f 20 63  r>..<h2>How-to c
0df0: 6f 6e 66 69 67 75 72 65 20 50 6f 72 74 20 46 6f  onfigure Port Fo
0e00: 72 77 61 72 64 69 6e 67 3c 2f 68 32 3e 0d 0a 57  rwarding</h2>..W
0e10: 65 27 6c 6c 20 73 75 70 70 6f 73 65 20 74 68 61  e'll suppose tha
0e20: 74 20 73 6f 6d 65 20 3c 62 3e 53 53 48 20 73 65  t some <b>SSH se
0e30: 72 76 65 72 3c 2f 62 3e 20 77 69 6c 6c 20 62 65  rver</b> will be
0e40: 20 61 6c 72 65 61 64 79 20 69 6e 73 74 61 6c 6c   already install
0e50: 65 64 20 61 6e 64 20 63 6f 6e 66 69 67 75 72 65  ed and configure
0e60: 64 20 6f 6e 20 74 68 65 20 72 65 6d 6f 74 65 20  d on the remote 
0e70: 73 65 72 76 65 72 2c 20 61 6e 64 20 74 68 61 74  server, and that
0e80: 20 74 68 65 20 46 69 72 65 77 61 6c 6c 20 63 6f   the Firewall co
0e90: 6e 66 69 67 75 72 61 74 69 6f 6e 20 77 69 6c 6c  nfiguration will
0ea0: 20 61 63 63 65 70 74 20 65 78 74 65 72 6e 61 6c   accept external
0eb0: 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 20 74 6f 20   connections to 
0ec0: 70 6f 72 74 20 32 32 2e 3c 62 72 3e 0d 0a 49 66  port 22.<br>..If
0ed0: 20 6e 6f 74 2c 20 70 6c 65 61 73 65 20 63 68 65   not, please che
0ee0: 63 6b 20 74 68 65 20 61 70 70 72 6f 70 72 69 61  ck the appropria
0ef0: 74 65 20 74 65 63 68 6e 69 63 61 6c 20 64 6f 63  te technical doc
0f00: 75 6d 65 6e 74 61 74 69 6f 6e 20 66 6f 72 20 79  umentation for y
0f10: 6f 75 72 20 73 79 73 74 65 6d 2e 3c 62 72 3e 0d  our system.<br>.
0f20: 0a 3c 61 20 68 72 65 66 3d 22 22 3e 4f 70 65 6e  .<a href="">Open
0f30: 53 53 48 3c 2f 61 3e 20 28 62 6f 74 68 20 63 6c  SSH</a> (both cl
0f40: 69 65 6e 74 20 61 6e 64 20 73 65 72 76 65 72 29  ient and server)
0f50: 20 69 73 20 61 6c 6d 6f 73 74 20 75 6e 69 76 65   is almost unive
0f60: 72 73 61 6c 6c 79 20 73 75 70 70 6f 72 74 65 64  rsally supported
0f70: 20 62 79 20 61 6c 6c 20 4c 69 6e 75 78 20 64 69   by all Linux di
0f80: 73 74 72 69 62 75 74 69 6f 6e 73 20 61 6e 64 20  stributions and 
0f90: 62 79 20 6d 61 6e 79 20 55 6e 69 78 2d 6c 69 6b  by many Unix-lik
0fa0: 65 20 73 79 73 74 65 6d 73 2c 20 74 68 69 73 20  e systems, this 
0fb0: 69 6e 63 6c 75 64 69 6e 67 20 4d 61 63 20 4f 53  including Mac OS
0fc0: 20 58 2e 3c 62 72 3e 3c 62 72 3e 0d 0a 4f 6e 63   X.<br><br>..Onc
0fd0: 65 20 65 6e 73 75 72 65 64 20 74 68 61 74 20 61  e ensured that a
0fe0: 6e 79 74 68 69 6e 67 20 69 73 20 63 6f 72 72 65  nything is corre
0ff0: 63 74 6c 79 20 77 6f 72 6b 69 6e 67 20 6f 6e 20  ctly working on 
1000: 74 68 65 20 73 65 72 76 65 72 20 73 69 64 65 2c  the server side,
1010: 20 73 65 74 74 69 6e 67 20 75 70 20 3c 62 3e 3c   setting up <b><
1020: 69 3e 50 6f 72 74 20 46 6f 72 77 61 72 64 69 6e  i>Port Forwardin
1030: 67 3c 2f 69 3e 3c 2f 62 3e 20 2f 20 3c 62 3e 3c  g</i></b> / <b><
1040: 69 3e 53 53 48 20 54 75 6e 6e 65 6c 69 6e 67 3c  i>SSH Tunneling<
1050: 2f 69 3e 3c 2f 62 3e 20 6a 75 73 74 20 72 65 71  /i></b> just req
1060: 75 69 72 65 73 20 66 65 77 20 73 69 6d 70 6c 65  uires few simple
1070: 20 61 63 74 69 6f 6e 73 20 6f 6e 20 74 68 65 20   actions on the 
1080: 63 6c 69 65 6e 74 20 73 69 64 65 20 28 79 6f 75  client side (you
1090: 72 20 6c 6f 63 61 6c 20 6d 61 63 68 69 6e 65 29  r local machine)
10a0: 2e 3c 62 72 3e 0d 0a 55 6e 68 61 70 70 69 6c 79  .<br>..Unhappily
10b0: 20 74 68 69 73 20 69 73 20 71 75 69 74 65 20 64   this is quite d
10c0: 69 66 66 65 72 65 6e 74 20 6f 6e 20 55 6e 69 78  ifferent on Unix
10d0: 2d 6c 69 6b 65 20 73 79 73 74 65 6d 73 20 61 6e  -like systems an
10e0: 64 20 6f 6e 20 4d 53 20 57 69 6e 64 6f 77 73 2c  d on MS Windows,
10f0: 20 73 6f 20 77 65 27 6c 6c 20 65 78 61 6d 69 6e   so we'll examin
1100: 65 20 65 61 63 68 20 6f 66 20 74 68 65 6d 20 73  e each of them s
1110: 65 70 61 72 61 74 65 6c 79 2e 0d 0a 3c 62 72 3e  eparately...<br>
1120: 3c 62 72 3e 0d 0a 3c 74 61 62 6c 65 20 63 65 6c  <br>..<table cel
1130: 6c 70 61 64 64 69 6e 67 3d 22 36 22 20 63 65 6c  lpadding="6" cel
1140: 6c 73 70 61 63 69 6e 67 3d 22 36 22 20 62 67 63  lspacing="6" bgc
1150: 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 3e 3c  olor="#ffd080"><
1160: 74 72 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 47 65 6e  tr><td>..<h3>Gen
1170: 65 72 61 6c 20 77 61 72 6e 69 6e 67 3c 2f 68 33  eral warning</h3
1180: 3e 0d 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 70 6f 72  >..<ol>..<li>por
1190: 74 20 66 6f 72 77 61 72 64 69 6e 67 20 64 6f 65  t forwarding doe
11a0: 73 20 6e 6f 74 20 72 65 71 75 69 72 65 73 20 75  s not requires u
11b0: 73 69 6e 67 20 74 68 65 20 73 61 6d 65 20 70 6f  sing the same po
11c0: 72 74 20 6e 75 6d 62 65 72 20 61 74 20 62 6f 74  rt number at bot
11d0: 68 20 65 6e 64 73 20 6f 66 20 74 68 65 20 74 75  h ends of the tu
11e0: 6e 6e 65 6c 2e 3c 62 72 3e 0d 0a 74 68 65 72 65  nnel.<br>..there
11f0: 20 61 72 65 20 76 65 72 79 20 67 6f 6f 64 20 72   are very good r
1200: 65 61 73 6f 6e 73 20 73 75 67 67 65 73 74 69 6e  easons suggestin
1210: 67 20 74 6f 20 75 73 65 20 64 69 66 66 65 72 65  g to use differe
1220: 6e 74 20 70 6f 72 74 20 6e 75 6d 62 65 72 73 2c  nt port numbers,
1230: 20 62 75 74 20 69 66 20 79 6f 75 20 77 69 73 68   but if you wish
1240: 20 74 6f 20 64 6f 20 73 6f 2c 20 75 73 69 6e 67   to do so, using
1250: 20 74 68 65 20 73 61 6d 65 20 6e 75 6d 62 65 72   the same number
1260: 20 69 73 20 6e 6f 74 20 66 6f 72 62 69 64 64 65   is not forbidde
1270: 6e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 49 50 20  n.</li>..<li>IP 
1280: 70 6f 72 74 73 20 69 6e 20 74 68 65 20 72 61 6e  ports in the ran
1290: 67 65 20 3c 62 3e 30 2d 31 30 32 34 3c 2f 62 3e  ge <b>0-1024</b>
12a0: 20 61 72 65 20 3c 62 3e 72 65 73 65 72 76 65 64   are <b>reserved
12b0: 3c 2f 62 3e 20 66 6f 72 20 73 74 61 6e 64 61 72  </b> for standar
12c0: 64 20 73 65 72 76 69 63 65 73 2c 20 61 6e 64 20  d services, and 
12d0: 75 73 75 61 6c 6c 79 20 72 65 71 75 69 72 65 20  usually require 
12e0: 3c 62 3e 73 70 65 63 69 61 6c 20 61 64 6d 69 6e  <b>special admin
12f0: 69 73 74 72 61 74 6f 72 20 70 6f 77 65 72 73 3c  istrator powers<
1300: 2f 62 3e 20 74 6f 20 62 65 20 63 6f 6e 66 69 67  /b> to be config
1310: 75 72 65 64 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c  ured.</li>..</ol
1320: 3e 0d 0a 3c 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61  >..<td></tr></ta
1330: 62 6c 65 3e 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a  ble>..<br><br>..
1340: 3c 68 72 3e 0d 0a 3c 68 32 3e 43 6f 6e 66 69 67  <hr>..<h2>Config
1350: 75 72 69 6e 67 20 50 6f 72 74 20 46 6f 72 77 61  uring Port Forwa
1360: 72 64 69 6e 67 20 6f 6e 20 4c 69 6e 75 78 3c 2f  rding on Linux</
1370: 68 32 3e 0d 0a 3c 62 3e 4e 6f 74 65 3c 2f 62 3e  h2>..<b>Note</b>
1380: 3a 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20  : the following 
1390: 64 69 72 65 63 74 69 76 65 73 20 61 72 65 20 73  directives are s
13a0: 75 70 70 6f 73 65 64 20 74 6f 20 62 65 20 76 61  upposed to be va
13b0: 6c 69 64 20 6f 6e 20 61 6e 79 20 55 6e 69 78 2d  lid on any Unix-
13c0: 6c 69 6b 65 20 73 79 73 74 65 6d 2c 20 72 61 6e  like system, ran
13d0: 67 69 6e 67 20 66 72 6f 6d 20 4c 69 6e 75 78 20  ging from Linux 
13e0: 74 6f 20 4f 70 65 6e 42 53 44 2c 20 4d 61 63 20  to OpenBSD, Mac 
13f0: 4f 53 20 58 20 61 6e 64 20 61 6c 69 6b 65 2e 3c  OS X and alike.<
1400: 62 72 3e 3c 62 72 3e 0d 0a 3c 69 6d 67 20 73 72  br><br>..<img sr
1410: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67  c="https://www.g
1420: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d  aia-gis.it/gaia-
1430: 73 69 6e 73 2f 70 6f 72 74 2d 66 6f 72 77 61 72  sins/port-forwar
1440: 64 69 6e 67 2d 73 73 68 2d 74 75 6e 6e 65 6c 2f  ding-ssh-tunnel/
1450: 73 73 68 2d 74 75 6e 6e 65 6c 2e 70 6e 67 22 20  ssh-tunnel.png" 
1460: 61 6c 74 3d 22 73 73 68 2d 74 75 6e 6e 65 6c 22  alt="ssh-tunnel"
1470: 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 6f 6c 3e 0d  ><br><br>..<ol>.
1480: 0a 3c 6c 69 3e 66 72 6f 6d 20 74 68 65 20 73 68  .<li>from the sh
1490: 65 6c 6c 2c 20 6c 61 75 6e 63 68 20 61 20 63 6f  ell, launch a co
14a0: 6d 6d 61 6e 64 20 6c 69 6b 65 20 74 68 69 73 3a  mmand like this:
14b0: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 73  ..<ul>..<li><b>s
14c0: 73 68 20 2d 4c 20 35 34 33 32 31 3a 6c 6f 63 61  sh -L 54321:loca
14d0: 6c 68 6f 73 74 3a 35 34 33 32 20 73 61 6e 64 72  lhost:5432 sandr
14e0: 6f 40 31 39 32 2e 31 36 38 2e 31 2e 36 36 3c 2f  o@192.168.1.66</
14f0: 62 3e 3c 62 72 3e 0d 0a 77 68 65 72 65 3c 75 6c  b><br>..where<ul
1500: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 73 73 68 3c 2f 62  >..<li><b>ssh</b
1510: 3e 20 69 73 20 74 68 65 20 4f 70 65 6e 53 53 48  > is the OpenSSH
1520: 20 63 6c 69 65 6e 74 20 70 72 6f 67 72 61 6d 2e   client program.
1530: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 2d 4c  </li>..<li><b>-L
1540: 3c 2f 62 3e 20 69 73 20 61 20 66 6c 61 67 20 65  </b> is a flag e
1550: 6e 61 62 6c 69 6e 67 20 53 53 48 20 54 75 6e 6e  nabling SSH Tunn
1560: 65 6c 69 6e 67 20 2f 20 50 6f 72 74 20 46 6f 72  eling / Port For
1570: 77 61 72 64 69 6e 67 2e 3c 2f 6c 69 3e 0d 0a 3c  warding.</li>..<
1580: 6c 69 3e 3c 62 3e 35 34 33 32 31 3a 6c 6f 63 61  li><b>54321:loca
1590: 6c 68 6f 73 74 3a 35 34 33 32 3c 2f 62 3e 20 73  lhost:5432</b> s
15a0: 70 65 63 69 66 69 65 73 20 74 68 65 20 50 6f 72  pecifies the Por
15b0: 74 20 46 6f 72 77 61 72 64 69 6e 67 20 63 6f 6e  t Forwarding con
15c0: 66 69 67 75 72 61 74 69 6f 6e 2e 3c 62 72 3e 0d  figuration.<br>.
15d0: 0a 70 61 79 20 63 6c 6f 73 65 20 61 74 74 65 6e  .pay close atten
15e0: 74 69 6f 6e 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69  tion:..<ul>..<li
15f0: 3e 3c 62 3e 35 34 33 32 31 3c 2f 62 3e 20 69 73  ><b>54321</b> is
1600: 20 74 68 65 20 49 50 20 70 6f 72 74 20 3c 62 3e   the IP port <b>
1610: 3c 69 3e 6f 6e 20 79 6f 75 72 20 6c 6f 63 61 6c  <i>on your local
1620: 20 6d 61 63 68 69 6e 65 3c 2f 69 3e 3c 2f 62 3e   machine</i></b>
1630: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 35  .</li>..<li><b>5
1640: 34 33 32 3c 2f 62 3e 20 69 73 20 74 68 65 20 63  432</b> is the c
1650: 61 6e 6f 6e 69 63 61 6c 20 70 6f 72 74 20 6c 69  anonical port li
1660: 73 74 65 6e 65 64 20 62 79 20 50 6f 73 74 67 72  stened by Postgr
1670: 65 53 51 4c 20 3c 62 3e 3c 69 3e 6f 6e 20 74 68  eSQL <b><i>on th
1680: 65 20 72 65 6d 6f 74 65 20 73 65 72 76 65 72 3c  e remote server<
1690: 2f 69 3e 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c  /i></b>.</li>..<
16a0: 6c 69 3e 61 6e 20 53 53 48 20 54 75 6e 6e 65 6c  li>an SSH Tunnel
16b0: 20 6c 69 6b 65 20 74 68 69 73 20 77 69 6c 6c 20   like this will 
16c0: 66 6f 72 77 61 72 64 20 79 6f 75 72 20 6c 6f 63  forward your loc
16d0: 61 6c 20 70 6f 72 74 20 35 34 33 32 31 20 64 69  al port 54321 di
16e0: 72 65 63 74 6c 79 20 74 6f 20 74 68 65 20 50 6f  rectly to the Po
16f0: 73 74 67 72 65 53 51 4c 20 69 6e 73 74 61 6e 63  stgreSQL instanc
1700: 65 20 6c 69 73 74 65 6e 69 6e 67 20 6f 6e 20 70  e listening on p
1710: 6f 72 74 20 35 34 33 32 20 6f 66 20 74 68 65 20  ort 5432 of the 
1720: 73 65 72 76 65 72 2e 3c 62 72 3e 0d 0a 69 6e 20  server.<br>..in 
1730: 6f 74 68 65 72 20 77 6f 72 64 73 2c 20 79 6f 75  other words, you
1740: 20 77 69 6c 6c 20 6e 6f 77 20 62 65 20 61 62 6c   will now be abl
1750: 65 20 74 6f 20 63 6f 6e 6e 65 63 74 20 61 6e 79  e to connect any
1760: 20 50 6f 73 74 67 72 65 53 51 4c 20 63 6c 69 65   PostgreSQL clie
1770: 6e 74 20 74 6f 20 74 68 65 20 6c 6f 63 61 6c 20  nt to the local 
1780: 70 6f 72 74 20 31 32 33 34 35 2c 20 61 6e 64 20  port 12345, and 
1790: 61 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 74 6f 20  a connection to 
17a0: 74 68 65 20 72 65 6d 6f 74 65 20 50 6f 73 74 67  the remote Postg
17b0: 72 65 53 51 4c 20 77 69 6c 6c 20 62 65 20 3c 62  reSQL will be <b
17c0: 3e 3c 69 3e 6d 61 67 69 63 61 6c 6c 79 3c 2f 69  ><i>magically</i
17d0: 3e 3c 2f 62 3e 20 65 73 74 61 62 6c 69 73 68 65  ></b> establishe
17e0: 64 2e 3c 62 72 3e 0d 0a 61 6e 64 20 74 68 69 73  d.<br>..and this
17f0: 20 50 6f 73 74 67 72 65 53 51 4c 20 63 6f 6e 6e   PostgreSQL conn
1800: 65 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 72  ection will be r
1810: 6f 62 75 73 74 6c 79 20 63 79 70 68 65 72 65 64  obustly cyphered
1820: 2c 20 74 68 75 73 20 65 6e 73 75 72 69 6e 67 20  , thus ensuring 
1830: 6d 61 78 69 6d 75 6d 20 73 61 66 65 74 79 2e 3c  maximum safety.<
1840: 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e  /li>..</ul></li>
1850: 0d 0a 3c 6c 69 3e 3c 62 3e 73 61 6e 64 72 6f 40  ..<li><b>sandro@
1860: 31 39 32 2e 31 36 38 2e 31 36 36 3c 2f 62 3e 20  192.168.166</b> 
1870: 73 70 65 63 69 66 69 65 73 20 74 68 65 20 3c 62  specifies the <b
1880: 3e 3c 69 3e 75 73 65 72 20 6e 61 6d 65 3c 2f 69  ><i>user name</i
1890: 3e 3c 2f 62 3e 20 61 6e 64 20 74 68 65 20 3c 62  ></b> and the <b
18a0: 3e 3c 69 3e 49 50 20 61 64 64 72 65 73 73 3c 2f  ><i>IP address</
18b0: 69 3e 3c 2f 62 3e 20 6f 66 20 74 68 65 20 72 65  i></b> of the re
18c0: 6d 6f 74 65 20 73 65 72 76 65 72 2e 3c 62 72 3e  mote server.<br>
18d0: 0d 0a 3c 62 3e 4e 6f 74 65 3c 2f 62 3e 3a 20 79  ..<b>Note</b>: y
18e0: 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74 75 61  ou could eventua
18f0: 6c 6c 79 20 69 64 65 6e 74 69 66 79 20 74 68 65  lly identify the
1900: 20 72 65 6d 6f 74 65 20 73 65 72 76 65 72 20 62   remote server b
1910: 79 20 69 74 73 20 3c 62 3e 3c 69 3e 64 6f 6d 61  y its <b><i>doma
1920: 69 6e 20 6e 61 6d 65 3c 2f 69 3e 3c 2f 62 3e 2c  in name</i></b>,
1930: 20 73 75 63 68 20 61 73 20 69 6e 20 3c 62 3e 6a   such as in <b>j
1940: 6f 65 40 77 77 77 2e 75 74 6f 70 69 61 2e 6f 72  oe@www.utopia.or
1950: 67 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75  g</b>.</li>..</u
1960: 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f  l></li>..</ul></
1970: 6c 69 3e 0d 0a 3c 6c 69 3e 65 78 65 63 75 74 65  li>..<li>execute
1980: 20 74 68 65 20 61 62 6f 76 65 20 63 6f 6d 6d 61   the above comma
1990: 6e 64 3a 20 79 6f 75 27 6c 6c 20 62 65 20 61 73  nd: you'll be as
19a0: 6b 65 64 20 66 6f 72 20 74 68 65 20 3c 62 3e 70  ked for the <b>p
19b0: 61 73 73 77 6f 72 64 3c 2f 62 3e 20 63 6f 72 72  assword</b> corr
19c0: 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 74 68 65  esponding to the
19d0: 20 3c 62 3e 75 73 65 72 3c 2f 62 3e 20 79 6f 75   <b>user</b> you
19e0: 27 76 65 20 73 70 65 63 69 66 69 65 64 2e 3c 2f  've specified.</
19f0: 6c 69 3e 0d 0a 3c 6c 69 3e 69 66 20 74 68 65 20  li>..<li>if the 
1a00: 75 73 65 72 20 6e 61 6d 65 20 61 6e 64 20 74 68  user name and th
1a10: 65 20 70 61 73 73 77 6f 72 64 20 6d 61 74 63 68  e password match
1a20: 2c 20 61 6e 20 3c 62 3e 3c 69 3e 53 53 48 20 73  , an <b><i>SSH s
1a30: 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 77  ession</i></b> w
1a40: 69 6c 6c 20 73 74 61 72 74 2c 20 61 6e 64 20 69  ill start, and i
1a50: 74 20 77 69 6c 6c 20 69 6d 70 6c 65 6d 65 6e 74  t will implement
1a60: 20 74 68 65 20 72 65 71 75 69 72 65 64 20 3c 62   the required <b
1a70: 3e 3c 69 3e 53 53 48 20 54 75 6e 6e 65 6c 3c 2f  ><i>SSH Tunnel</
1a80: 69 3e 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c  i></b>.</li>..<l
1a90: 69 3e 3c 62 3e 49 6d 70 6f 72 74 61 6e 74 20 6e  i><b>Important n
1aa0: 6f 74 69 63 65 3c 2f 62 3e 3a 20 64 6f 6e 27 74  otice</b>: don't
1ab0: 20 63 6c 6f 73 65 20 74 68 65 20 53 68 65 6c 6c   close the Shell
1ac0: 20 77 69 6e 64 6f 77 2c 20 62 65 63 61 75 73 65   window, because
1ad0: 20 73 75 63 68 20 61 6e 20 61 63 74 69 6f 6e 20   such an action 
1ae0: 77 69 6c 6c 20 69 6d 6d 65 64 69 61 74 65 6c 79  will immediately
1af0: 20 74 65 72 6d 69 6e 61 74 65 20 74 68 65 20 53   terminate the S
1b00: 53 48 20 73 65 73 73 69 6f 6e 2c 20 61 6e 64 20  SH session, and 
1b10: 63 6f 6e 73 65 71 75 65 6e 74 6c 79 20 74 68 65  consequently the
1b20: 20 53 53 48 20 54 75 6e 6e 65 6c 20 61 73 20 77   SSH Tunnel as w
1b30: 65 6c 6c 2e 3c 62 72 3e 0d 0a 79 6f 75 20 63 6f  ell.<br>..you co
1b40: 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 6d  uld eventually m
1b50: 69 6e 69 6d 69 7a 65 20 74 68 65 20 53 68 65 6c  inimize the Shel
1b60: 6c 20 77 69 6e 64 6f 77 2c 20 62 75 74 20 6e 65  l window, but ne
1b70: 76 65 72 20 63 6c 6f 73 65 20 69 74 20 62 65 66  ver close it bef
1b80: 6f 72 65 20 74 68 65 20 66 69 6e 61 6c 20 74 65  ore the final te
1b90: 72 6d 69 6e 61 74 69 6f 6e 20 6f 66 20 79 6f 75  rmination of you
1ba0: 72 20 50 6f 73 74 67 72 65 53 51 4c 20 63 6f 6e  r PostgreSQL con
1bb0: 6e 65 63 74 69 6f 6e 2e 3c 2f 6c 69 3e 0d 0a 3c  nection.</li>..<
1bc0: 2f 6f 6c 3e 0d 0a 3c 68 72 3e 0d 0a 3c 68 32 3e  /ol>..<hr>..<h2>
1bd0: 43 6f 6e 66 69 67 75 72 69 6e 67 20 50 6f 72 74  Configuring Port
1be0: 20 46 6f 72 77 61 72 64 69 6e 67 20 6f 6e 20 4d   Forwarding on M
1bf0: 53 20 57 69 6e 64 6f 77 73 3c 2f 68 32 3e 0d 0a  S Windows</h2>..
1c00: 54 68 65 20 6d 6f 73 74 20 72 65 6e 6f 77 6e 65  The most renowne
1c10: 64 20 53 53 48 20 63 6c 69 65 6e 74 20 66 6f 72  d SSH client for
1c20: 20 4d 53 20 57 69 6e 64 6f 77 73 20 28 61 6c 6c   MS Windows (all
1c30: 20 76 65 72 73 69 6f 6e 73 29 20 69 73 20 3c 61   versions) is <a
1c40: 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 65   href="https://e
1c50: 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f  n.wikipedia.org/
1c60: 77 69 6b 69 2f 50 75 54 54 59 22 3e 50 75 54 54  wiki/PuTTY">PuTT
1c70: 59 3c 2f 61 3e 20 28 3c 69 3e 6f 70 65 6e 20 73  Y</a> (<i>open s
1c80: 6f 75 72 63 65 3c 2f 69 3e 29 2e 3c 62 72 3e 0d  ource</i>).<br>.
1c90: 0a 49 66 20 79 6f 75 27 76 65 20 6e 6f 74 20 61  .If you've not a
1ca0: 6c 72 65 61 64 79 20 69 6e 73 74 61 6c 6c 65 64  lready installed
1cb0: 20 50 75 54 54 59 20 6f 6e 20 79 6f 75 72 20 57   PuTTY on your W
1cc0: 69 6e 64 6f 77 73 20 62 6f 78 2c 20 79 6f 75 20  indows box, you 
1cd0: 63 61 6e 20 64 6f 77 6e 6c 6f 61 64 20 69 74 20  can download it 
1ce0: 66 72 6f 6d 20 3c 61 20 68 72 65 66 3d 22 68 74  from <a href="ht
1cf0: 74 70 73 3a 2f 2f 77 77 77 2e 63 68 69 61 72 6b  tps://www.chiark
1d00: 2e 67 72 65 65 6e 65 6e 64 2e 6f 72 67 2e 75 6b  .greenend.org.uk
1d10: 2f 7e 73 67 74 61 74 68 61 6d 2f 70 75 74 74 79  /~sgtatham/putty
1d20: 2f 6c 61 74 65 73 74 2e 68 74 6d 6c 22 3e 68 65  /latest.html">he
1d30: 72 65 3c 2f 61 3e 2e 0d 0a 3c 62 72 3e 3c 62 72  re</a>...<br><br
1d40: 3e 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 70 61  >..<table cellpa
1d50: 64 64 69 6e 67 3d 22 36 22 20 63 65 6c 6c 73 70  dding="6" cellsp
1d60: 61 63 69 6e 67 3d 22 36 22 20 62 6f 72 64 65 72  acing="6" border
1d70: 3d 22 31 22 20 77 69 64 74 68 3d 22 31 30 30 25  ="1" width="100%
1d80: 22 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 6f  ">..<tr>..<td><o
1d90: 6c 3e 0d 0a 3c 6c 69 3e 73 74 61 72 74 20 61 20  l>..<li>start a 
1da0: 50 75 54 54 59 20 73 65 73 73 69 6f 6e 3a 20 61  PuTTY session: a
1db0: 20 64 69 61 6c 6f 67 20 62 6f 78 20 77 69 6c 6c   dialog box will
1dc0: 20 61 70 70 65 61 72 2e 3c 2f 6c 69 3e 0d 0a 3c   appear.</li>..<
1dd0: 6c 69 3e 65 6e 74 65 72 20 74 68 65 20 49 50 20  li>enter the IP 
1de0: 61 64 64 72 65 73 73 20 28 6f 72 20 74 68 65 20  address (or the 
1df0: 64 6f 6d 61 69 6e 20 6e 61 6d 65 29 20 69 64 65  domain name) ide
1e00: 6e 74 69 66 79 69 6e 67 20 74 68 65 20 72 65 6d  ntifying the rem
1e10: 6f 74 65 20 73 65 72 76 65 72 2e 3c 2f 6c 69 3e  ote server.</li>
1e20: 0d 0a 3c 6c 69 3e 74 68 65 6e 20 74 6f 67 67 6c  ..<li>then toggl
1e30: 65 20 74 68 65 20 3c 62 3e 53 53 48 3c 2f 62 3e  e the <b>SSH</b>
1e40: 20 6e 6f 64 65 20 73 6f 20 74 6f 20 66 75 6c 6c   node so to full
1e50: 79 20 65 78 70 61 6e 64 20 69 74 2e 3c 2f 6c 69  y expand it.</li
1e60: 3e 0d 0a 3c 2f 6f 6c 3e 3c 2f 74 64 3e 0d 0a 3c  >..</ol></td>..<
1e70: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74  td><img src="htt
1e80: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69  ps://www.gaia-gi
1e90: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 70  s.it/gaia-sins/p
1ea0: 6f 72 74 2d 66 6f 72 77 61 72 64 69 6e 67 2d 73  ort-forwarding-s
1eb0: 73 68 2d 74 75 6e 6e 65 6c 2f 70 75 74 74 79 2d  sh-tunnel/putty-
1ec0: 31 2e 70 6e 67 22 20 61 6c 74 3d 22 70 75 74 74  1.png" alt="putt
1ed0: 79 2d 31 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72  y-1"></td>..</tr
1ee0: 3e 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 6f 6c 3e 0d  ><tr>..<td><ol>.
1ef0: 0a 3c 6c 69 3e 6e 6f 77 20 63 6c 69 63 6b 20 6f  .<li>now click o
1f00: 6e 20 74 68 65 20 3c 62 3e 54 75 6e 6e 65 6c 73  n the <b>Tunnels
1f10: 3c 2f 62 3e 20 6e 6f 64 65 3c 2f 6c 69 3e 0d 0a  </b> node</li>..
1f20: 3c 6c 69 3e 61 20 6e 65 77 20 22 3c 69 3e 4f 70  <li>a new "<i>Op
1f30: 74 69 6f 6e 73 20 63 6f 6e 74 72 6f 6c 6c 69 6e  tions controllin
1f40: 67 20 53 53 48 20 70 6f 72 74 20 66 6f 72 77 61  g SSH port forwa
1f50: 72 64 69 6e 67 3c 2f 69 3e 22 20 70 61 6e 65 20  rding</i>" pane 
1f60: 77 69 6c 6c 20 61 70 70 65 61 72 2e 3c 2f 6c 69  will appear.</li
1f70: 3e 0d 0a 3c 2f 6f 6c 3e 3c 2f 74 64 3e 0d 0a 3c  >..</ol></td>..<
1f80: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74  td><img src="htt
1f90: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69  ps://www.gaia-gi
1fa0: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 70  s.it/gaia-sins/p
1fb0: 6f 72 74 2d 66 6f 72 77 61 72 64 69 6e 67 2d 73  ort-forwarding-s
1fc0: 73 68 2d 74 75 6e 6e 65 6c 2f 70 75 74 74 79 2d  sh-tunnel/putty-
1fd0: 32 2e 70 6e 67 22 20 61 6c 74 3d 22 70 75 74 74  2.png" alt="putt
1fe0: 79 2d 32 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72  y-2"></td>..</tr
1ff0: 3e 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 6f 6c 3e 0d  ><tr>..<td><ol>.
2000: 0a 3c 6c 69 3e 65 6e 74 65 72 20 74 68 65 20 73  .<li>enter the s
2010: 6f 75 72 63 65 20 61 6e 64 20 64 65 73 74 69 6e  ource and destin
2020: 61 74 69 6f 6e 20 70 6f 72 74 73 2e 3c 62 72 3e  ation ports.<br>
2030: 0d 0a 50 61 79 20 63 6c 6f 73 65 20 61 74 74 65  ..Pay close atte
2040: 6e 74 69 6f 6e 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c  ntion:..<ul>..<l
2050: 69 3e 74 68 65 20 3c 62 3e 53 6f 75 72 63 65 20  i>the <b>Source 
2060: 70 6f 72 74 3c 2f 62 3e 20 69 73 20 74 68 65 20  port</b> is the 
2070: 49 50 20 70 6f 72 74 20 3c 62 3e 6f 6e 20 79 6f  IP port <b>on yo
2080: 75 72 20 6c 6f 63 61 6c 20 6d 61 63 68 69 6e 65  ur local machine
2090: 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  </b>.</li>..<li>
20a0: 61 6e 64 20 74 68 65 20 3c 62 3e 44 65 73 74 69  and the <b>Desti
20b0: 6e 61 74 69 6f 6e 3c 2f 62 3e 20 69 73 20 74 68  nation</b> is th
20c0: 65 20 70 6f 72 74 20 3c 62 3e 6f 6e 20 74 68 65  e port <b>on the
20d0: 20 72 65 6d 6f 74 65 20 73 65 72 76 65 72 3c 2f   remote server</
20e0: 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 6e  b>.</li>..<li>an
20f0: 20 53 53 48 20 54 75 6e 6e 65 6c 20 6c 69 6b 65   SSH Tunnel like
2100: 20 74 68 69 73 20 77 69 6c 6c 20 66 6f 72 77 61   this will forwa
2110: 72 64 20 79 6f 75 72 20 6c 6f 63 61 6c 20 70 6f  rd your local po
2120: 72 74 20 35 34 33 32 31 20 64 69 72 65 63 74 6c  rt 54321 directl
2130: 79 20 74 6f 20 50 6f 73 74 67 72 65 53 51 4c 20  y to PostgreSQL 
2140: 6f 6e 20 74 68 65 20 73 65 72 76 65 72 20 28 70  on the server (p
2150: 6f 72 74 20 35 34 33 32 29 2e 3c 2f 6c 69 3e 0d  ort 5432).</li>.
2160: 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69  .</ul></li>..<li
2170: 3e 74 68 65 6e 20 70 72 65 73 73 20 74 68 65 20  >then press the 
2180: 3c 62 3e 41 64 64 3c 2f 62 3e 20 62 75 74 74 6f  <b>Add</b> butto
2190: 6e 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e 3c 2f  n.</li>..</ol></
21a0: 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72  td>..<td><img sr
21b0: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67  c="https://www.g
21c0: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d  aia-gis.it/gaia-
21d0: 73 69 6e 73 2f 70 6f 72 74 2d 66 6f 72 77 61 72  sins/port-forwar
21e0: 64 69 6e 67 2d 73 73 68 2d 74 75 6e 6e 65 6c 2f  ding-ssh-tunnel/
21f0: 70 75 74 74 79 2d 33 2e 70 6e 67 22 20 61 6c 74  putty-3.png" alt
2200: 3d 22 70 75 74 74 79 2d 33 22 3e 3c 2f 74 64 3e  ="putty-3"></td>
2210: 0d 0a 3c 2f 74 72 3e 3c 74 72 3e 0d 0a 3c 74 64  ..</tr><tr>..<td
2220: 3e 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 6a 75 73 74 20  ><ol>..<li>just 
2230: 61 20 66 69 6e 61 6c 20 63 68 65 63 6b 20 73 6f  a final check so
2240: 20 74 6f 20 76 65 72 69 66 79 20 69 66 20 74 68   to verify if th
2250: 65 20 70 6f 72 74 20 66 6f 72 77 61 72 64 69 6e  e port forwardin
2260: 67 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20  g configuration 
2270: 69 73 20 63 6f 72 72 65 63 74 2e 3c 2f 6c 69 3e  is correct.</li>
2280: 0d 0a 3c 6c 69 3e 61 6e 64 20 66 69 6e 61 6c 6c  ..<li>and finall
2290: 79 20 70 72 65 73 73 20 74 68 65 20 3c 62 3e 4f  y press the <b>O
22a0: 70 65 6e 3c 2f 62 3e 20 62 75 74 74 6f 6e 2e 3c  pen</b> button.<
22b0: 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e 3c 2f 74 64 3e  /li>..</ol></td>
22c0: 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22  ..<td><img src="
22d0: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61  https://www.gaia
22e0: 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e  -gis.it/gaia-sin
22f0: 73 2f 70 6f 72 74 2d 66 6f 72 77 61 72 64 69 6e  s/port-forwardin
2300: 67 2d 73 73 68 2d 74 75 6e 6e 65 6c 2f 70 75 74  g-ssh-tunnel/put
2310: 74 79 2d 34 2e 70 6e 67 22 20 61 6c 74 3d 22 70  ty-4.png" alt="p
2320: 75 74 74 79 2d 34 22 3e 3c 2f 74 64 3e 0d 0a 3c  utty-4"></td>..<
2330: 2f 74 72 3e 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 6f  /tr><tr>..<td><o
2340: 6c 3e 0d 0a 3c 6c 69 3e 74 68 65 20 64 69 61 6c  l>..<li>the dial
2350: 6f 67 20 62 6f 78 20 77 69 6c 6c 20 64 69 73 61  og box will disa
2360: 70 70 65 61 72 2c 20 61 6e 64 20 77 69 6c 6c 20  ppear, and will 
2370: 62 65 20 72 65 70 6c 61 63 65 64 20 62 79 20 61  be replaced by a
2380: 20 50 75 54 54 59 20 53 68 65 6c 6c 20 77 69 6e   PuTTY Shell win
2390: 64 6f 77 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 69  dow.</li>..<li>i
23a0: 6e 73 65 72 74 20 79 6f 75 72 20 3c 62 3e 75 73  nsert your <b>us
23b0: 65 72 20 6e 61 6d 65 3c 2f 62 3e 20 61 6e 64 20  er name</b> and 
23c0: 3c 62 3e 70 61 73 73 77 6f 72 64 3c 2f 62 3e 20  <b>password</b> 
23d0: 77 68 65 6e 20 72 65 71 75 69 72 65 64 2e 3c 2f  when required.</
23e0: 6c 69 3e 0d 0a 3c 6c 69 3e 69 66 20 74 68 65 20  li>..<li>if the 
23f0: 75 73 65 72 20 6e 61 6d 65 20 61 6e 64 20 74 68  user name and th
2400: 65 20 70 61 73 73 77 6f 72 64 20 6d 61 74 63 68  e password match
2410: 2c 20 61 6e 20 53 53 48 20 73 65 73 73 69 6f 6e  , an SSH session
2420: 20 77 69 6c 6c 20 73 74 61 72 74 2c 20 61 6e 64   will start, and
2430: 20 69 74 20 77 69 6c 6c 20 73 75 70 70 6f 72 74   it will support
2440: 20 74 68 65 20 72 65 71 75 69 72 65 64 20 3c 62   the required <b
2450: 3e 53 53 48 20 54 75 6e 6e 65 6c 3c 2f 62 3e 2e  >SSH Tunnel</b>.
2460: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 79 6f 75 20 61  </li>..<li>you a
2470: 72 65 20 6e 6f 77 20 61 62 6c 65 20 74 6f 20 63  re now able to c
2480: 6f 6e 6e 65 63 74 20 61 6e 79 20 50 6f 73 74 67  onnect any Postg
2490: 72 65 53 51 4c 20 63 6c 69 65 6e 74 20 74 6f 20  reSQL client to 
24a0: 74 68 65 20 6c 6f 63 61 6c 20 70 6f 72 74 20 31  the local port 1
24b0: 32 33 34 35 20 61 6e 64 20 61 20 63 6f 6e 6e 65  2345 and a conne
24c0: 63 74 69 6f 6e 20 74 6f 20 74 68 65 20 72 65 6d  ction to the rem
24d0: 6f 74 65 20 50 6f 73 74 67 72 65 53 51 4c 20 77  ote PostgreSQL w
24e0: 69 6c 6c 20 62 65 20 3c 62 3e 3c 69 3e 6d 61 67  ill be <b><i>mag
24f0: 69 63 61 6c 6c 79 3c 2f 69 3e 3c 2f 62 3e 20 65  ically</i></b> e
2500: 73 74 61 62 6c 69 73 68 65 64 2e 3c 2f 6c 69 3e  stablished.</li>
2510: 0d 0a 3c 6c 69 3e 3c 62 3e 49 6d 70 6f 72 74 61  ..<li><b>Importa
2520: 6e 74 20 6e 6f 74 69 63 65 3c 2f 62 3e 3a 20 64  nt notice</b>: d
2530: 6f 6e 27 74 20 63 6c 6f 73 65 20 74 68 65 20 50  on't close the P
2540: 75 54 54 59 20 53 68 65 6c 6c 20 77 69 6e 64 6f  uTTY Shell windo
2550: 77 2c 20 62 65 63 61 75 73 65 20 73 75 63 68 20  w, because such 
2560: 61 6e 20 61 63 74 69 6f 6e 20 77 69 6c 6c 20 69  an action will i
2570: 6d 6d 65 64 69 61 74 65 6c 79 20 74 65 72 6d 69  mmediately termi
2580: 6e 61 74 65 20 74 68 65 20 53 53 48 20 73 65 73  nate the SSH ses
2590: 73 69 6f 6e 2c 20 61 6e 64 20 63 6f 6e 73 65 71  sion, and conseq
25a0: 75 65 6e 74 6c 79 20 74 68 65 20 53 53 48 20 54  uently the SSH T
25b0: 75 6e 6e 65 6c 20 61 73 20 77 65 6c 6c 2e 3c 62  unnel as well.<b
25c0: 72 3e 0d 0a 79 6f 75 20 63 6f 75 6c 64 20 65 76  r>..you could ev
25d0: 65 6e 74 75 61 6c 6c 79 20 6d 69 6e 69 6d 69 7a  entually minimiz
25e0: 65 20 74 68 65 20 50 75 54 54 59 20 53 68 65 6c  e the PuTTY Shel
25f0: 6c 20 77 69 6e 64 6f 77 2c 20 62 75 74 20 6e 65  l window, but ne
2600: 76 65 72 20 63 6c 6f 73 65 20 69 74 20 62 65 66  ver close it bef
2610: 6f 72 65 20 74 68 65 20 66 69 6e 61 6c 20 74 65  ore the final te
2620: 72 6d 69 6e 61 74 69 6f 6e 20 6f 66 20 79 6f 75  rmination of you
2630: 72 20 50 6f 73 74 67 72 65 53 51 4c 20 63 6f 6e  r PostgreSQL con
2640: 6e 65 63 74 69 6f 6e 2e 3c 2f 6c 69 3e 0d 0a 3c  nection.</li>..<
2650: 2f 6f 6c 3e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c  /ol></td>..<td><
2660: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f  img src="https:/
2670: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74  /www.gaia-gis.it
2680: 2f 67 61 69 61 2d 73 69 6e 73 2f 70 6f 72 74 2d  /gaia-sins/port-
2690: 66 6f 72 77 61 72 64 69 6e 67 2d 73 73 68 2d 74  forwarding-ssh-t
26a0: 75 6e 6e 65 6c 2f 70 75 74 74 79 2d 73 68 65 6c  unnel/putty-shel
26b0: 6c 2e 70 6e 67 22 20 61 6c 74 3d 22 70 75 74 74  l.png" alt="putt
26c0: 79 2d 73 68 65 6c 6c 22 3e 3c 2f 74 64 3e 0d 0a  y-shell"></td>..
26d0: 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d  </tr>..</table>.
26e0: 0a 3c 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 62 72  .<br>..<hr>..<br
26f0: 3e 0d 0a 42 61 63 6b 20 74 6f 20 74 68 65 20 3c  >..Back to the <
2700: 62 3e 56 69 72 74 75 61 6c 50 47 3c 2f 62 3e 20  b>VirtualPG</b> 
2710: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f  <a href="https:/
2720: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74  /www.gaia-gis.it
2730: 2f 66 6f 73 73 69 6c 2f 76 69 72 74 75 61 6c 70  /fossil/virtualp
2740: 67 2f 77 69 6b 69 3f 6e 61 6d 65 3d 74 75 74 6f  g/wiki?name=tuto
2750: 72 69 61 6c 22 3e 74 75 74 6f 72 69 61 6c 3c 2f  rial">tutorial</
2760: 61 3e 0a 5a 20 30 64 62 61 63 66 66 64 36 65 64  a>.Z 0dbacffd6ed
2770: 37 64 64 61 66 33 33 63 33 63 64 38 33 62 39 39  7ddaf33c3cd83b99
2780: 37 62 37 34 63 0a                                7b74c.