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 09-23-2004, 04:27 AM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Remote Login command


newbie question,

how can i login to remote m/c through my system (192.168.1.1) using internet, and remote system ip is 192.168.1.2.

i have to use ssh or rlogin or ..??

tell me how to login to remote system.
 
Old 09-23-2004, 05:28 AM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
what system are you logging in from.

If it is windows you can download putty which is a ssh client.

then you have to open up your box using

open 192.168.1.1

Now 192.168.1.1 is a your lan network address so this will not work outside your LAN. You need to find the global IP that you ISP has given you and use that instead.

You can also login with a complete graphical display using VNC.

Download and install "real VNC" for a full graphical display otherwide just use putty.
 
Old 09-23-2004, 06:22 AM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
What operating systems are the system your logging in from and to? And are both boxes on the same local network?

Last edited by darthtux; 09-23-2004 at 06:23 AM.
 
Old 09-23-2004, 08:20 AM   #4
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
both the computer are linux , and one is located at my home and another is at my office.

both the location are too far away from each other.
 
Old 09-23-2004, 08:31 AM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
First, you'll have to have sshd running on the computer you want to connect to. There are different ways of doing it depending on your distribution. (You may want to tell us what it is). I would NOT recommend telnet since it is insecure.

Second, you can't connect over the internet using a 192. address. This is a private IP address and can only be ssh'd to on a local LAN. You might want to check into a dynamic dns service such as http://www.dyndns.org for getting a host and domain name for your home computer. This makes it easy to connect from work by
ssh hostname.dyndns.org

To connect to your work system, if there is a firewall you will have to get through that.
 
Old 09-23-2004, 08:38 AM   #6
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
in http://www.dyndns.org/, could tell me the specific link for knowing my ip and hostname.

let say i want to connect form redhat to redhat.

and how to know remote system ip and hostname.
 
Old 09-23-2004, 08:46 AM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Quote:
Originally posted by emailssent
in http://www.dyndns.org/, could tell me the specific link for knowing my ip and hostname.
You have to sign up with their service. It's free. Click on Dynamic DNS.

Quote:

let say i want to connect form redhat to redhat.
As I said, sshd has to be running on the machine you want to connect to. Open redhat-config-services and turn on sshd.

Quote:
and how to know remote system ip and hostname. [/B]
You're going to have to ask the office system administrator about that. They would know the fully qualified doman name of the system. You won't be able to connect by IP. It is a public IP and the same one is used by many if not all of your office computers. And you have to know how to get through the office firewall. They most likely have port 22 blocked. Which is what ssh uses.
 
Old 09-23-2004, 09:11 AM   #8
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanks for ur kind response

at https://www.dyndns.org/services/dyndns/

i add my host it give me ip

now what command should i use to access office system.

lets say dynamic ip of home sys. is 203.101.86.189
of office is 203.101.86.123

should i say ssh root@203.101.86.189

and what if i would like to access from window to linux pc or
vice versa from linux to windows system


thanks again
 
Old 09-23-2004, 08:09 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Quote:
Originally posted by emailssent
thanks for ur kind response

at https://www.dyndns.org/services/dyndns/

i add my host it give me ip

now what command should i use to access office system.

lets say dynamic ip of home sys. is 203.101.86.189
of office is 203.101.86.123

should i say ssh root@203.101.86.189

and what if i would like to access from window to linux pc or
vice versa from linux to windows system


thanks again
Look at my previous posts. When your behind a firewall or a router, you canNOT ssh by IP address.

By your home IP, I assume you have a router. You probably have a firewall on it. You have to allow ssh port 22 through the firewall. Your routers web site should have instructions. You need to set a dyndns.org account and follow their instructions on how to set it up. And if you are connecting to your home pc from work and they have a firewall at work, you have to get out of your work firewall. There are some programs that would probably work. Search on freshmeat.

To connect to your work PC, you have to talk to the systems administrator because they will have set up a firewall and will have to give you instructions on how to get through it.

Firewalls are designed for security and blocking unwanted connections. So you have to get past them.

If you want to connect TO a window system from a linux I don't know how to set up the windows one. I'm mostly a Linux/Unix person But to connect from windows to linux you have to set up the linux (see above) and use putty software on the windows box. Plus you'll need software to get through the firewall available by searching on download.com. If your work has a socks server then sockscap is what I use.

-----

It's
homebox -> router/firewall -> internet <- router/work_firewall <- workbox

On your homebox and workbox you have a private ip address. Both go through routers which translate the private ip's to public ones for the internet and translate back to private ones on the local area network. So the firewalls are going to be the the sticking point.

Here is a tutorial that might help
http://jamesallen.dyndns.org:3000/tutorials/dyndns.html

I hope I have been clear. If you have questions I will be glad to answer if I can.

BTW, I ssh into my home computer everyday from work. My home box is linux with sshd running and I use a dyndns.org account. I had to go into my D-Link router and let the linux box throught the router. At work I use putty and sockscap to get through their firewall.

Last edited by darthtux; 09-23-2004 at 08:11 PM.
 
Old 09-24-2004, 02:02 AM   #10
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanks,

this is all about accessing home pc to work pc or vice versa , if firewall is configured.

you are talking about router - the routing divice used in wan projects. Am i write right u mean it someting else?

suppose if no firewall is configured and sshd is running on both systems,

what command should i use to access office system. ?


lets say dynamic ip of home sys. is 203.101.86.189
of office is 203.101.86.123


And suppose home pc (203.101.86.189) is a proxy server through internet is running on 4 pcs in local LAN, how can i connect from work place to any of these 4 pc running internet through proxy server.?


Thankx,
 
Old 09-24-2004, 02:45 AM   #11
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
As I said you have to set up dyndns.org on your home computer to be able to connect to it.
http://jamesallen.dyndns.org:3000/tutorials/dyndns.html
and then
ssh hostname.dyndns.org

To connect to the one at work you have to ssh to the "fully qualified domain name".
ssh something.example.com

It doesn't matter what the public ip address is except dyndns.org needs it to connect to your home computer. Read the info in the link above.
 
Old 09-24-2004, 03:05 AM   #12
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thankx i will read that,

plz. solve my this query also,


And suppose home pc (203.101.86.189) is a proxy server through internet is running on 4 pcs in local LAN, how can i connect from work place to any of these 4 pc running internet through proxy server.?
 
  


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
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 07:31 AM
remote x login instead of local login mandrake-n00b Mandriva 0 04-22-2005 10:19 PM
remote login aargh Linux - Software 1 04-10-2004 07:48 PM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 10:43 PM
remote login FNC Linux - General 2 03-05-2002 03:29 AM


All times are GMT -5. The time now is 12:44 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