User Tools

Site Tools


mounting_storage_server_shares

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

mounting_storage_server_shares [2015/03/05 19:58]
132.216.122.23 [Access with SAMBA]
mounting_storage_server_shares [2016/11/03 17:23]
Line 1: Line 1:
-====== Mounting with SSHFS ====== 
  
-===== Create SSH Public Key ===== 
- 
-Create a public key on you workstation:​ 
- 
-  aceadmin@ace-ws-17:​~$ ssh-keygen 
-  Generating public/​private rsa key pair. 
-  Enter file in which to save the key (/​home/​aceadmin/​.ssh/​id_rsa): ​ 
-  Enter passphrase (empty for no passphrase): ​ 
-  Enter same passphrase again: ​ 
-  Your identification has been saved in /​home/​aceadmin/​.ssh/​id_rsa. 
-  Your public key has been saved in /​home/​aceadmin/​.ssh/​id_rsa.pub. 
-  The key fingerprint is: 
-  6d:​22:​99:​96:​82:​c4:​7a:​e9:​53:​47:​d0:​78:​24:​d7:​67:​be aceadmin@ace-ws-17 
-  The key's randomart image is: 
-  +--[ RSA 2048]----+ 
-  |    o+o.         | 
-  | .  .+o . o      | 
-  |  o  ..  +       | 
-  | o o . + ..      | 
-  |. + o B S o.     | 
-  | o . + . oE      | 
-  |  o              | 
-  |   ​. ​            | 
-  |                 | 
-  +-----------------+ 
- 
-===== Copy the public key using ssh-copy-id ===== 
- 
-Copy the public key to ace-storage-2 using ssh-copy-id 
- 
-  ssh-copy-id -i ~/​.ssh/​id_rsa.pub remote-host 
-  ​ 
-===== Test SSH login ===== 
-  ​ 
-You should be able to login without requiring your password 
- 
- 
-===== Install SSHFS ===== 
- 
-  sudo apt-get install sshfs 
- 
-===== Mount Directories ===== 
- 
-Edit the **fstab** on your workstation 
- 
-  sudo vi /etc/fstab 
-  ​ 
-Add the following 
- 
-  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​home/​users/<​your_user>​ /​mnt/​storage2-home fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 
-  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​data1/​ACElab_Shared /​mnt/​storage2-shared fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 
-  <​your_user>​@ace-storage-2.cbrain.mcgill.ca:/​data1/​Raw_Study_Data /​mnt/​storage2-datasets fuse.sshfs defaults,​_netdev,​identityfile=/​home/<​your_user>/​.ssh/​id_rsa,​uid=<​your_UID>,​gid=<​your_GID>,​user,​allow_other ​ 0   0 
-  ​ 
-====== Access with SAMBA ====== 
- 
-{{:​screenshot_from_2015-03-05_14_45_44.png?​300|}} 
- 
-{{:​screenshot_from_2015-03-05_14_46_48.png?​300|}} 
- 
-{{:​screenshot_from_2015-03-05_14_50_07.png?​300|}} 
mounting_storage_server_shares.txt ยท Last modified: 2016/11/03 17:23 (external edit)