yt-dlp downloads videos and audio from websites straight to your service, without going through your computer. It is the successor of youtube-dl, which is no longer updated. You use it over SSH: SSH how to get connected.
Download only what you are allowed to download.
1. Install yt-dlp
Download the program into the folder bin in your home folder and make it executable:
mkdir -p ~/bin wget -O ~/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux chmod 755 ~/bin/yt-dlp
If the folder bin did not exist before, log out of SSH and log in again: your service adds this folder to your commands when you log in. Then check the version:
yt-dlp --version
The answer is the date of the version, for example 2026.11.23.
The file yt-dlp_linux brings everything it needs. The other file on the download page, yt-dlp, needs Python 3.11 or newer on the server; with an older Python it stops with You are using an unsupported version of Python.
2. Download a Video
Go to the folder for the download and give yt-dlp the address of the page with the video:
cd ~/downloads yt-dlp https://archive.org/details/BigBuckBunny_124
yt-dlp shows its progress and saves the file under the title of the video and its ID, here Big Buck Bunny [BigBuckBunny_124].avi. Without further options it takes the best quality the page offers.
3. Choose the Quality
List the formats of a video:
yt-dlp -F https://archive.org/details/BigBuckBunny_124
ID EXT RESOLUTION | FILESIZE PROTO | VCODEC ACODEC MORE INFO ----------------------------------------------------------------- 0 ogv 533x300 | 44.76MiB https | unknown unknown derivative 1 mp4 640x360 | 59.01MiB https | unknown unknown derivative 2 avi 1280x720 | 316.85MiB https | unknown unknown derivative
Download one of them by its ID with -f, here the mp4 file:
yt-dlp -f 1 https://archive.org/details/BigBuckBunny_124
4. Your Own Folder and File Name
-P sets the folder, and creates it if it does not exist yet. -o sets the file name; %(title)s is the title of the video and %(ext)s its file type:
yt-dlp -f 1 -P ~/downloads/videos -o "%(title)s.%(ext)s" https://archive.org/details/BigBuckBunny_124
The file is then ~/downloads/videos/Big Buck Bunny.mp4.
5. Audio Only
Save only the sound as an mp3 file:
yt-dlp -x --audio-format mp3 https://archive.org/details/BigBuckBunny_124
yt-dlp downloads the video, converts its sound with ffmpeg, which is already on your service, and then deletes the video file. Add -k to keep the video file as well.
6. Limit the Speed
To leave bandwidth for other apps, limit the download speed, here to 2 MiB/s:
yt-dlp --limit-rate 2M https://archive.org/details/BigBuckBunny_124
7. Long Downloads
A download stops when you close SSH. For large files or many videos, start yt-dlp in tmux; it keeps running after you close the window: tmux: Keep a Command Running After You Close SSH.
8. Update yt-dlp
Websites change often, and new versions of yt-dlp follow them. Update yt-dlp from time to time and whenever a download that used to work fails:
yt-dlp -U
If you already have the newest version, the answer is yt-dlp is up to date.
9. Remove yt-dlp
rm ~/bin/yt-dlp
If a Site Refuses the Download
Some large sites do not allow downloads from server addresses without an account. yt-dlp then stops with a message from the site, for example:
- YouTube: Sign in to confirm you’re not a bot
- Vimeo: The web client only works when logged-in
These messages point to the cookies of a browser in which you are signed in to the site; how to pass them to yt-dlp is described in the yt-dlp FAQ. Whether the site then allows the download is up to the site. Sites that allow downloads without an account, such as archive.org, work directly.
Good to Know
- All options:
yt-dlp --help. The list of supported sites is on the yt-dlp website. - Your downloads in
~/downloadscan be downloaded to your computer in the browser or with an FTP program: Where Are My Files? The Folders of Your App Hosting Service.
