It is convenient to connect to a remote computer using SSH and work at the shell. But viewing images files and other such common files can be a problem. Using a X server might not always be possible. A simple solution that works for me is to use the SimpleHTTPServer module that ships in Python.
- Change to the directory which holds the files you want to view from a remote computer.
- Run the SimpleHTTPServer there and provide a port number for the server:
$ python -m SimpleHTTPServer 8901
- On the local computer, open a browser and connect to the server using the address:
- You can now view image files and other common file types right in the browser.
Tried with: Ubuntu 18.04