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!


~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert