connection between two platforms
Hi
I have debian Etch (kernels 2.6.17-1 em64t smp from sid/unstable) installed in my home pc. I have an ip that starts with 172. i have a DNS which start with 203 and a default gateway starting with 172. I dont have access to the DNS servers. On the other hand at work i have windows XP. My work has a ip that starts with 192 and the DNS starts with 202 and the default gateway starts with 192. Both the pc's have 255.255.255.0 as subnet mask. Now to my question. How do I connect to my home pc using putty or any other client you might suggest? What are the software i need to install on my debian and how do i configure that software and putty? Thank you in advance. :) |
you will need a ssh-server installed and running on your home pc. I suggest openssh. From putty, you will need to enter your home-pcs complete IP. If your are using DSL with a modem/router/switch, that might be a problem, because the internal home-network will automaically be using NAT (Name Adress Translation), meaning you can only adress your router, not the pc's behind that router. How to solve this problem depends on the capabilities of your routers hardware.
|
I believe Debian installs the SSH server daemon by default. Look up how to start the SSH server.
Set up your router to forwared port 22 to the Debian box. I do not know what kind of router you have, but somewhere the interface should have a section for Virtual Server, or Port Forarding. In it you put the IP address of the Debian machine on your local LAN. That is, use the IP address you get on the Debian machine using "ipconfig" in a terminal as root. You will probably have to reboot the router to have it take effect. When it has rebooted, copy down the IP address of the router on the internet (the WAN address). You can confirm that you have the right address by opening a browser and typing in "www.whatismyip.com". That will give you your Internet IP. On the Windows box, open PuTTy and put in the IP address you copied down at home in the Host Name box, and select "SSH". Give this connection a name, and hit Save, then Open. It should ask for a name (your log on name at the Debian box, NOT root) and password (what you use on the Debian box). Look here for more information about PuTTy: http://www.jfitz.com/tips/putty_config.html It should connect. If it gives you a warning about not knowing who you are just accept it and go on. If it does not connect you will have to configure the SSH server to let you use a password. I have to go look that one up. Good luck C |
Minor nitpick, but it isn't "ipconfig" in the *nix world, it is "ifconfig". Also, just to find out the IP info you already have, you don't need to be root. Any user on a debian (and most other distros I assume) will tell you your IP address by asking for it correctly. The way to do that is /sbin/ifconfig
Code:
jim@worklap:~$ /sbin/ifconfig |
This is what i get when i do ifconfig.
Quote:
|
OOps, sorry about the "ipconfig" thing. I have been working on XP boxes and it has damaged my brain.
Not sure how you can connect to ssh if you are behind your ISP's router and cannot open port 22. You can try going to www.whatismyip.com to get the WAN IP of the ISP router, but unless they have port 22 open you will not be able to connect. You could contact the ISP and see if they would direct port 22 to your IP on the LAN (172.16.5.75) but failing that I am not sure what you can do. It might be possible to set the SSH server to work on port 80, then set PuTTy to use port 80 also (since port 80 is open by default on the router for web traffic) but I have no idea what the implications of that are. You can change the port for the ssh daemon in /etc/ssh/ssh-config. Good luck. C |
172.16.5 is a private IP. If that is the address that is you are getting from your ISP, then there is no way to connect to your box from outside their network unless they are willing to forward requests to your machine.
Peace, JimBass |
This is what i get when i go to that webpage.
Quote:
This is my process list. I believe the second last one is openssh-server. Quote:
|
Well, someone has an ssh server running at that IP address. In a shell, this is what I got when I tried it:
chuck@tbird:~> ssh 203.112.202.253 The authenticity of host '203.112.202.253 (203.112.202.253)' can't be established. RSA key fingerprint is b8:cc:bd:62:17:eb:12:ff:3d:63:61:1a:06:9a:f3:f3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '203.112.202.253' (RSA) to the list of known hosts. chuck@203.112.202.253's password: Permission denied, please try again. chuck@203.112.202.253's password: I do not know your password, or what your log-on name is, but it looks like you can start using ssh. Use ssh yournamehere@203.112.202.253 Good luck. C |
I had already tried that. It appears 203.112.202.253 is not my machine since it doesnt accept my username or passwd. Its probably a server of my isp. not too sure though.
|
There is a way to have ssh listen to another port on your computer (not 22; see /etc/ssh/ssh-config). If you can get the ISP to point that port to your computer at your IP (not 203.112.202.253) then it would work, but you have to get them to do this. I do not know of any other way to resolve this.
Good luck. C |
I seems higly unlikely that your isp can stretch a cat5 cable all the way from you to them. There must be some mechanism where it is converted to another system.
But I guess it's possible, I hear new stuff every day. Cheers :D |
I believe they use UTP cables and there are switches installed every 100 metres or so. The provide internet almost to all homes in my neighbourhood and some other surrounding neighbourhoods.
|
All times are GMT -5. The time now is 04:07 PM. |