I used to be able to connect to my Pi over SSH but after an erase + reinstallation of Raspbian (after lost of pwd), I now get a port 22: connection refused
.
I got latest Raspbian installed on the Pi (downloaded here and installed following these instructions).
I've checked this and this but I don't have any boot_enable_ssh.rc
file on the boot
partition and I'm not able to edit the ext3
partition (I'm using a Mac) so I can't perform Oli's solution.
I've also tried to Rename /etc/rc2.d/ssh/K??ssh to /etc/rc2.d/ssh/S02ssh
but it didn't work.
Thusly :
- How can I check if SSH is indeed enabled on my Pi without any computer or keyboard ?
- And if it's not how to enable it ?
Btw, when doing a nmap
, I've noticed that my Pi got a strange name l.home
:
Nmap scan report for l.home (192.168.1.15)
Any help would be strongly appreciated !
ssh pi@192.168.1.15
. The Pi is connected to the network via an Ethernet cable connected to the Router. – ldc Feb 29 '16 at 14:30echo 1 > /etc/hostname
rather thanecho $1 > /etc/hostname
in a script where$1
was the first argument that was supplied on the command line of the script. Is your network supposed to be calledhome
- if not, check/etc/networks
... – SlySven Feb 29 '16 at 15:4064 bytes from 192.168.1.15: icmp_seq=0 ttl=64 time=2.442 ms
– ldc Mar 01 '16 at 21:22home
is my network. But it's a "L" rather than a "1" – ldc Mar 01 '16 at 21:232016-02-09-raspbian-jessie.img
from here – ldc Mar 01 '16 at 21:28