USING SSHFS





SSHFS  is  the file system  which is generally used to mount  directories remotely using  secure shell protocol.

Note:  First of all make sure that you have installed ssh server on your system from where you want to mount filesystem.

On server  side :

Step 1:     Install  the  software 

[root@localhost]# yum  install openssh-server  -y

Step 2:    Start  the  service 

[root@localhost ~]#  service  sshd   restart




On  client  Side : 


Step  1 :     Install  the software for client side

[root@localhost ~]# yum  install  fuse-sshfs        #  For  redhat / centos


For  Ubuntu /Debian

[root@localhost ~]# apt-get   install  sshfs


Step  2:   For  mounting

[root@localhost ~]#  mkdir   /mnt/new
[root@localhost ~]# sshfs  root@192.168.0.114:/root   /mnt/new

Note:    For making  it  persistently

[root@localhost ~]#  echo  "root@192.168.0.114:/root   /mnt/  fuse.sshfs   defaults,_netdev  0  0"   >>/etc/fstab

Comments

Popular posts from this blog

HOW TO USE DOCKER

Flutter Native Application Development

REVERSE ARRAY COCUBES