View Full Version : Sluggish FTP and SSH
Dogcow
02-06-2002, 04:46 AM
FTP and SSH take a while to respond when connecting. FTP takes a long time before responding at all, while ssh takes a long time to process user passwords. What would make this so slow? Any suggestions on speeding them up?
Thanks
rudy_venice
08-17-2004, 05:26 PM
FTP and SSH take a while to respond when connecting. FTP takes a long time before responding at all, while ssh takes a long time to process user passwords. What would make this so slow? Any suggestions on speeding them up?
Thanks
I had the same problem here with a 733mhz single cpu G4 with 1 gb RAM. I upgraded the processor and added some RAM and it improved a huge amount. We use ours for ftp, webserver and mailserver so it was busy. I'd be interested in what you find is the problem in the end.
yellow
08-17-2004, 05:35 PM
FTP and SSH take a while to respond when connecting.
Outbound or inbound? Mac specs? OS version?
Outbound or inbound? Mac specs? OS version?
i have the same problem with a 1.8ghz imac, 768 mb ram, brand new machine.
i use a router/firewall, software firewall and NIDS, but have disabled all of it and it hasn't helped.
all inbound to the computer ssh and ftp is running on. ftp is ridiculously slow, half the time the connection dies, and ssh gives me a login prompt quickly, but takes a very long time (a couple of minutes at least) to prompt for the password.
i hope someone can help figure this problem out because it makes remote access to my machine unbearable. =/
-- the only difference is that i'm actually using Mac OS X, not Server.
hayne
03-01-2005, 02:33 PM
Look for a post on these forums not so long ago about slow ssh connections. If I recall correctly, the solution there was to disable IPV6 since the slowness was caused by failing IPV6 reverse name lookups or something.
ok, i'll try that, thanks.
apologies for the cross post. i was just trying to keep to the topic. =)
well, for one i'm not running bind. i've disabled all IPV6
(ceph@cephnet:~) $ ip6config stop-v6 all
Stopping IPv6 on all interfaces.
ip6: error detaching en0
ip6: error detaching fw0
tried as sudo, still get those last two errors, and nothing changes in regards to ssh and ftp time.
do the en0 and fw0 interfaces need to be inactive for it to work?
thanks.
hayne
03-01-2005, 03:52 PM
Use the Network preferences GUI for disabling IPv6 - via the "Configure IPv6" button under the TCP/IP pane.
i used the preference panel to turn off IPv6, and it looks like it drastically reduced the time it takes for ftp or ssh to respond. It's not 100% though, as it still takes about 15 seconds for ftp to kick through (could be anything though, likely the router), but it's a whole lot better than it was.
thanks again for the help.
voldenuit
03-02-2005, 11:21 PM
For the 15 seconds issue this recent hint should help:
http://www.macosxhints.com/article.php?story=20050223231518462#comments
For the 15 seconds issue this recent hint should help:
http://www.macosxhints.com/article.php?story=20050223231518462#comments
thanks.. i'm just not sure bellsouth cares or will do anything about this. (i get the NXDOMAIN deal, so ssh will still be a little slow unless i can find a way to fix that too.)
i appreciate the help
KRaven0825
03-04-2005, 09:29 AM
Just something I noticed with my ftp and ssh from outside my network. First if you are trying to ftp or ssh into a machine that is on an airport connection make sure interference robustness is off, it might be coincidence but it cut my wait time in half....I have virtually no delay in ftp, telnet, or ssh, and my laptop is running on a airport express that is boosting my signal from my airport extreme that is across the house.
Another thing if it is your internet provider....try changing the MTU with your ifconfig for en0 or en1(depending if you are using wireless or not)....i know DSL is picky about the MTU being 1492 (i believe) for optimum performance....my MTU is 1500 but I am on T1, so it may vary...also this MTU defaults back to 1500 with a reboot, so if you change it it will change back.
The command is below to change it.
As root:
ifconfig en1 mtu 1492
you can change that number to whatever, but i am no expert, i just read this off of other boards a while back and remembered it.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.