Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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. |
|
 |
07-25-2004, 03:00 AM
|
#1
|
|
Member
Registered: Sep 2003
Location: Bangladesh
Distribution: Debian
Posts: 102
Rep:
|
can't ssh through hostname
I have two PC. they are
202.84.35.225 pc1.dns1.com pc1
202.84.35.224 pc2.dns2.com pc2
both PC are running win98 and redhat 9
from pc1 ( win98 ).......I cannot ssh to pc2 by typing "ssh pc2"
but if I write ssh 202.84.35.224....then it's alright....
pls help...
|
|
|
|
07-25-2004, 03:12 AM
|
#2
|
|
LQ Newbie
Registered: Jun 2003
Location: Kuwait
Distribution: AIX,p690,SUN,SGI,RedHat7.3
Posts: 12
Rep:
|
coz your win98 Pc will not recognise your linux pc name in dns entry or hosts file.
add IP/name entry in pc dns/hosts file.
|
|
|
|
07-25-2004, 04:11 AM
|
#3
|
|
Member
Registered: Mar 2004
Posts: 519
Rep:
|
Yes, just to expand on the above post, when you type
ssh PC2
from your Win98 box, it will try and look up the IP address of "PC2" from your DNS server. Obviously, a DNS server will not have an entry for PC2.
Therefore, you have to modify the hosts file on the Win98 box, (use Google to find out where the file is, I believe it is just called "hosts") and add an entry following the example they give.
|
|
|
|
07-25-2004, 07:00 AM
|
#4
|
|
Member
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
|
You could also run your own internal DNS server, or if you are running samba, you can enable the WINS server option to help with this type of name resolution.
Cheers,
MrKnisely
|
|
|
|
07-25-2004, 01:54 PM
|
#5
|
|
Member
Registered: Sep 2003
Location: Bangladesh
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
my hosts file is as follows :
# Copyright (c) 1998 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# 127.0.0.1 localhost
202.84.35.225 pc1 pc1.dns1.com
202.84.35.224 pc2 pc2.dns2.com
202.84.35.223 pc3 pc3.dns3.com
202.84.35.222 pc4 pc4.dns4.com
but I cannot ssh through hostname
|
|
|
|
| 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:54 PM.
|
|
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
|
|