Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-08-2009, 05:14 AM
|
#1
|
|
Member
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 113
Rep:
|
ssh connect to systems using hostname which are exist in different domains
I want to do ssh connection to two or more systems using hostname, these systems (hostanmes) are existing in different domains.
How can I connect?
EX: ssh root@<hostaname1>
ssh root@<hostaname2>
Please help me
ThanQ,
NAgendra Rednam
|
|
|
|
12-08-2009, 05:18 AM
|
#2
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Do the hostnames resolve?
Code:
ping hostaname1
ping hostaname2
use ssh as user then become root using su or sudo
|
|
|
|
12-08-2009, 05:24 AM
|
#3
|
|
Member
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 113
Original Poster
Rep:
|
one host is reachable but for another host i am getting "ping: unknown host" message
Here I can not resolve two different domains at the same time.Please help me.
ThanQ,
Nagendra
|
|
|
|
12-08-2009, 05:37 AM
|
#4
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Quote:
|
Here I can not resolve two different domains at the same time.Please help me.
|
What o you mean by different domains?
Are they in your LAN
Are they in a different subnet?
Are they outside your network?
|
|
|
|
12-08-2009, 05:43 AM
|
#5
|
|
Member
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 113
Original Poster
Rep:
|
These two IPs have Different DNS search paths.
ThanQ,
NAgendra
|
|
|
|
12-08-2009, 05:45 AM
|
#6
|
|
Member
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 113
Original Poster
Rep:
|
Here I able to do ssh connection or ping using host IP,
ThanQ,
Nagendra R
|
|
|
|
12-08-2009, 05:48 AM
|
#7
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
If the IP is permanent,
You can add them to your /etc/hosts file
|
|
|
|
12-08-2009, 05:58 AM
|
#8
|
|
Member
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 113
Original Poster
Rep:
|
Yes, now I able to ping using hostname.
ThanQ for help . Is it possible to ping without adding individual hosnames in /etc/hosts file, here all hosts have same DNS search path.
ThanQ,
Nagendra R
|
|
|
|
12-08-2009, 06:01 AM
|
#9
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
If your DNS server doesn't resolve the hostnames, you need to add them in the hosts file.
However, you can ask IT to add them to the DNS server.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:46 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|