can't ssh through hostname
I have two PC. they are
22.214.171.124 pc1.dns1.com pc1
126.96.36.199 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 188.8.131.52....then it's alright....
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.
Yes, just to expand on the above post, when you type
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.
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.
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
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 184.108.40.206 rhino.acme.com # source server
# 220.127.116.11 x.acme.com # x client host
# 127.0.0.1 localhost
18.104.22.168 pc1 pc1.dns1.com
22.214.171.124 pc2 pc2.dns2.com
126.96.36.199 pc3 pc3.dns3.com
188.8.131.52 pc4 pc4.dns4.com
but I cannot ssh through hostname
|All times are GMT -5. The time now is 08:06 PM.|