Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to view files over SSH using SimpleHTTPServer

📅 2018-Sep-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ python, simplehttpserver, ssh ⬩ 📚 Archive

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.

$ python -m SimpleHTTPServer 8901

Tried with: Ubuntu 18.04