Difference between revisions of "Secure FTP access"

From Biowikifarm Metawiki
Jump to: navigation, search
m (Mounting remote file system via sshfs: +unmounting)
m (Mounting/unmounting remote file system via sshfs)
Line 2: Line 2:
  
 
<source lang="bash">
 
<source lang="bash">
# on a local linux machine
+
# create a local directory on a linux machine
 
  sudo mkdir -p /mnt/Biowikifarm
 
  sudo mkdir -p /mnt/Biowikifarm
  # change username
+
  # change username: ownership settings ?must be the same as on the remote system
 
  chown yourusername-on-the-biowikifarm /mnt/Biowikifarm/
 
  chown yourusername-on-the-biowikifarm /mnt/Biowikifarm/
# mount file the remote system
+
# mount the remote system; needs sshfs (ubuntu: apt-get install sshfs)
# needs sshfs (ubuntu: apt-get install sshfs)
+
 
  sshfs yourusername-on-the-biowikifarm@biowikifarm.net:/ /mnt/Biowikifarm/
 
  sshfs 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
 +
 
# unmount the remote system on your local machine
 
# unmount the remote system on your local machine
 
  fusermount -u /mnt/Biowikifarm/  
 
  fusermount -u /mnt/Biowikifarm/  
 
</source>
 
</source>
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 usergroup on your local machine with the same group ID.
+
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 ==
 
== Secure terminal access via ssh ==

Revision as of 15:49, 7 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 yourusername-on-the-biowikifarm@biowikifarm.net:/ /mnt/Biowikifarm/
 # now you can browse and save from within your local computer

# 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