Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Wednesday, July 02, 2008

ssh: w.x.y.z: Hostname and service name not provided or found

Error when run "ssh -l username w.x.y.z"
ssh: w.x.y.z: Hostname and service name not provided or found

Cause:

When you connect using a TCP/IP address, ssh expects to be able to perform a DNS reverse-lookup for the address provided. If the host name cannot be resolved or resolved to wrong hostname, this error is returned. To resolve the problem, have your DNS admin to correct the reverse DNS lookup.

# nslookup w.x.y.x
make sure it returns the correct hostname


Cause2:

If user root can ssh to remote server while normal user can't, then it means file /etc/resolv.conf does not have enough permisson to normal users.
# ls -l /etc/resolv.conf
# chmod o+r /etc/resolv.conf

1 comment:

Pankaj Sharma said...

Dear Sir,

I am trying to configure SNMPV3 on AIX 5.3

I am not able to see any CPU, Network or Memory related information. Can someone help me. What am I doing wrong? Please find the snmpdv3.conf file below.
***********************************************************

VACM_GROUP group1 SNMPv1 public -

VACM_VIEW defaultView internet - included -

1. exclude snmpv3 related MIBs from the default view

VACM_VIEW defaultView snmpModules - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -

1. exclude aixmibd managed MIBs from the default view

#VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - included -

VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -

NOTIFY notify1 traptag trap -

TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -

TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 public noAuthNoPriv -

COMMUNITY public public noAuthNoPriv 192.168.100.141 255.255.255.0 -

COMMUNITY public public noAuthNoPriv 127.0.0.1 255.255.255.255 -
DEFAULT_SECURITY no-access - -

logging file=/usr/tmp/snmpdv3.log enabled
logging size=100000 level=0

smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password # gated

smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Labels

BlogCatalog