LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-23-2007, 05:10 AM   #1
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Rep: Reputation: 30
operate system1 from system2


hi all
i have two systems have internet connection.
with deferent ip's.
ex: system1 and system2
how can i operate system1 from system2

is there any way..

thank you in advance
 
Old 05-23-2007, 05:29 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
cmd line: ssh
GUI: vnc
 
Old 05-23-2007, 06:06 AM   #3
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
thank you for quick replay

Quote:
Originally Posted by chrism01
cmd line: ssh
i wanna do with command line

how can i do with ssh

van you help me

thank you in advance
 
Old 05-23-2007, 06:57 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think you need to do some serious background reading, then maybe come back with questions afterwards.
Here is a very good online book/manual:
http://rute.2038bug.com/index.html.gz
 
Old 05-23-2007, 09:41 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
From system1:
Code:
ssh system2
To identify 'system2', use either the dotted-decimal IP (eg 123.12.34.56), or an IP name that can be resolved by your local nameserver, or is resolved in the /etc/hosts file on system1.
Now, here is the kicker; you will require a password to log in to system2, unless you have set up shared public keys. I know this will be troubling for you, but get over it.

--- rod.
 
Old 05-23-2007, 09:43 AM   #6
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 31
ssh 123.456.789.123

Then fill in the details as you go along.
e.g. Who you log in as, password, etc.

Pretty easy, methinks.
 
Old 05-23-2007, 10:33 AM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Note that OP didn't specify operating systems. If *nix, then SSH is the way to go. If Windows, then IMO SSH is still the way to go but first cygwin needs to be installed on the Windows machine and the sshd needs to be configured.
 
Old 05-23-2007, 01:30 PM   #8
sidney.harrell
Member
 
Registered: Apr 2006
Location: Stafford, VA
Distribution: Ubuntu 6.06, 7.04, Slackware 11
Posts: 45

Rep: Reputation: 15
Do you have accounts on both machines?
 
Old 05-23-2007, 11:08 PM   #9
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sidney.harrell
Do you have accounts on both machines?
yes, i have, i am using two machines
 
Old 05-23-2007, 11:51 PM   #10
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
hi

hi
i tried this "ssh ipaddress(system2)"
system1 is fedora5 and
system2 is windows xp

it is saying like this
Code:
ssh 192.xxx.x.xxx
ssh: connect to host 192.xxx.x.xxx port 22: Connection refused
how can i do this
linux to window and viceversa..

thank you in advance
 
Old 05-24-2007, 12:08 AM   #11
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
On windows you will have to install the cygwin package which will give you access to a lot of unix commands, and will enable you to run the sshd daemon, which will let you ssh to your windows computer.
 
Old 05-24-2007, 12:14 AM   #12
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jiml8
On windows you will have to install the cygwin package which will give you access to a lot of unix commands, and will enable you to run the sshd daemon, which will let you ssh to your windows computer.
ok thank you.
is this command (ssh ...) works for all linux systems that is
private and public ipaddress..(all IP's)

thank you in advance.
 
Old 05-24-2007, 12:15 AM   #13
sidney.harrell
Member
 
Registered: Apr 2006
Location: Stafford, VA
Distribution: Ubuntu 6.06, 7.04, Slackware 11
Posts: 45

Rep: Reputation: 15
You have to have an ssh server running on the machine you are trying to connect to. It's a client-server relationship. The client in this case is the ssh program you are trying to run on your local machine (the one you are typing into). The server is the ssh server program that you must have running on the remote machine (the one you are trying to access over the LAN). Many distrobutions of linux, like slackware and fedora, come with the ssh server already installed and configured. Other distros like Ubuntu require you to download and install the ssh server, sometimes referred to as openssh. I don't know about setting up an ssh server in windows, does anyone else?
Once you have the ssh client and server setup, and you have accounts on both systems it's pretty easy. If I have accounts sidney@soltan1 and sidney@soltan2, then in a terminal on soltan1 I type:
Quote:
ssh soltan2
By default, ssh looks for an account with the same username you are using, so the above is equivalent to:
Quote:
ssh sidney@soltan2
If I had accounts sidney@soltan1 and sidney2@soltan2 then I would have to use:
Quote:
ssh sidney2@soltan2
And it would prompt me for the password for sidney2@soltan2.
 
Old 05-24-2007, 12:25 AM   #14
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jiml8
On windows you will have to install the cygwin package which will give you access to a lot of unix commands, and will enable you to run the sshd daemon, which will let you ssh to your windows computer.
hi
i installed "New Cygwin DLL 1.5.24-2 release" in windows
again am unable to ssh 192.xxx.x.xxx
from linux to windows
is it possible?

how can do

thank you in advance
 
Old 05-24-2007, 12:27 AM   #15
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
I don't know about setting up an ssh server in windows, does anyone else?
I have done it using OpenSSH and Cygwin. It is a bit of a pain, and there is a script you need to make it a Windows service, but when it is configured it works just fine. I don't have that info right in front of me, but if/when OP gets to the point where he's ready for that info, I can get him through it.

Right now, though, it looks to me like he has a LOT to learn before he'll be doing that.
 
  


Reply



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 operate Mysql on RH4 simile28 Linux - General 2 10-04-2005 02:26 PM
I want to learn how to operate linux shemesh Linux - Newbie 4 04-29-2005 09:47 AM
Operate without a keyboard? ashjam10 Linux - General 3 05-25-2004 07:00 AM
Can MSN operate on Linux? Kelley Linux - Newbie 12 01-30-2004 10:36 PM
can't able to access internet from system1 to system2 hitesh_linux Linux - Networking 6 04-15-2003 12:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:00 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
Open Source Consulting | Domain Registration