Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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:
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.
Last edited by lotusjps46; 08-13-2006 at 09:19 AM.
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
The problem is I do not have a router. I get internet connection via lan. The isp [like most isps in Bangladesh] gave me an eathernet card and a cable. They provide me with internet via lan. I do have a D-link switch installed though since I have another pc at home. The problem is I do not have access to any routers of my ISP or the server my ISP uses.
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.
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.
Are there any configureations I need to do before i call my ISP for port forwarding? BTW i have installed openssh-server and ssh. I dont know how to configure them. I tried dpkg-reconfigure openssh-server but that I think only restarts the programme.
This is my process list. I believe the second last one is openssh-server.
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 188.8.131.52
The authenticity of host '184.108.40.206 (220.127.116.11)' 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 '18.104.22.168' (RSA) to the list of known hosts.
Permission denied, please try again.
I do not know your password, or what your log-on name is, but it looks like you can start using ssh. Use
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 22.214.171.124) then it would work, but you have to get them to do this. I do not know of any other way to resolve this.