LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2014, 12:19 PM   #1
stevephd
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Rep: Reputation: Disabled
ssh failure in name resolution


Hello
I have tried to network two computers to each other (not internet, just intranet), but have come across some problems.

I have physically connected two linux systems (one Red Hat and one Fedora) using a switch. I then created rsa keys on user1@hostname under /.ssh directory. I then copied the id_rsa.pub from user1@hostname to a vi text and moved it to the other computer, user2@hostname and pasted it to into the file named “authorized_keys’ under its .ssh directory. I then rebooted both computers.

Now, when I go to user1@hostname and ssh user2@hostname (not sure here about how much to write for address. That is, my hostname on user2 is hostname.localdomain..so, should I ssh user2@hostname.localdomain??). Anyway, either way using user2@hostname or user2@hostname.localdomain, I get

ssh: hostname.localdomain: temporary failure in name resolution.

I would greatly appreciate any assistance on this issue. I am really NEW to networking (working out of the book ‘Networking for Dummies’)…

Steve
 
Old 08-19-2014, 12:42 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
This is not really an SSH problem. Supposing you did
Code:
ping hostname.localdomain
you would have got something similar. Maybe you meant to enter these hosts in the /etc/hosts file where the other one will become aware of it.
 
Old 08-19-2014, 02:48 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,184

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
There are several way to configure some sort of name resolution.

To elaboate see my post
http://www.linuxquestions.org/questi...sh-4175501696/

You can use just use the IP address, add an entry to your /etc/hosts file, add a host shortcut to a .ssh/config file or use a local DNS server.

Last edited by michaelk; 08-19-2014 at 02:57 PM.
 
1 members found this post helpful.
Old 09-09-2014, 03:18 AM   #4
osucowboy0510
LQ Newbie
 
Registered: Aug 2014
Distribution: CentOS 7
Posts: 11

Rep: Reputation: Disabled
use one of your machines as a dns server it should be able to connect or as michael said add an entry to you /etc/hosts file should work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A **Temporary** failure in name resolution Henster Linux - Networking 9 06-12-2009 12:50 PM
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
Temporary failure in name resolution stuffradio Fedora 1 12-07-2006 10:55 PM
Temporary failure in name resolution blunt Slackware 1 10-31-2006 11:23 AM
Name resolution failure mmeckes Linux - Networking 2 08-02-2004 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration