SSHFS very slow in 12.04


I clean-installed 12.04 after using 10.10.



When using SSHFS, everything is now very slow. (I am on very fast ethernet, and also tried on wireless).



e.g. if I:



sshfs user@XXX.YYY.ZZZ:/home/user/directory ~/Directory
cd ~/Directory
nautilus .


nautilus will take almost a minute to open. Or if I open a file with gedit or geany it also takes nearly a minute. These things used to take a couple seconds when I did them in 10.10. Any ideas?



Edit: To clarify a few things - ssh itself is quite fast. I've done an identical sshfs on the same network from an ubuntu 10.04 machine and it is quite fast. On 12.04, everything in the sshfs mounted directory is slow - even to just 'ls' is very slow. Even tab completing a command is very slow when not referring to the directory contents.



This seems to be related to ipv6. It worked for me after I disabled ipv6. Hopefully somebody else can comment as to why ipv6. In my case, forwarded X sessions were also slow, in addition to the sshfs misery.



Here's the workaround I used:



echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf
sysctl -p


I also added "ipv6.disable=1" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run update-grub, then rebooted.



Finally, if thereafter it doesn't work at all, add "AddressFamily inet" above ListenAddress in the other machine's /etc/ssh/sshd_config and restart sshd. For some reason, the default addressfamily of "any" doesn't work in that case, even when you specify 0.0.0.0 as a listenaddress. Granted, the other end is running ssh 5.5.


Source: http://askubuntu.com/questions/128722/sshfs-very-slow-in-12-04

More

  • Are there any open source alternative to Landscape?
    Better yet, are there any Spacewalk-like software that works for both RedHat-based and Debian-based systems? There is. In addition to straight Puppet and Spacewalk, there is a puppet-based system called "foreman" that does most of what you're looking for.while the screenshot does show CentOS and Windows clients, it does have Ubuntu
  • Error: unknown command 'gfxmode'. Pressing any key continues [closed]
    Possible Duplicate: Error on boot: unknown command 'gfxmode'. Pressing any key continues A few days ago, I installed Ubuntu 12.04. I changed the order of systems on the list of boot loader(I use Windows Vista and Ubuntu on one computer). I also changed, by the way, the appearance of the selection screen (resolution). All this
  • Why is the Purchase Section in Software Center empty?
    The "For Purchase" section in the USC is empty.Why? So now it works!What I did:Open software center, go to "Edit->Software Sources"Disable "Canonical Partner" checkboxEnable "Canonical Partner" checkbox againWait some seconds and restart USCMore info:How do I enable the "partner" repository?Make sure under the View menu you
  • Only Mirror mode works with external monitor
    I recently installed 12.04 on my Dell Latitude D530. I always use a external monitor at work, instead of my laptop screen. In this case, the only option that works for me is "Mirror Displays". I can not switch to either of the displays (external monitor or laptop).When I unselect "Mirror Displays" and choose the Monitor as my only display,
  • Help trying to get two-finger scrolling to work on Asus UL80VT
    Multi-touch works fine on Windows 7 with: two-fingers scroll vertical and horizontally, two-finger tap for middle click, and three-finger tap for right click. However with Ubuntu, I've never been able to get multi-touch to "save" and work, I was able to get it to work a few times but after restarting - it would just reset back. I have the
  • How can I remove and re-install Unity?
    Unity is misbehaving after installing GLX Dock - HUD does not open with GLX Dock turned off and there are ugly shadows in the panel,three control buttons (close,minimise,maximise) and "Ubuntu Desktop" label when there are no apps running.I have to click the top panel to get the super key to open the dash.I have tried unity --reset and unity
  • Unity does not start automatically, have to start it manually
    After upgrading to 12.04 the system starts up normally, and shows me the login screen.After I log in, unity does not seem to start up and shows me a small XTerm window.I start unity manually from there by typing into the command. The xterm window stays open and if I close it it takes me back to the login screen. The theme also seems to be
  • Why does unity make it hard to rearange an icon in the launcher? [closed]
    I recently installed the latest version of Ubuntu, and I noticed that when you try to click on an icon in the launcher, unless you wait for one second or drag the icon to the right, you will not be able to rearrange the icon. What would the purpose of that be? The main reason that a simple drag does not reposition an icon is that the
  • Holding Super Key doesn't show Unity shortcuts
    as the title says, when I hold the Super key unity shortcuts list doesn't appear. I'm on Ubuntu 12.04 (fresh install).I can see the dock that shows up with numbers on icons to launch apllications.Help,Thanks. What's your screen's resolution? The keyboard shortcut list is not displayed on small monitors.Also, make sure it is configured to
  • dhcp server doesent assign network dns to my other host on my network
    i had had a problem with my dhcp but i manged to fix my problem now the network start but i have a problem with DNS my clients in the network don't get any dns from my dhcp.my network works as follow my i connect to wireless device then i share it throw out my Ethernet cable.my configuration:/etc/dhcp/dhcpd.conf #/etc/dhcp3/dhcpd.conf
  • No suspend on lid closing on a Samsung Series 5 14 NP530U4BI
    Ok, i realize I am not the only one, but I will try to provide all info possible to make it exemplary as possible and narrow down the error sources.I have a fresh install of Ubuntu 12.04 and the suspend worked fine upon having it freshly installed but now it does not anymore.The suspend option from the system power button on the top right
  • What is the difference between “Nautilus”, “Files” and “Home Folder”?
    When I type "nau" in the search bar of the applications-HUD the result is a "Home Folder" folder and a "Files" folder installed but the "Files" has a Home drawing in it and is recently used, whereas the "Files" doesn't and is not recently used. The search result also returns some tools for Nautilus but with different icons and I can't see
  • Why does unity make it hard to rearange an icon in the launcher? [closed]
    I recently installed the latest version of Ubuntu, and I noticed that when you try to click on an icon in the launcher, unless you wait for one second or drag the icon to the right, you will not be able to rearrange the icon. What would the purpose of that be? The main reason that a simple drag does not reposition an icon is that the
  • How do I stop the Dash tooltip obscuring the search bar
    If I click on the dash button, and don't move the mouse somewhere else before starting to type in the search bar, the tool-tip saying "Dash Home" stays up, obscuring the start of what I type into the search bar. Is there any way to get the tool-tip to disappear when I start typing, or fade out after a short period? Failing that, how do I
  • Set terminal title to taskbar?
    When I use vim to edit some file, I have the set title command in my .vimrc.So it changes the title of the terminal.But this changed/new title is not reflected on taskbar.Is there any way to do that?I am using Ubuntu 10.10.