Re: how to setup fc3 to ssh from remote server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Charles Li wrote:
--- Rick Stevens <rstevens@xxxxxxxxxxxxxxx> wrote:

Charles Li wrote:

--- Rick Stevens <rstevens@xxxxxxxxxxxxxxx> wrote:


Charles Li wrote:


Hi, When I try to ssh in the fc3 from another server,

it


gives me this error:
[server]$ ssh -X fc3-server
ssh: connect to address fc3-server port 22: No

route


to host

When do I need to start up?

Is "fc3-server" in your /etc/hosts file or resolvable via DNS? Can you ping it? Do you have a default gateway configured that can get at it?


> I can ping the fc3-server from the server (S1) that I

can issuing the ssh.

You didn't say if you can ping it by name or IP only. We need to know that.


fc3-server is not in the S1's /etc/hosts.

If pinging via the IP address works, but pinging via
the hostname doesn't, you either need to enter the IP and
hostname into /etc/hosts or
make sure there are appropriate records in your DNS
service.



How do I check whether fc3-server is resolvable

via

DNS, and also the gateway?

To check DNS, "# dig fc3-server". See if you get an address back.

Since you can ping it one way or the other, the
gateway is probably OK.
I am pinging by IP address.  This machine does not
have a name.  Also, I am using the ip address with
SSH.

That's not what you said before. I quote:

"[server]$ ssh -X fc3-server
ssh: connect to address fc3-server port 22: No route to host"

The following is the dig command output:

[oracle@epic11 oracle]$ dig 172.20.3.53

No, not right. To see what the IP address is for host "fc3-server", the command would be

	dig fc3-server

To find out which HOST is associated with IP address 172.20.3.53 (called
a "reverse DNS lookup", the command would be

	dig -x 172.20.3.53

(note the "-x", meaning "reverse lookup").

Since you don't have a line such as:

	172.20.3.53	fc3-server

in /etc/hosts, you should be able to do a

	ssh 172.20.3.53

to access the machine by IP address.  Or add that line to /etc/hosts
and use "ssh fc3-server".
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens@xxxxxxxxxxxxxxx -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-           Denial.  It ain't just a river in Egypt anymore!         -
----------------------------------------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux