wrumble
Posts: 31
Joined: Tue Dec 27, 2016 10:18 pm

Connection refused when attempting remote ssh from a Mac

Tue Dec 27, 2016 10:31 pm

I have just received a Raspberry Pi 3 Model B for Xmas but don't have a keyboard or mouse to setup using noobs. I proceeded to install the image instead so i could play with the Pi remotely. I installed it all succesfully as when viewing the pi via my tv i can see the OS and mouse waiting to be used with a picture of a road as the background. So when following the remote access via ssh i follow all the steps but when typing ssh pi@192.168.0.41 i get

Code: Select all

ssh: connect to host 192.168.0.41 port 22: Connection refused
i have googled and tried everything but cant see the issue. I have turned on remote login and allowed access for all users.

when i ping 192.168.0.41 i get

Code: Select all

PING 192.168.0.41 (192.168.0.41): 56 data bytes
64 bytes from 192.168.0.41: icmp_seq=0 ttl=64 time=10.912 ms
64 bytes from 192.168.0.41: icmp_seq=1 ttl=64 time=3.292 ms
64 bytes from 192.168.0.41: icmp_seq=2 ttl=64 time=3.447 ms
^C
--- 192.168.0.41 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.292/5.884/10.912/3.556 ms
I don't understand what else to do.

Any help would be great as i don't have access to a USB keyboard or mouse. I do have a Bluetooth keyboard and mouse but cant see how to use them without getting access to the pi first.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Connection refused when attempting remote ssh from a Mac

Tue Dec 27, 2016 10:52 pm

SSH is disabled by default since the Raspbian Jessie Security Update:

https://www.raspberrypi.org/blog/a-secu ... bian-pixel
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...


wrumble
Posts: 31
Joined: Tue Dec 27, 2016 10:18 pm

Re: Connection refused when attempting remote ssh from a Mac

Tue Dec 27, 2016 10:54 pm

Is there any other way to acces the pi then without a keyboard and mouse?

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: Connection refused when attempting remote ssh from a Mac

Tue Dec 27, 2016 10:57 pm

Did you read the blog?

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Connection refused when attempting remote ssh from a Mac

Tue Dec 27, 2016 10:57 pm

Did you enable ssh by creating a file called ssh on the SD card?

SSH is disabled by default now, as it can be a security risk when used with the default password for the pi user.

wrumble
Posts: 31
Joined: Tue Dec 27, 2016 10:18 pm

Re: Connection refused when attempting remote ssh from a Mac

Tue Dec 27, 2016 11:12 pm

Thanks! I have read the article now, sorry. Now getting an

Code: Select all

ssh: connect to host 192.168.0.41 port 22: Operation timed out
will keep googling

Return to “Troubleshooting”