How to create SSH tunnel with PuTTY to connect Neo4j database

Solution 1:

The syntax of -L switch of ssh is

-L [bind_address:]port:host:hostport

where

  • port (7474) is an equivalent of Source port in PuTTY
  • host:hostport (localhost:7474) is an equivalent of Destination in PuTTY

The login@address is not part of tunnel configuration.

The two commands you got from tutor are not to be used together. The first is normal SSH login. The latter is SSH login that also creates a tunnel. What you want to mimic is the latter command only.