Page 1 of 1

Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 10:31 pm
by wrumble
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.

Re: Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 10:52 pm
by fruitoftheloom
SSH is disabled by default since the Raspbian Jessie Security Update:

https://www.raspberrypi.org/blog/a-secu ... bian-pixel

Re: Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 10:53 pm
by drgeoff

Re: Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 10:54 pm
by wrumble
Is there any other way to acces the pi then without a keyboard and mouse?

Re: Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 10:57 pm
by drgeoff
Did you read the blog?

Re: Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 10:57 pm
by rpdom
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.

Re: Connection refused when attempting remote ssh from a Mac

Posted: Tue Dec 27, 2016 11:12 pm
by wrumble
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