Results 1 to 4 of 4

Thread: [SOLVED] Weird name or service not known problem when using ssh

  1. #1
    Join Date
    Nov 2007
    Beans
    11
    Distro
    Ubuntu 8.10 Intrepid Ibex

    [SOLVED] Weird name or service not known problem when using ssh

    I'm running Ubuntu 8.10 and I'm getting a host not found exception when I try to ssh to my svn repository server. But when I do nslookup / host / dig then the repository resolves just fine:

    Code:
    wessel@delgurth:~$ host svn.client.local
    svn.client.local has address 172.16.0.81
    
    wessel@delgurth:~$ ssh svn.client.local
    ssh: Could not resolve hostname svn.client.local: Name or service not known
    When I add client.local to the search domains in my /etc/resolv.conf and try "ssh svn" (without the client.local) it works just fine:

    Code:
    wessel@delgurth:~$ cat /etc/resolv.conf 
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 10.90.152.200
    nameserver 10.90.150.16
    search management.local, client.local
    
    wessel@delgurth:~$ ssh svn
    
    <snip>security message etc</snip>
    
    wessel@svn:/export/home/wessel>

    I hope someone here has an idea what can be causing this. I'm not running my own name server nor using dnsmasq, so that can't be the problem. And svn nor svn.client.local are in my /etc/hosts:

    Code:
    wessel@delgurth:~$ cat /etc/hosts
    127.0.0.1 localhost
    127.0.1.1 delgurth
    
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    I hope someone here knows what I should do to fix this.
    Last edited by delgurth; November 12th, 2008 at 10:37 AM.

  2. #2
    Join Date
    Jan 2007
    Beans
    5,549

    Re: Weird name or service not known problem when using ssh

    does it work when you try to ssh via ip?

  3. #3
    Join Date
    Nov 2007
    Beans
    11
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Weird name or service not known problem when using ssh

    Quote Originally Posted by superprash2003 View Post
    does it work when you try to ssh via ip?
    Yes, that also works. But I've found what is causing my problem. It is the avahi-daemon, at least, if I stop it the problems are over. I'll disable it for now, at least until I understand why it doesn't work in this situation.

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Weird name or service not known problem when using ssh

    [edit] I shouldn't try to think with a cold...
    Last edited by Iowan; November 12th, 2008 at 01:40 AM. Reason: On 3rd thought, never mind...
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •