View Images in the Terminal


viewing images in the terminal over SSH

kitty can display images in the terminal, even over ssh:

Run ssh using the kitty ssh kitten:

$ kitty +kitten ssh remote.example.com

Then, on the remote server, install kitty (yes, even though it doesn't have X):

# apt-get install kitty

You can now view images by running:

$ kitty +kitten icat image.jpg

I find it useful to have the last command as an alias in my .zshrc (same works in .bashrc if you're using bash):

alias icat='kitty +kitten icat'

Note that this doesn't work in multiplexers like screen and tmux.

Happy image browsing!


Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐦 @torsteinkrause ~