<div dir="ltr">You might have a problem with the dns resolution. Add the ip of both the machine to both /etc/hosts or disable the dns options in the sshd config.<br><br>Ram on<br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 5:34 PM, Shlomi Fish <span dir="ltr"><<a href="mailto:shlomif@gmail.com">shlomif@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Kfir,<br>
<div><div></div><div class="h5"><br>
On Mon, Sep 12, 2011 at 5:25 PM, Kfir Lavi <<a href="mailto:lavi.kfir@gmail.com">lavi.kfir@gmail.com</a>> wrote:<br>
><br>
><br>
> On Mon, Sep 12, 2011 at 4:37 PM, Shlomi Fish <<a href="mailto:shlomif@gmail.com">shlomif@gmail.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> (I apologise from writing from my <a href="http://gmail.com" target="_blank">gmail.com</a> account, but as you'll see<br>
>> below,<br>
>> writing from my home E-mail account is not bearable.).<br>
>><br>
>> I have a desktop x86-64 Core i3 machine (running Mageia Linux 1) that<br>
>> connects<br>
>> via wired Ethernet to my NAT/router and there is a remote x86-64 Core Duo<br>
>> laptop (running Mageia Linux 2), connected via wireless. Often when I type<br>
>> commands on bash on the remote laptop via ssh, there is a significant<br>
>> delay,<br>
>> and moreover running claws-mail or gringotts (two fast gtk+ apps) from the<br>
>> laptop are slow, which hadn't been the case with my older desktop machine.<br>
>> tcpdump -i wlan0 on the laptop and htop on the laptop show nothing that<br>
>> might<br>
>> cause it.<br>
>><br>
>> The delays in the connectivity were not bad with the previous desktop<br>
>> machine<br>
>> which was an old Pentium 4 2.4GHz machine, which was much slower and<br>
>> underpowered.<br>
>><br>
>> So far I tried:<br>
>><br>
>> 1. Doing /etc/init.d/iptables stop on the desktop machine.<br>
>><br>
>> 2. Relocating the laptop closer to the wifi NAT/router.<br>
>><br>
>> Neither of those helped.<br>
>><br>
>> Can anyone shed any light on this?<br>
>><br>
>> Regards,<br>
>><br>
>> -- Shlomi Fish<br>
>><br>
>><br>
>> --<br>
>> ------------------------------------------<br>
>> Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br>
>><br>
>> Electrical Engineering studies. In the Technion. Been there. Done<br>
>> that. Forgot a lot. Remember too much.<br>
>><br>
>> _______________________________________________<br>
>> Linux-il mailing list<br>
>> <a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
>> <a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
><br>
> Hi Shlomi,<br>
> You need to edit 2 files:<br>
> 1. edit /etc/ssh/sshd_config and add the line 'UseDNS no'<br>
> 2. edit /etc/nsswitch.conf and make sure the line:<br>
> 'hosts: files dns'<br>
> have just the 'files' and 'dns'. delete everything else from this line.<br>
><br>
> This will make ssh instant!<br>
><br>
<br>
</div></div>Thanks for your advice. I added these suggestions on both hosts and<br>
restarted sshd but I'm still getting the delays in typing the bash<br>
commands on ssh and gringotts is still slow.<br>
<br>
Regards,<br>
<br>
-- Shlomi Fish<br>
<br>
> Kfir<br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
</font><div><div></div><div class="h5">------------------------------------------<br>
Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br>
<br>
Electrical Engineering studies. In the Technion. Been there. Done<br>
that. Forgot a lot. Remember too much.<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</div></div></blockquote></div><br></div>