Jump to content

SSHFS: Difference between revisions

50 bytes added ,  3 August 2023
no edit summary
No edit summary
No edit summary
(4 intermediate revisions by 2 users not shown)
Line 10: Line 10:


* Any Rut or TRB device.
* Any Rut or TRB device.
* Ubuntu Linux machine to host OpenSSH server.
* Ubuntu VM to host OpenSSH server.
* Virtual box or VMware to install the Ubuntu Linux machine
* VirtualBox or VMware to install the Ubuntu VM


We will be testing this feature over local network '''192.168.0.0/24'''. For you, if you want to test it over '''WAN''', your SSH Server machine needs to be accessible via '''Public IP or Hostname''' over the WAN network.
We will be testing this feature over local network '''192.168.0.0/24'''. For you, if you want to test it over '''WAN''', your SSH Server machine needs to be accessible via '''Public IP or Hostname''' over the WAN network.


== Configuration Scheme ==
== Configuration Scheme ==
[[File:Networking_rutx_configuration_example_sshfs_topology_v1.png|border|class=tlt-border]]
[[File:Networking rutx configuration example sshfs configuration Scheme v1.png|border|class=tlt-border|530x530px]]




Line 26: Line 26:
1.     Get the Ubuntu Linux OS Desktop image from [https://ubuntu.com/download here]
1.     Get the Ubuntu Linux OS Desktop image from [https://ubuntu.com/download here]


2.     Install the image in the virtual box application. Make sure that Ubuntu machine is perfectly running and put the machine in the same network as that of the router. For this, go to network settings option of the virtual machine and select Bridged Adapter and select the same adapter to which your Teltonika router is connected.
2.     Install the image in the virtual box application. Make sure that Ubuntu machine is perfectly running and put the machine in the same network as that of the router. For this, go to network settings option of the virtual machine and select Bridged Adapter and select the same adapter to which your Teltonika router is connected.[[File:Networking rutx configuration example sshfs ubuntu machine bridged adapter v1.png|border|class=tlt-border|595x595px]]
[[File:Networking rutx configuration example sshfs ubuntu machine bridged adapter v1.png|border|class=tlt-border|595x595px]]




3.     To verify your VM network, go to Settings-> Network option on the Ubuntu VM.
 
[[File:Networking rutx configuration example sshfs ubuntu machine network settings v1.png|border|class=tlt-border|683x683px]]
3.     To verify your VM network, go to Settings-> Network option on the Ubuntu VM.[[File:Networking rutx configuration example sshfs ubuntu machine network settings v1.png|border|class=tlt-border|683x683px]]
 




Line 75: Line 75:
After the configuration part is completed, now it’s the time to test the setup and see if it is working as intended or not. You can test it on your router to see if the filesystem has been successfully mounted or not.
After the configuration part is completed, now it’s the time to test the setup and see if it is working as intended or not. You can test it on your router to see if the filesystem has been successfully mounted or not.


# Go to router’s CLI and change directory to '''/mnt''' and list the contents of the directory. You will see that Ubuntu machine’s directory '''/home/ramman''' contents can be found there.[[File:Networking rutx configuration example sshfs Rut Testing configuration v1.png|border|class=tlt-border|754x754px]]Here you can read, write, and modify the files over SSH. Every time, when user makes any changes in the filesystem through router, they will automatically get reflected on the Ubuntu machine.
# Go to router’s CLI and change directory to '''/mnt''' and list the contents of the directory. You will see that Ubuntu machine’s directory '''/home/ramman''' contents can be found there. <br />[[File:Networking rutx configuration example sshfs Rut Testing configuration v1.png|border|class=tlt-border|678x678px]]
Here you can read, write, and modify the files over SSH. Every time, when user makes any changes in the filesystem through router, they will automatically get reflected on the Ubuntu machine.


== See also ==
== See also ==
  [https://wiki.teltonika-networks.com/view/RUT950_SSHFS SSHFS]
  [https://wiki.teltonika-networks.com/view/RUT950_SSHFS SSHFS]
[[Category:Router control and monitoring]]