Page 1 of 1

Unable to attach to Pi from Mac vis VNC Viewer

Posted: Wed Feb 06, 2019 7:28 pm
by theMusicMan
Hi All

For some reason, I seem to no longer be able to connect to my RPi via SSH or VNC using my Mac. I have downloaded and reinstalled VNC from realVNC dot com, and despite connecting earlier today, nothing happens now when I try to connect either by SSH in Mac terminal, or by VCN Viewer.

It simply times out.

I have checked and obtained the Pi IP address, which is the one I am using in VNCViewer on the Mac.

Am at a loss... any pointers please? Is anyone willing to help me diagnose?

Thanks
John

Re: Unable to attach to Pi from Mac vis VNC Viewer

Posted: Wed Feb 06, 2019 10:54 pm
by Andyroo
Try

Code: Select all

ssh -v <IP address>
This gives you detailed error message - feel free to post the result here.

Re: Unable to attach to Pi from Mac vis VNC Viewer

Posted: Thu Feb 07, 2019 9:23 am
by theMusicMan
Many thanks, here's the result...

Code: Select all

ssh -v 172.20.10.6
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to 172.20.10.6 port 22.
ssh: connect to host 172.20.10.6 port 22: Operation timed out

Re: Unable to attach to Pi from Mac vis VNC Viewer

Posted: Thu Feb 07, 2019 10:07 am
by theMusicMan
Think I have found out the issue, but not necessarily the solution to this particular issue. It appears that my Mac and the RPi3B both need to be attached to my hotspot network via WiFi. I had my Mac via the USB cable and RPi3B via WiFi. As soon as I connected the Mac via WiFi, I was able to get both a SSH and NVC connection from it to the RPi3B.

I also have a RPi3B+ which I am going to try now.