Results 1 to 3 of 3

Thread: Unable to resolve hostname via ssh

  1. #1
    Join Date
    Jul 2011
    Posts
    56

    Unable to resolve hostname via ssh

    On my local network I am having static internet connection (Dhcp). I want to do Ssh. When I am trying to connect other computer using Ssh it’s not working. I m unable to figure out the problem. Can anybody help me?

    Code:
    "Ssh: Could not resolve hostname da@da-laptop: Name or service not known"

  2. #2
    Join Date
    May 2008
    Posts
    945

    Re: Unable to resolve hostname via ssh

    There is a dissimilarity between DHCP and DNS. If your local network router has a DNS built in you would require telling Ssh to make use of the DNS. That would be configured in /etc/ssh/ssh_config. a little similar to "UseDNS ". keep in mind you have to reprocess the ssh daemon if you modify ssh_config.

    At this time if there is no a DNS on your local network then you would have to situate up alias in your /etc/hostsfile so your client know about what ip address was assign to other pc

  3. #3
    Join Date
    Apr 2010
    Posts
    124

    Re: Unable to resolve hostname via ssh

    I always make convinced my machine has a reserved or static IP.
    Code:
    ssh user@ip_address

Similar Threads

  1. Replies: 9
    Last Post: 14-05-2012, 06:05 PM
  2. How DNS used to resolve hostname in the CISCO router?
    By Calverta in forum Networking & Security
    Replies: 3
    Last Post: 20-12-2011, 03:02 PM
  3. Unable to Ping Exchange Hostname in VPN
    By got2balls in forum Networking & Security
    Replies: 3
    Last Post: 09-03-2011, 08:09 PM
  4. Replies: 4
    Last Post: 18-03-2009, 05:39 AM
  5. DNS unable to resolve IP address, help
    By Donald in forum Networking & Security
    Replies: 4
    Last Post: 30-09-2008, 05:52 PM

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
  •  
Page generated in 1,715,864,728.13104 seconds with 17 queries