Server and Network Monitoring with iPhone
February 25, 2010 – 6:53 pm | No Comment

What is a Unix sysadmin doing with an iPhone, you ask? It was a birthday present, if that’s all right with you. I know, I should have gotten something odd with a beta version of …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands and Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands and Shells, Networking

Slow SSH login in SuSE Linux

Submitted by Igor on November 3, 2009 – 6:17 pmOne Comment
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.

Popularity: 13% [?]

Related posts

One Comment »

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.