Image of the glider from the Game of Life by John Conway
Skip to content

Why I Prefer Linux- It's The Tools

I have my laptop sitting at my desk at home. I need a file, so I launch SSH, only to find out that I can't connect. Then I remember that the last time I booted, I received a DHCP address from my router. I have no idea what the address is that is assigned, and as such, can't access the OpenSSH server on my laptop to get what I need. So, thanks to the help of a friend, I use nmap to do a ping sweep in my LAN, to find out what IP was assigned:

aaron@achilles:~$ nmap -sP

Starting Nmap 4.20 ( ) at 2007-08-03 11:04 MDT
Host achilles ( appears to be up.
Host hercules ( appears to be up.
Host appears to be up.
Nmap finished: 256 IP addresses (3 hosts up) scanned in 2.288 seconds

There it is. That would've taken a while to find by hand. Next thing to do, is SSH into hercules, and change the IP to it's normal static IP that it should be. This is easy, by just opening /etc/network/interfaces and adding and saving the following:

iface eth0 inet static

Last thing that needs to be done? Restart networking:

root@hercules:~$ ifdown eth0;ifup eth0

Now I can SSH and SCP the file I need, going about my way. Beautiful.

{ 8 } Comments