10

Is SSH enabled by default on the Raspbian Wheezy 7 install image? And if it is, which IP address is used so I can access Pi via PuTTY and Filezila?


Important!

As per Philippe Lhardy's answer current (post ~2016) versions of Raspbian do not have SSH enabled by default.

Aurora0001
  • 6,357
  • 3
  • 25
  • 39
zsn
  • 431
  • 2
  • 6
  • 13

5 Answers5

14

SSH is enabled by default only for Raspbian releases before November 2016 but the boot protocol for the ethernet interface is set to DHCP by default so the IP address will be assigned by your router. You can find the open SSH ports on your network using the nmap utility:

nmap -p 22 --open -sV 192.168.1.0/24

You should find your pi listed in the output along with the IP assigned to the pi.

You can change the boot protocol to static and define a static IP address for the pi by editing the ifcfg-eth0 file:

vi /etc/sysconfig/network-scripts/ifcfg-eth0 

Then edit the file to suit your needs

DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.200
GATEWAY=192.168.1.1
Aurora0001
  • 6,357
  • 3
  • 25
  • 39
Maux
  • 336
  • 1
  • 7
4

In Windows Command line, or any OS that has ping command you can type in:

ping raspberrypi

enter image description here

It will resolve the DNS entry and show you the IP address. In the image as 192.168.1.233

But of course, you might just connect using the host name raspberrypi instead of IP.

This all assumes that you are using a router with DHCP and DNS running on it. Most internet ISP will provide you with a router that does this out of the box. But if you got custom DHCP or DNS, then you should really know how to find/set the IP yourself.

Aurora0001
  • 6,357
  • 3
  • 25
  • 39
Piotr Kula
  • 17,336
  • 6
  • 66
  • 105
2

I don't know whether it is installed by default, but if it isn't, setting it up is pretty straightforward: in your shell, enter the following command

   sudo apt-get install ssh

after the installation is over, you can start the service via

   sudo /etc/init.d/ssh start

To find the IP address of your RPi, use

  /sbin/ifconfig

and look for the inet line, you'll fing your IP there.

Sir Celsius
  • 121
  • 2
2

I know this question was for Raspbian Wheezy, just to warn that in Stretch you have to create an empty file called ssh file in boot filesystem to activate SSH at startup.

See also: Enabling SSH by default on Raspbian Stretch and Raspbian Stretch Headless Setup Procedure on the Raspberry Pi Forums for more information on how to set up SSH with Stretch.

Aurora0001
  • 6,357
  • 3
  • 25
  • 39
0

SSH is enabled by default and my rpi assigned address was 192.168.1.117. I downloaded IP scanner for my local network which helped me to find the IP address.

zsn
  • 431
  • 2
  • 6
  • 13