Difference between revisions of "Sds-hd SFTP"

From bwHPC Wiki
Jump to: navigation, search
(Created page with "<H1>Using SFTP from Unix client</H1> '''direct Access:''' ''Example:'' <pre> > sftp hd_xy123@lsdf02sshfs.urz.uni-heidelberg.de Connected to lsdf02sshfs.urz.uni-heidelberg....")
 
m (changed Serveraddress)
Line 6: Line 6:
   
 
<pre>
 
<pre>
> sftp hd_xy123@lsdf02sshfs.urz.uni-heidelberg.de
+
> sftp hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de
Connected to lsdf02sshfs.urz.uni-heidelberg.de.
+
Connected to lsdf02-sshfs.urz.uni-heidelberg.de.
 
sftp> ls
 
sftp> ls
 
sd16j007 sd17c010 sd17d005
 
sd16j007 sd17c010 sd17d005
Line 25: Line 25:
 
> apt-get install sshfs
 
> apt-get install sshfs
 
> mkdir ~/sds-hd
 
> mkdir ~/sds-hd
> sshfs hd_xy123@lsdf02sshfs.urz.uni-heidelberg.de: ~/sds-hd
+
> sshfs hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd
 
> ls ~/sds-hd
 
> ls ~/sds-hd
 
sd16j007 sd17c010 sd17d005
 
sd16j007 sd17c010 sd17d005
Line 34: Line 34:
 
yum install fuse-sshfs
 
yum install fuse-sshfs
 
> mkdir ~/sds-hd
 
> mkdir ~/sds-hd
> sshfs hd_xy123@lsdf02sshfs.urz.uni-heidelberg.de: ~/sds-hd
+
> sshfs hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd
 
> ls ~/sds-hd
 
> ls ~/sds-hd
 
sd16j007 sd17c010 sd17d005
 
sd16j007 sd17c010 sd17d005

Revision as of 07:57, 9 September 2019

1 Using SFTP from Unix client

direct Access:

Example:

> sftp  hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de
Connected to lsdf02-sshfs.urz.uni-heidelberg.de.
sftp> ls
sd16j007  sd17c010  sd17d005  
sftp> 
sftp> help
...
sftp> put myfile
sftp> get myfile

mounting network drive over SFTP:

In most linux distributions you could install a package for fuse mounting a network drive.

Example (debian/ubuntu):

> apt-get install sshfs
> mkdir ~/sds-hd
> sshfs hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd
> ls ~/sds-hd
sd16j007  sd17c010  sd17d005  

Example (CentOS/RedHat):

yum install fuse-sshfs
> mkdir ~/sds-hd
> sshfs hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd
> ls ~/sds-hd
sd16j007  sd17c010  sd17d005

You can close/unmount the network drive with the command:

fusermount -u ~/sds-hd


2 Using SFTP from Windows and Mac client

Windows clients do not have a SCP/SFTP client installed by default, so it needs to be installed before this protocol can be used.

Tools for example:


network drive over SFTP: