
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
PyRemoteView is a web-based application that allows you to remotely browse and view images stored locally on another server via SSH, with automatic thumbnail generation and caching for improved performance.
You can install PyRemoteView directly from PyPI using pip:
pip install pyremoteview
This will install all required dependencies automatically.
If you prefer to install from source:
pip install -r requirements.txt
pip install .
For PyRemoteView to work properly, you need to set up passwordless SSH access to the remote server:
Generate an SSH key pair (if you don't already have one):
ssh-keygen -t rsa -b 4096
Copy your public key to the remote server:
ssh-copy-id username@remote-server
Or manually add the content of ~/.ssh/id_rsa.pub
to the remote server's ~/.ssh/authorized_keys
file.
Test your passwordless login:
ssh username@remote-server
You should be able to log in without entering a password.
If you installed PyRemoteView from PyPI, you can start it directly from the command line:
pyremoteview --remote-host remoteserver --remote-path /path/to/images
python remote_gallery.py --remote-host remoteserver --remote-path /path/to/images
--port PORT
: Port to run the server on (default: 8080)--host HOST
: Host to run the server on (default: 0.0.0.0)--remote-host REMOTE_HOST
: Remote host to fetch images from--remote-path REMOTE_PATH
: Path on remote host to browse--proxy-path PROXY_PATH
: Base path when accessed through a reverse proxy (e.g., "/sd_preview")To browse images on your local machine, use localhost
as the remote host:
python remote_gallery.py --remote-host localhost --remote-path /path/to/local/images
If you're accessing PyRemoteView through a reverse proxy (e.g., Nginx), use the --proxy-path
argument:
pyremoteview --remote-host remoteserver --remote-path /path/to/images --proxy-path="/your_proxy_path"
Example Nginx configuration:
location /your_proxy_path/ {
proxy_pass http://localhost:8080/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
After starting the server, access the gallery by opening a web browser and navigating to:
http://localhost:8080
Access the debug page for detailed information about the server status, SSH connection, and cache:
http://localhost:8080/debug
The application caches thumbnails and recently viewed images in:
~/.cache/pyremoteview/thumbnails
~/.cache/pyremoteview/images
To clear the cache, use the "Clear Cache" button in the web interface or delete these directories.
FAQs
Remote SSH or Local Image Gallery Viewer
We found that pyremoteview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.