Follow the steps to mount linux/fedora/Ubuntu folder from different Linux system without installing samba or nfs .
sshfs and fuse-sshfs allow to mount folder of networked systems using ssh port(22).
Step 1: Install sshfs into Ubuntu
root#apt-get install sshfs
Install sshfs into RHEL or Fedora
root#yum install fuse-sshfs
Step 2: Create a folder to mount
root#mkdir -p /opt/ssh-folder
Step 3: Run below command to mount and press enter.
root# sshfs -o nonempty,noatime -p 22 username@192.168.xxx.xx:"/home/test-folder" /opt/ssh-folder/
Step 4: It will prompt to enter password, type passsword and press enter
username@192.168.xxx.xx's password:******
Step 5: Run mount to check the 192.168.xxx.xx:"/home/test-folder is mounted or not.
root#mount
sshfs and fuse-sshfs allow to mount folder of networked systems using ssh port(22).
Step 1: Install sshfs into Ubuntu
root#apt-get install sshfs
Install sshfs into RHEL or Fedora
root#yum install fuse-sshfs
Step 2: Create a folder to mount
root#mkdir -p /opt/ssh-folder
Step 3: Run below command to mount and press enter.
root# sshfs -o nonempty,noatime -p 22 username@192.168.xxx.xx:"/home/test-folder" /opt/ssh-folder/
Step 4: It will prompt to enter password, type passsword and press enter
username@192.168.xxx.xx's password:******
Step 5: Run mount to check the 192.168.xxx.xx:"/home/test-folder is mounted or not.
root#mount
No comments:
Post a Comment