<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Data_Transfer%2FAdvanced_Data_Transfer</id>
	<title>Data Transfer/Advanced Data Transfer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Data_Transfer%2FAdvanced_Data_Transfer"/>
	<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Data_Transfer/Advanced_Data_Transfer&amp;action=history"/>
	<updated>2026-05-13T23:50:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=Data_Transfer/Advanced_Data_Transfer&amp;diff=13278&amp;oldid=prev</id>
		<title>H Schumacher: created page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Data_Transfer/Advanced_Data_Transfer&amp;diff=13278&amp;oldid=prev"/>
		<updated>2024-11-25T16:11:52Z</updated>

		<summary type="html">&lt;p&gt;created page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Advanced Data Transfer =&lt;br /&gt;
&lt;br /&gt;
This page presents advanced topics that can improve data transfer in special cases.&lt;br /&gt;
&lt;br /&gt;
== Adjust ciphers for faster transfer ==&lt;br /&gt;
&lt;br /&gt;
A cipher is an encryption method. A specific cipher can be specified when using ssh, scp, rsync, sshfs or sftp. Changing the cipher can have a significant impact on the transmission speed, especially with big data files. The effects are difficult to predict because, among other things, they are depending on the client&amp;#039;s processor. It appears that usually &amp;amp;quot;aes128-ctr&amp;amp;quot; is one of the fastest ciphers.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
You can specify the cipher by adding the option &amp;lt;code&amp;gt;-o Cipher=&amp;amp;lt;cipher&amp;amp;gt;&amp;lt;/code&amp;gt;. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;ssh -o Cipher=&amp;amp;lt;cipher&amp;amp;gt; &amp;amp;lt;user&amp;amp;gt;@&amp;amp;lt;remotehost&amp;amp;gt;&lt;br /&gt;
sshfs -o Cipher=&amp;amp;lt;cipher&amp;amp;gt; -o reconnect &amp;amp;lt;user&amp;amp;gt;@&amp;amp;lt;remotehost&amp;amp;gt;: &amp;amp;lt;local_mountpoint&amp;amp;gt;&lt;br /&gt;
rsync -av --rsh=&amp;amp;quot;ssh -o Cipher=&amp;amp;lt;cipher&amp;amp;gt;&amp;amp;quot; ./path/to/local/file &amp;amp;lt;user&amp;amp;gt;@&amp;amp;lt;remotehost&amp;amp;gt;:  &amp;lt;/pre&amp;gt;&lt;br /&gt;
To get a list of available ciphers on the cluster:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;ssh -Q cipher&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Attention:&amp;#039;&amp;#039; It has to be noted, that not all encryption methods meet the same security requirements. You have to consider the different performance and security requirements for your indiviual usecase.&lt;br /&gt;
&lt;br /&gt;
=== Find fastest Cipher ===&lt;br /&gt;
&lt;br /&gt;
You can test it with your own hardware by using the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;source=&amp;amp;lt;provide the path to your file&amp;amp;gt;&lt;br /&gt;
destination=&amp;amp;lt;userID&amp;amp;gt;@hostname:&amp;amp;lt;path to destination&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
for cipher in aes128-cbc aes256-cbc aes128-ctr aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com; do&lt;br /&gt;
        echo &amp;amp;quot;$cipher&amp;amp;quot;&lt;br /&gt;
        for try in 1 2 ; do&lt;br /&gt;
                scp -c &amp;amp;quot;$cipher&amp;amp;quot; -p  $source $destination&lt;br /&gt;
                rsync -P --rsh=&amp;amp;quot;ssh -c $cipher&amp;amp;quot; $source $destination&lt;br /&gt;
        done&lt;br /&gt;
done&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>H Schumacher</name></author>
	</entry>
</feed>