00:00how is it going guys please subscribe like share and comment I would like to
00:06reach 1000 subscriber before the end of this year one of the tools that I
00:13depend on my workflow and would like to have on all my computers is a tool called
00:20it SSHFS it is already installed in case you enabled and set up the SSH
00:29server as a server you will be able to mount that server's files directories
00:35and paths on the client but it needs to be installed to mount the server's
00:45paths on your client I have here FreeBSD I'm connected to it through SSH which
00:51means that we can mount its paths anywhere we want as long as SSHFS
00:58is present the tool but we want to make our FreeBSD able to mount files through
01:09SSHFS we run the command as root we switch to root first and we run the command
01:19pkg install SSHFS or there should be some categories and the category here is file
01:45system or file systems with s at the end the command becomes like this pkg install
01:52file systems SSHFS
02:04here we must press y and enter I will press n because there is another alternative command
02:12for probably the older versions of FreeBSD or in case this command didn't work for you
02:19use this command that I'm going to use this command that I'm going to show you now which is pkg
02:22install
02:30fusefs dash SSHFS like this I believe they will either work
02:45so it's the same piece of software you have the option to run this command the name of the package
02:55is SSHFS under file systems you need to type it like this or like this
03:01let's press y and enter it's already installed
03:17it's already installed
03:18okay we need to load the kernel module fusefs which is by running kld load fuse fs
03:34and then we add it to the startup things to be auto loaded the fuse kernel module by running sys
03:45rc fusefs underscore enable equals double quotation mark yes all uppercase double quotation mark like this enter
04:00we can check the changes we can check the changes by taking a peek at slash etc slash sys rc
04:11sorry rc dot conf not sys rc enter here and we have fuse fs enable underscore enable equals yes
04:27fs
04:27we can see if the command exists SSHFS like this
04:35let's mount
04:37let's mount
04:38the computer where you're seeing me from on this machine so this computer where you're seeing me from becomes the
04:46server
04:47i know it's ip address but i can prove it or check it with you again
04:58like this
05:01the ip address is
05:0410.1.11.11
05:07so sshfs
05:11the user is imaker
05:14at
05:1510.1.11.11
05:18colon and then the path
05:20which is users
05:22slash imaker
05:24you can mount it under
05:26home
05:30psd user
05:31psd user
05:31which is the user name of my
05:32free psd machine
05:35public
05:35if there is
05:38we have
05:42you can mount it under desktop
05:44like this
05:48type yes here and enter
05:50and the password
05:51and the password
05:53like this
05:54if we check mount
05:57we can find that it is mounted under desktop
06:01through fuse fs sshfs like this
06:06we can go there cd home psd user
06:12desktop
06:17ls
06:19we can see that
06:21what i have in my
06:24home of this
06:27computer
06:28appears there
06:30which
06:30can be proven by
06:33this file
06:34which is here
06:37let's make a file
06:39we call it
06:42sshfs
06:43created
06:46and
06:47it immediately appeared
06:48here
06:50just like we
06:52mounted
06:53on
06:54free psd
06:55whichever
06:56path
06:57from whichever
06:58computer
06:59that has ssh
07:00as a
07:03server
07:05we can
07:06do the same
07:06as long
07:07as we
07:08replace
07:12the server
07:12here
07:13which is
07:13this one
07:15or this
07:16ip address
07:17may be representing
07:18it
07:18the user name
07:20the ip address
07:21should be replaced
07:22with free psds
07:23as long as the ssh server
07:25is enabled
07:26the user is
07:27also replaced
07:28with it
07:29and the path
07:30with the path
07:31that you can
07:32choose
07:33and you can access
07:35that makes it for this video
07:36i'm signing out
07:37and peace
07:44i
07:45discovered that there are some commands that need to be run
07:48to allow the ordinary user
07:50non-root user
07:52to mount
07:53through
07:54sshfs
07:55the
07:56first command needs to be run as root which is
08:00sysctl
08:01vfs
08:05dot
08:06user
08:07mount
08:09equals
08:11one
08:12enter
08:14and then
08:17to make this permanent
08:21user mount
08:22we run
08:22echo
08:25double
08:26quotation mark
08:28vfs
08:29dot
08:30one
08:30the same thing
08:32user mount
08:34equals
08:35one
08:36closing the double quotation mark
08:38and we pipe it
08:41two
08:45dot
08:46dot
08:47dot
08:54dot
08:55dot
08:56dot
08:56dot
08:56dot
08:56dot
08:56dot
08:56This will make it permanent and it will be enabled at every startup, every system startup.