SSH is amazing in that it can allow a user to access the resources of one machine from another over the network. But with fast gigabit Ethernet connections these days, playing movies from one machine from another is now possible.
Install SSHFS on your machine.
jason@jason-desktop:~/remote$ sudo apt install sshfs |
Create a folder as a location to mount remote resources to.
jason@jason-desktop:~/remote$ mkdir remote |
Then connect to a remote machine to access its resources over the network. The -p 443 parameter is to use port 443 to connect. Remove this if you are using port 22.
jason@jason-desktop:~$ sshfs jason@192.168.1.5:/home/jason/Downloads ./remote/ -p 443 jason@192.168.1.5's password: jason@jason-desktop:~$ cd remote/ |
When you run this command you will be put back on the same prompt. Then enter the directory to see the contents of the remote directory.
jason@jason-desktop:~$ cd remote/ jason@jason-desktop:~/remote$ ls backup-1.18.2012_06-19-59_bejiitas.tar.gz powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb backupsettings.conf prettify-small-4-Mar-2013.tar.bz2 Batman.v.Superman.Dawn.of.Justice.2016.Extended.Ultimate.Edition.1080p.WEB-DL.x264.AC3-JYK QS_IA_US_13_ext.Tanoa.pbo Bill.And.Teds.Excellent.Adventure.1989.1080p.BluRay.x264.AC3-ETRG real_weather_mission_1.4.altis.zip binutils-2.24.51.0.3.tar.xz real_weather_mission.altis cox_patrol-ops-3-01_v20140307.altis.7z 'Samsara.2011.1080p.BluRay.x264-GECKOS [PublicHD]' depbo-tools-0.5.65-64bit.tgz 'Screen Shot 2016-10-06 at 19.33.24.png' dopa.rar Solaris.1972.720p.BluRay.x264-CiNEFiLE e1m4b.zip Solaris.1972.720p.BluRay.x264-CiNEFiLE_preview.jpg e1m8b.zip squad_file_pack_armasquads_14257.zip extractpbo 'Star Trek Beyond 2016 1080p WEB-DL x264 AC3-JYK' ffd7f59d1a5402ba78c92b5c95a8f50b.zip sysinfo-master.zip Foursite.1.zip texturez_4187.jpg geforce.jpg The.Simpsons.S28E06.There.Will.Be.Buds.WEB-DL.x264.AAC 'Ghost in the Shell (1995) [1080p] DUAL AUDIO.5.1] [HEVC] [X265]' Total.recall.2012.1080p.HEVC.bluRay.x265.mkv graphs2.jpeg Transformers.2007.1080p.BluRay.x264.AC3-ETRG hillary-clinton-emails-august-31-release Unofficial-contrib-GUI-DECREE.zip homedir.tar URL_Fuzzer_-_Discover_hidden_files_and_directories.pdf horizon.jpg usa_x86fre_nt5wks_1515.iso 'Independence_Day_(6).jpg' VPNBook.com-OpenVPN-Euro1.zip 'Interstellar (2014) (2014) [1080p]' VPNBook.com-OpenVPN-Euro2.zip isladuala_island_v197full.7z Win8.1_English_x64.iso 'James Bond Never Say Never Again (1983) [1080p]' 'Windows XP Embedded R7.tar.gz' jhalfs-2.3.tar.bz2 'Windows XP Zune R4.tar.gz' jWhvt3y.png XDuxVwm.jpg KING_OF_THE_HILL_V4.Altis-pbo.rar |
Now just play a movie with MPV and it will open just as it would on a local machine. This is very useful for a user that has one machine with movies on it, and a laptop with MPV they wish to play movies on.
This is just a standard SSH connection, but it allows easy file access on a remote machine.
jason@jason-desktop:~/remote$ lsof -i :443 | grep ssh ssh 4536 jason 3u IPv4 79844 0t0 TCP jason-desktop:59780->192.168.1.5:https (ESTABLISHED) |
It is possible to copy files from one machine to another and to delete files on the remote machine. Especially using Midnight Commander. This is very useful for file management, or backing up files over a network to another machine.
To unmount this share when you are finished with it, just run this command.
jason@jason-desktop:~$ umount remote |
This is very simple indeed.