Slow SSH login in SuSE Linux
Starting with SuSE 10 and including both openSuSE and SLES an annoying SSH problem appeared. When you SSH to the server (via PuTTY and such) you get the “login” prompts right away, but the “password” prompt takes up to 30 seconds to appear. Two things need to be done to correct this issue:
First, as root you need to make sure /etc/hosts has an entry with your server’s external IP and hostname. Here’s an example showing the hostname “icebox” and the IP for the primary NIC “192.168.122.98” both present in /etc/hosts:
icebox:~ # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:22:15:C8:A0:48 inet addr:192.168.122.98 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:830763 errors:0 dropped:0 overruns:0 frame:0 TX packets:377151 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:1219530793 (1163.0 Mb) TX bytes:23997815 (22.8 Mb) Interrupt:220 icebox:~ # grep `hostname` /etc/hosts 127.0.0.2 icebox.jedi icebox 192.168.122.98 icebox iceboxg iceboxg 192.168.122.99 iceboxw
Second, edit the SSH server configuration file /etc/ssh/sshd_config and add (or change, if already present) the UseDNS parameter to read “no”. After that restart sshd:
echo "UseDNS no" >> /etc/ssh/sshd_config /etc/init.d/sshd restart
Hopefully, the login delay will now be gone.
Thanks!
Very useful
James
Great this fixed our issue.
Thanks
Chad
Thanks a lot. It fixed the issue right away.
Thank you!
I don’t have a computer available to me right now but I need to access SSH on my iPod touch. Can anyone tell me how to install it?
My computer that uses WiFi just crashed, and the only other one has cable internet. It’s the computer that transmits the WiFi but isn’t connected to it. When I tried to go in WinSCP, which I successfully used on my other computer, It won’t work. Is there still a way to SSH to my iPod?
I have CoreFTP on my Vista 32 laptop, and NES, BSD Subsystem, and OpenSSH on the phone, how do you connect SSH to the iPhone to transmit the ROM’s?
THX
After installing the SSH program on the laptop, how do I get the address to access the iPhone? And what was that login/pw again?
Hey everyone,
I just got a new android tablet pc, but since it cant use heavy programs, I was thinking that i could just use an ssh terminal (in the tablet), with the “X thingy” to open windows and such, in order to work on my tablet, but all the hard processing would be done on my laptop at home.
How can I Configure both terminals to perform such a task? or is it even possible?
Thank you in advance!
once you jailbreak you ipod touch your battery lenght becoms less. in order to make it longer, you have to turn the ssh off…
my question is…what is ssh and how does it affect my ipod touch battery? and if i do turn the ssh, off what cant i do?
side question- wut is a lenuix or sonthing like that
Hello!
I’m pretty ignorant when it comes to these things, but is there a free way to ssh from a home computer to one at a university?
Thank you for any help you have to offer, and have a wonderful evening!
would a SSH access be suitable for us to exchange files from a mac server to windows systems ?
I am creating a script to be run by cron to sync my ftp servers files. My issue is when the script run, it asks for the ssh password. Since it is run at 1am by cron, so I obviously don’t want to enter the password. I have made rsa & dsa keys for my servers but if a reboot occurs , it doesn’t automatically connect. Is there a way to insert the password when it is asked or another method to let these two server connect without a password authentication.
I am trying to edit the information and pictures to a club website using SSH secure shell. I have been able to access the website but cannot delete any information that is already on it or add any files onto it. Is there something wrong with my settings? or is there something blocking my access to the website?
I am tired of having to plug my ipod into my computer to put new music on it. I was wondering how i could do this using ssh. I would also rather it be put on the music app not something like dTunes.
I’ve been looking into how to get free Apps and stuff for the iPod Touch, and I found that for most things I need this SSH thing to get said apps. Does anyone know of any good free SSH clients? CuteFTP has a free trial, but I don’t know if that will be a permenant solution.
I have two jail broken itouch’s (2nd gen and 4th gen) and I was wondering if it was possible to SSH into One from the other?