...
OpenSSH client - port forwarding
connect to DSpace server and forward its port 8080 to localhost (machine we're connecting from) port 1234Code 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 forwardingPutty 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)
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 serverCode 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.0 | Solr 4.4.0 (expected) |
DSpace 3.0 | Solr 3.5.0 |
DSpace 1.8 | Solr 3.3.0 |
DSpace 1.7 | Solr 1.4.1 |
DSpace 1.6 | Solr 1.3.0 |
...