We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

astrodoc
Posts: 8
Joined: Wed Dec 11, 2019 4:20 pm

VNC password

Thu Apr 16, 2020 8:46 pm

No idea what to use for VNC password (and username for that matter). I have VNC installed and enabled. When I enter the Pi IP on my windows machine I get prompted to enter username and password. It is accepting nothing that I can think of. I have not done anything with passwords etc on the Pi. I am assuming username is Pi and password is Raspberry because I have not changed it but clearly that is not the combination that it's looking for. I have no other machines being networked via VNC right now. When I type the command vncpasswd I just get a bunch of modes and options which I have no clue on. I tried "Password" since it referred to that as default but that didn't work either
Thanks
Dave

User avatar
HawaiianPi
Posts: 7918
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: VNC password

Thu Apr 16, 2020 9:02 pm

It would be whatever username and password you use in Raspbian (assuming that is the OS you are connecting to). Default is pi:raspberry, but you should have changed the password when the system was first booted, so use your Raspbian password.

For example, if I was using the default pi user and changed the password to 12345 during Raspbian setup, I would put pi into the VNC username field and 12345 in the password field.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

klricks
Posts: 8928
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA

Re: VNC password

Thu Apr 16, 2020 9:13 pm

astrodoc wrote:
Thu Apr 16, 2020 8:46 pm
.......I am assuming username is Pi and password is Raspberry because I have not changed it but clearly that is not the combination that it's looking for.....
The default user is pi and the default password is raspberry NOT Pi and Raspberry
3B+ & 4B4G Running RPi OS Bookworm w/ Desktop

astrodoc
Posts: 8
Joined: Wed Dec 11, 2019 4:20 pm

Re: VNC password

Thu Apr 16, 2020 9:38 pm

Ok sorry. Typo on my part. I tried both upper and lower case anyway. I figured out a way. Opened VNC server app and went to options > security and changed the authentication drop down from "Unix" to "VNC". When I did that it asked me to enter a new password which I did. Then it worked fine.

User avatar
HawaiianPi
Posts: 7918
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: VNC password

Thu Apr 16, 2020 9:44 pm

If your Raspberry Pi was connected to the internet with the default password, then it has likely been hacked, and you should start over with a freshly imaged SD card (and also check anything else on the same network for security breaches, as other systems may have been compromised).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

astrodoc
Posts: 8
Joined: Wed Dec 11, 2019 4:20 pm

Re: VNC password

Thu Apr 16, 2020 10:09 pm

Ok got it. Thank you!

stan_qaz
Posts: 57
Joined: Sun Sep 30, 2012 6:53 am
Location: Sunny Arizona

Re: VNC password

Thu Apr 16, 2020 10:45 pm

I prefer to set a VNC password and have VNC demand that rather than using the Linux authentication.
pi vnc.png
pi vnc.png (15.33 KiB) Viewed 31633 times

astrodoc
Posts: 8
Joined: Wed Dec 11, 2019 4:20 pm

Re: VNC password

Thu Apr 16, 2020 11:15 pm

Yes thanks. that's exactly what I did. Except after I entered the new password I got a pop-up message suggesting I set encryption to "always on" due to the length of the password? Wasn't sure on that setting

householdtechnician
Posts: 13
Joined: Fri Apr 17, 2020 5:26 am

Re: VNC password

Fri Apr 17, 2020 5:43 am

astrodoc wrote:
Thu Apr 16, 2020 11:15 pm
Yes thanks. that's exactly what I did. Except after I entered the new password I got a pop-up message suggesting I set encryption to "always on" due to the length of the password? Wasn't sure on that setting
As long as you're using it on your home network I don't think you need encryption on. I've been using my Pis for over 3 years now through VNC with no issues. Just make sure you set the password to use the VNC password and not the UNIX one. And you can just check the Pi's IP in the main VNC window, just open up VNC Viewer on another device on the same network and enter the IP shown in the VNC Server's main window.

astrodoc
Posts: 8
Joined: Wed Dec 11, 2019 4:20 pm

Re: VNC password

Fri Apr 17, 2020 11:28 am

Ok great. Thanks! Good to go now. Started over. Reimaged the SD card, reinstalled everything , new pi password and VNC working fine :D

stan_qaz
Posts: 57
Joined: Sun Sep 30, 2012 6:53 am
Location: Sunny Arizona

Re: VNC password

Fri Apr 17, 2020 10:40 pm

If opening up to the world a non-obvious user name, strong password and encryption are pretty much required as folks scanning will see it and try to get control.

For local, only on your network you can get really lax, I have one Pi that runs my sound system that has no password, just click an icon on your PC and the VNC window pops up.

Return to “General discussion”