Sds-hd SFTP: Difference between revisions
m (changed Serveraddress) |
No edit summary |
||
Line 1: | Line 1: | ||
It is possible to access the SDS@hd service from Windows, Mac and Linux using the sshfs/sftp protocol. |
|||
⚫ | |||
This enables easy access to SDS@hd without additional registration of your own computer. |
|||
⚫ | |||
This way can also be useful if you are in a network in which e.g. [[Sds-hd_CIFS|SMB]] and [[Sds-hd_nfs|NFS]] are not available, e.g. due to firewall restrictions. |
|||
'' |
'''Attention:''' |
||
In principle, however, the connection is not suitable for permanent connections, since (due to technical reasons) it is not highly available. |
|||
= <b>Prerequisites</b>= |
|||
'''Attention:''' To access data served by SDS@hd via CIFS, You need a '''''Service Password'''''. See details [[Sds-hd_user_access]]. |
|||
Additionally the access to SDS@hd is currently only available inside the [https://www.belwue.de/netz/netz0.html belwue-Network]. |
|||
This means you have to use the VPN Service of your HomeOrganization, if you want to access SDS@hd from outside the bwHPC-Clusters (e.g. via [https://www.eduroam.org/where/ edoroam] or from your personal Laptop) |
|||
⚫ | |||
⚫ | |||
You can directly use sftp to "login" to SDS@hd. This will give you an interactive sftp-shell. |
|||
''Example:'' |
|||
<pre> |
<pre> |
||
> sftp hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de |
> sftp hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de |
||
Line 17: | Line 34: | ||
</pre> |
</pre> |
||
== ''mounting network drive over SFTP:'' == |
|||
In most linux distributions you could install a package for fuse mounting a network drive. |
In most linux distributions you could install a package for fuse mounting a network drive. This allows you to work with SDS@hd comparable to a local folder. |
||
=== Example (debian/ubuntu): === |
|||
* install sshfs package |
|||
⚫ | |||
> apt-get install sshfs |
<pre>> apt-get install sshfs</pre> |
||
* create a local mountpoint |
|||
> mkdir ~/sds-hd |
<pre> > mkdir ~/sds-hd </pre> |
||
⚫ | |||
* mounting SDS@hd |
|||
⚫ | |||
* accessing SDS@hd |
|||
⚫ | |||
> ls ~/sds-hd |
> ls ~/sds-hd |
||
sd16j007 sd17c010 sd17d005 |
sd16j007 sd17c010 sd17d005 |
||
> touch ~/sds-hd/sd16j007/testfile |
|||
</pre> |
</pre> |
||
=== Example (CentOS/RedHat): === |
|||
<pre> |
<pre> |
||
yum install fuse-sshfs |
yum install fuse-sshfs |
||
> mkdir ~/sds-hd |
> mkdir ~/sds-hd |
||
> sshfs hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd |
> sshfs -o reconnect hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd |
||
> ls ~/sds-hd |
> ls ~/sds-hd |
||
sd16j007 sd17c010 sd17d005 |
sd16j007 sd17c010 sd17d005 |
||
> touch ~/sds-hd/sd16j007/testfile |
|||
</pre> |
</pre> |
||
Line 45: | Line 68: | ||
< |
= <b> Using SFTP from Windows and Mac client</b> = |
||
Windows clients do not have a SCP/SFTP client installed by default, so it needs to be installed before this protocol can be used. |
Windows clients do not have a SCP/SFTP client installed by default, so it needs to be installed before this protocol can be used. |
Revision as of 08:54, 21 April 2020
It is possible to access the SDS@hd service from Windows, Mac and Linux using the sshfs/sftp protocol.
This enables easy access to SDS@hd without additional registration of your own computer. This way can also be useful if you are in a network in which e.g. SMB and NFS are not available, e.g. due to firewall restrictions.
Attention: In principle, however, the connection is not suitable for permanent connections, since (due to technical reasons) it is not highly available.
Prerequisites
Attention: To access data served by SDS@hd via CIFS, You need a Service Password. See details Sds-hd_user_access.
Additionally the access to SDS@hd is currently only available inside the belwue-Network.
This means you have to use the VPN Service of your HomeOrganization, if you want to access SDS@hd from outside the bwHPC-Clusters (e.g. via edoroam or from your personal Laptop)
Using SFTP from Linux client
direct/interactive Access:
You can directly use sftp to "login" to SDS@hd. This will give you an interactive sftp-shell.
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. This allows you to work with SDS@hd comparable to a local folder.
Example (debian/ubuntu):
- install sshfs package
> apt-get install sshfs
- create a local mountpoint
> mkdir ~/sds-hd
- mounting SDS@hd
> sshfs -o reconnect hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd
- accessing SDS@hd
> ls ~/sds-hd sd16j007 sd17c010 sd17d005 > touch ~/sds-hd/sd16j007/testfile
Example (CentOS/RedHat):
yum install fuse-sshfs > mkdir ~/sds-hd > sshfs -o reconnect hd_xy123@lsdf02-sshfs.urz.uni-heidelberg.de: ~/sds-hd > ls ~/sds-hd sd16j007 sd17c010 sd17d005 > touch ~/sds-hd/sd16j007/testfile
You can close/unmount the network drive with the command:
fusermount -u ~/sds-hd
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:
- OpenSSH
- Putty suite (for Windows and Unix)
- WinSCP (for Windows)
- FileZilla (for Windows, Mac and Linux)
- Cygwin (for Windows)
network drive over SFTP:
- WebDrive (for Windows, Mac, iOS, Android)
- SFTPNetDrive (for Windows)
- NetDrive (for Windows)
- ExpanDrive (for Windows and Mac)
- MountainDuck (for Windows and Mac)