login problem via ssh

I login the host via ssh,I got the messages:

ssh: connect to address ::1 port 22: Network is unreachable

root@localhost's password:

Last login: Fri Mar 23 16:19:12 2007 from mtrx047.guangzt

Sun Microsystems Inc.SunOS 5.9Generic May 2002

ld.so.1: /usr/lib/ssh/sshd: fatal: relocation error: file /usr/lib/nss_ldap.so.1: symbol ldap_ld_free: referenced symbol not found

Connection to localhost closed.

I disable the ldap.conf and login again,but got the message:

root@localhost's password:

Last login: Fri Mar 23 16:19:38 2007 from localhost

Sun Microsystems Inc.SunOS 5.9Generic May 2002

Sun Microsystems Inc.SunOS 5.9Generic May 2002

why doble message "Sun Microsystems Inc.SunOS 5.9Generic May 2002"?

[784 byte] By [JnETa] at [2007-11-26 22:39:58]
# 1

Well, the message which you refer to is called the motd, or 'message of the day', and its basically the contents of /etc/motd .

If you have "PrintMotd" set to "yes" in /etc/ssh/sshd_config you might get a double motd, since one is printed by ssh and one by the login process.

Hence, check your /etc/ssh/sshd_config..

.7/M.

mAbrantea at 2007-7-10 11:53:27 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
the /etc/sshd_config file there is a line: #Banner /etc/issue
kdusta at 2007-7-10 11:53:27 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

Well, the issue file (represented by /etc/issue) and message-of-the-day (represented by /etc/motd) are two different things.

The issue is displayed Before the login prompt, the motd after you have authenticated.

The issue file is normally used to display warnings and disclaimers to users before they login, such as "if you mess up this system your knees might get injured" or "this is a private system, do not logon unless you are authorized to" and other ... umm.. relevant messages.

.7/M.

mAbrantea at 2007-7-10 11:53:27 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...