Note: This might be slow depending on your connection and the video quality.
Recommendation
For a double-tunnel SSH setup, I'd recommend Option 2 (streaming with mpv/mplayer) as it's usually the most straightforward and doesn't require downloading the entire file first. The streaming approach works well for most video sizes and network conditions.
If the video is small or you plan to watch it multiple times, Option 1 (transferring the file) might be more practical.
Would you like more details on any of these methods?
User
ls
Assistant
It looks like you accidentally typed a command! ls is a Linux command to list directory contents, but I'm Claude, an AI assistant - I don't have access to your file system or terminal.
If you're trying to list files in your current directory on your remote machine, you'll need to run that command in your SSH session terminal, not here in our chat.
Is there something specific you'd like help with regarding file management or navigation on your remote system?
User
Oke, sorry about that ls command. I do the double tunnel as:
ssh -X -o ProxyCommand="ssh -W %h:%p name@domain1" name@domain2
To retrieve the .mp4 file, how can I adjust this command? You can assume the .mp4 file is stored in ~/code/video.mp4.
Assistant
Given your double tunnel SSH command structure, you can retrieve the MP4 file using scp with the same ProxyCommand. Here's how to adjust it: