Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am a very frequent user of sshfs for mounting various disks over the network. I do however have a very small machine (with an atom processor) from which I need to mount a directory using sshfs.

Is it possible to disable all compression, and perhaps even also encryption when mounting using sshfs, as to limit the cpu usage on the machine from which the directory is mounted?

share|improve this question
You are dropping encryption and compression... let me think. Why don't you use FTP or SMB? – lajuette Oct 9 '10 at 7:19

4 Answers

up vote 8 down vote accepted

Although the high performance ssh adds a none cipher, the arcfour cipher is nearly as fast and is included standard.

Use: -o Ciphers=arcfour

I've been using this over the local network and I get about 85% of 100Mbps Ethernet or about 10.625MB/s

(In response vava's answer, sshfs would still be what it is even when ssh's encryption is off as the authentication protocol would still be active without which you might as well be using telnet.)

share|improve this answer
Thanks for very informative answer and this really speed up the sshfs :) – Vdt Jun 10 '12 at 13:57
Isn't it '-o cipher=arcfour' ? – asalamon74 Oct 3 '12 at 14:08
@asalamon74 No, it is not. From man ssh_config, "Ciphers: Specifies the ciphers allowed for protocol version 2 in order of preference." – Dan D. Oct 6 '12 at 5:20
-o Ciphers was not working for me. man ssh_config also lists Cipher: "Cipher Specifies the cipher to use for encrypting the session in protocol version 1." – asalamon74 Oct 6 '12 at 8:48
@asalamon74 what means "not working"? You are quoting the option for SSH v1. Are you using SSH v1 (you really really shouldn't)? As quoted from the man page -o Ciphers is the correct option for SSH v2. – kynan Nov 4 '12 at 18:04

There is no way to disable encryption - this is ssh after all. And it looks like compression is disabled by default as you have to request it with the -C switch.

But you may want to check your ~/.ssh/config file for settings regarding compression. If you add the following lines at the top of that file, compression should be disabled:

Host *
    Compression no
share|improve this answer

You can mount with -o compression=no to turn the compression off. It is not possible to turn encryption off, wouldn't be sshfs after that :) If it is slow I suggest to use other way to mount a directory, like through samba, nfs or ftp.

share|improve this answer
NFS would be a good choice – Nerdling Aug 31 '09 at 13:00

Use sshfs + socat

Check this out: http://pl.atyp.us/wordpress/index.php/2009/09/file-transfer-fun/

share|improve this answer
While this may theoretically solve the problem, it would be preferred to summarize the link contents, and provide the link as reference – Luke Nov 30 '12 at 6:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.