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. |
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. |
What operating systems are the system your logging in from and to? And are both boxes on the same local network?
|
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. |
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. |
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. |
Quote:
Quote:
Quote:
|
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 |
Quote:
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. |
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, |
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. |
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.? |
All times are GMT -5. The time now is 07:15 AM. |