Hardware Reference
In-Depth Information
Process: 273 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, sta
tus=0/SUCCESS)
Main PID: 280 (sshd)
CGroup: name=systemd:/system/sshd.service
└─280 /usr/sbin/sshd -D
If your output doesn't look similar to that, it's quick to install. Here's the command on
Fedora:
$ su -c 'yum install openssh-server openssh-clients'
And here's how to install it on Debian/Ubuntu:
$ su -c 'apt-get install ssh'
Once you've determined that it is installed, set it to start the daemon automatically
at each boot:
$ su -c 'chkconfig sshd on'
If you're not going headless from square one with the Pi, you can connect it to a monitor
and run ifconfig . That's the simple way, assuming you've got a monitor and keyboard
handy. Note that if you're using a newer version of Fedora or Pidora, you'll need to use
ip addr instead.
Or check your router's default IP address, which is probably on a sticker somewhere
on it or on a website if you search for your router brand. (192.168.0.1 is a common
one.) You can also run route -n to find it. The numbers under Gateway on the line
flagged UG are the default IP. Go to that address in a web browser, and you'll almost
certainly find some sort of router control panel where you can see connected devices,
including your Pi.
You could also use nmap , the network mapper tool. This is a fun way to learn a new tool
if you haven't used it. That said, you should do your nmap learning only on your home
network and not at the office, in the coffee shop, or anywhere else you're not in charge
of said network. When you run su -c nmap 192.168.1.1/24 , replacing the IP address
with that of your network, you'll see a list of everything connected to that network.
One of them will have a MAC address labeled Raspberry Pi Foundation, and it will list
your Pi's IP address as well.
If you're going to frequently connect via SSH, you'll want to simplify things by giving
your Pi a static IP address (see Hack #13 ).
And now you're ready to connect to your Pi by running ssh username@host , where
username is an account you've set up on the Raspberry Pi and host is the IP address
you found or configured. If you haven't yet set up a user, you might need to refer to
 
Search WWH ::




Custom Search