Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. OpenSSH client - port forwarding
    connect to DSpace server and forward its port 8080 to localhost (machine we're connecting from) port 1234

    Code Block
    ssh -L 1234:127.0.0.1:8080 mydspace.edu

    makes mydspace.edu:8080 accessible via localhost:1234 (type http://localhost:1234 in browser address bar); also opens ssh shell
    exit ssh to terminate port forwarding
    Alternatively:

    Code Block
    ssh -N -f -L 1234:127.0.0.1:8080 mydspace.edu

    run with -N and -f flags if you want ssh to go to background
    kill the ssh process to terminate port forwarding

  2. Putty PuTTY client - port forwarding
    The same with PuttyLocal port forwarding:

    Code Block
    Connection - SSH - Tunnels
    Source port: 80801234
    Destination: localhost:12348080
    Local
    Auto
    Add
    

    Once you're connected in PuTTY, visit http://localhost:1234/solr/ and you should see Solr's web interface. No browser configuration is necessary.


    Dynamic port forwarding/SOCKS proxy*:

    Code Block
    Connection - SSH - Tunnels
    Source port: 1234
    Dynamic
    Auto
    Add

    Once you're connected in PuTTY, you'll need to configure your browse to use localhost:1234 as a SOCKS proxy (and remove "localhost" and "127.0.0.1" from addresses to bypass this proxy - like in the next step)

  3. OpenSSH client - SOCKS proxy
    connect to DSpace server and run a SOCKS proxy server on localhost port 1234; configure browser to use localhost:1234 as SOCKS proxy and remove "localhost" and "127.0.0.1" from addresses that bypass this proxy
    all browser requests now originate from dspace server (source IP is dspace server's IP) - dspace is the proxy server
    type http://localhost:8080in browser address bar - localhost here is the dspace server

    Code Block
    ssh -D 1234 mydspace.edu

*Note about Putty as SOCKS proxy - while it can be configured, it raises a security exception when Solr is accessed. If you figure this out, please add this method here.

...

DSpace 4.0Solr 4.4.0 (expected)
DSpace 3.0Solr 3.5.0
DSpace 1.8Solr 3.3.0
DSpace 1.7Solr 1.4.1
DSpace 1.6Solr 1.3.0

...