Difference between revisions of "Secure FTP access"

From Biowikifarm Metawiki
Jump to: navigation, search
m (Mounting/unmounting remote file system via sshfs)
m (Mounting/unmounting remote file system via sshfs)
Line 7: Line 7:
 
  chown yourusername-on-the-biowikifarm /mnt/Biowikifarm/
 
  chown yourusername-on-the-biowikifarm /mnt/Biowikifarm/
 
# mount the remote system; needs sshfs (ubuntu: apt-get install sshfs)
 
# mount the remote system; needs sshfs (ubuntu: apt-get install sshfs)
  sshfs yourusername-on-the-biowikifarm@biowikifarm.net:/ /mnt/Biowikifarm/
+
  sshfs -o follow_symlinks yourusername-on-the-biowikifarm@biowikifarm.net:/ /mnt/Biowikifarm/
 
  # now you can browse and save from within your local computer
 
  # now you can browse and save from within your local computer
 +
# note that symlinks are displayed as folders, not as symlinks actually
  
 
# unmount the remote system on your local machine
 
# unmount the remote system on your local machine

Revision as of 00:27, 8 July 2010

Mounting/unmounting remote file system via sshfs

# create a local directory on a linux machine
 sudo mkdir -p /mnt/Biowikifarm
 # change username: ownership settings ?must be the same as on the remote system
 chown yourusername-on-the-biowikifarm /mnt/Biowikifarm/
# mount the remote system; needs sshfs (ubuntu: apt-get install sshfs)
 sshfs -o follow_symlinks yourusername-on-the-biowikifarm@biowikifarm.net:/ /mnt/Biowikifarm/
 # now you can browse and save from within your local computer
 # note that symlinks are displayed as folders, not as symlinks actually

# unmount the remote system on your local machine
 fusermount -u /mnt/Biowikifarm/

Note that any other user group on the wiki is not shown on your local computer, but just group ID-numbers. But you can create an identical user group on your local machine with the same group ID.

Secure terminal access via ssh

Use your preferred terminal and type:

ssh yourusername-on-the-biowikifarm@biowikifarm.net
# ssh yourusername-on-the-biowikifarm@biowikifarm.net:/path/
#...
# now you are logged in on the server
exit # closes this session