connecting via ssh

Tony Baechler tony at baechler.net
Sun Oct 19 06:23:27 EDT 2008


Bruce Noblick wrote:
> This may be a very basic question but I haven't figured out how to get ssh to connect with my linux box.
>
>   
First, I know this is obvious, but are you sure that the openssh server 
is installed on your Linux machine?  If using Debian, do "aptitude -q 
install openssh-server" before anything else or of course you won't be 
able to connect.

> I tried to get my ip address but the information I got seemed to be only valid for the local machine.  I have a router to which all of my computers are connected so I thought my addresses should be on a 192.168.1 subnetwork but the only addresses I saw were on a 127.0 subnetwork.
>   



Is your router using dhcp?  In other words, do you have the dhcp server 
in your router turned on?  Also, what does "ifconfig" and 
"/etc/network/interfaces" say?  The "ifconfig" command should show you 
your address, gateway and netmask.  /etc/network/interfaces has this 
information for automatic setup on boot.  By default, you're probably 
trying to use dhcp.  The good thing is that you're almost guaranteed 
that you'll get a valid ip address assuming your router is working and 
provides a dhcp server.  The bad thing is that the address could change 
every time, making it difficult to find what address it uses.  For 
example, our Linksys router assigns dhcp addresses starting at 
192.168.0.100.  If I connect from different machines with dhcp, my 
address might be 192.168.0.103 or anything between 100 and 149.  That's 
why static addresses are better, but they require manual setup.  If you 
look at /etc/network/interfaces, it probably says something about dhcp.  
I suggest reading the interfaces (5) man page or I can send you a sample 
of mine.  Then it's just a matter of connecting to the static address 
you assign, such as 192.168.1.5 or whatever via ssh.



More information about the Speakup mailing list