LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   operate system1 from system2 (https://www.linuxquestions.org/questions/programming-9/operate-system1-from-system2-556025/)

munna_dude 05-23-2007 05:10 AM

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

chrism01 05-23-2007 05:29 AM

cmd line: ssh
GUI: vnc

munna_dude 05-23-2007 06:06 AM

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

chrism01 05-23-2007 06:57 AM

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

theNbomr 05-23-2007 09:41 AM

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.

hacker supreme 05-23-2007 09:43 AM

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.

jiml8 05-23-2007 10:33 AM

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.

sidney.harrell 05-23-2007 01:30 PM

Do you have accounts on both machines?

munna_dude 05-23-2007 11:08 PM

Quote:

Originally Posted by sidney.harrell
Do you have accounts on both machines?

yes, i have, i am using two machines

munna_dude 05-23-2007 11:51 PM

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

jiml8 05-24-2007 12:08 AM

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.

munna_dude 05-24-2007 12:14 AM

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.

sidney.harrell 05-24-2007 12:15 AM

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.

munna_dude 05-24-2007 12:25 AM

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

jiml8 05-24-2007 12:27 AM

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.


All times are GMT -5. The time now is 03:56 AM.