LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-19-2010, 01:09 PM   #1
g_ramesh
LQ Newbie
 
Registered: Jun 2010
Posts: 29

Rep: Reputation: 0
how to connect to a pc with rsh/ssh


Hi

two pcs with following ip add are there
pc1 - 10.1.1.1
pc2 - 10.9.16.1

I said to my friend that both can not talk to each other as it is,
but have another NIC and give the ip in the range 10.9.16.2 then only
we can use rsh/ssh to log into the pc2. Is it correct or is there a better way ?
 
Old 07-19-2010, 01:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Well this is clearly nothing to do with ssh or rsh. You need some form of IP route between the two devices, and suitable routing entries and all applicable devices to reach each other. Assuming you have a /24 mask on each machine they will not be able to talk without some form of router in the middle.
 
Old 07-19-2010, 01:38 PM   #3
g_ramesh
LQ Newbie
 
Registered: Jun 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
Well this is clearly nothing to do with ssh or rsh. You need some form of IP route between the two devices, and suitable routing entries and all applicable devices to reach each other. Assuming you have a /24 mask on each machine they will not be able to talk without some form of router in the middle.
thanks for your reply. Is it not possible to talk to each other without a router? I gave rsh/ssh as an example only to log into each other.
 
Old 07-19-2010, 01:40 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@g_ramesh: If you're so inclined, and really want to learn, read The TCP/IP Guide.

Short answer is - you already have your answer. (Unless you're on a subnet using an /8 netmask, which would be odd.)
 
Old 07-19-2010, 01:42 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Quote:
Originally Posted by g_ramesh View Post
thanks for your reply. Is it not possible to talk to each other without a router? I gave rsh/ssh as an example only to log into each other.
tcp/ip works like it does for VERY VERY good reasons.
 
  


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
How to setup ssh and rsh in Linux ? eng_mohammedmostafa Linux - Software 2 04-24-2010 06:14 PM
timeout option in ssh or rsh?? kdelover Linux - Newbie 10 01-11-2010 12:09 AM
rsh vs ssh vinaytp Linux - Newbie 7 12-01-2009 07:01 AM
rsh / ssh woes kevingpo Fedora 11 04-26-2007 06:46 AM
what is rsh and ssh ztdep Linux - Networking 2 07-17-2005 05:28 AM


All times are GMT -5. The time now is 08:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration