GeorgeXL
Posts: 6
Joined: Sun May 20, 2012 1:15 pm

Access denied on SSH

Tue Sep 04, 2012 6:10 pm

Hello to all. I just received my pi today and i am very happy with it.
I just have a small problem accessing the pi from a windows p.c. using SSH, it just says access denied.
I changed the password for user and root to something personal, is there anything else i should do ?
The ubuntu server i can access fine from the same p.c.

Please help.

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Access denied on SSH

Tue Sep 04, 2012 6:17 pm

You don't say which distro you are using (OS)

Most distro's have the user login name set to pi
Most distor's have SSH to root disabled.

What user are you trying to ssh into?
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

GeorgeXL
Posts: 6
Joined: Sun May 20, 2012 1:15 pm

Re: Access denied on SSH

Tue Sep 04, 2012 6:49 pm

Thank you for your reply.

I am using Raspbian, and i enabled SSH from the first screen when it booted for the first time. Was that enough ?
I tryed to log in as root and pi.

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Access denied on SSH

Tue Sep 04, 2012 6:57 pm

If you choose the Wheezy image the ssh is enabled by default and theres a noob help page on the wiki here is a link.

http://elinux.org/RPi_A_Method_for_ssh_blind_login

Wheezy is not compulsory just an alternative with noob support. ;)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Access denied on SSH

Tue Sep 04, 2012 7:04 pm

root has no password set therefore you cannot login as root with your ssh client.
To correct this you must login as user pi then enter:
sudo su
passwd

or:
sudo passwd

Richard S.

GeorgeXL
Posts: 6
Joined: Sun May 20, 2012 1:15 pm

Re: Access denied on SSH

Tue Sep 04, 2012 8:13 pm

Ok, i fixed it, thank you for the help.

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Access denied on SSH

Wed Sep 05, 2012 8:58 am

Of course if you type in the password incorrectly it comes up with the same Access Denied message. So if you log in as user 'pi', make sure you spell 'raspberry' correctly.

T.
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Access denied on SSH

Wed Sep 05, 2012 9:46 am

Bin there done that :lol: Raspbeery. ;)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

GeorgeXL
Posts: 6
Joined: Sun May 20, 2012 1:15 pm

Re: Access denied on SSH

Thu Sep 06, 2012 5:41 pm

That was my case also.

foxint
Posts: 46
Joined: Wed Mar 23, 2016 3:16 am

Re: Access denied on SSH

Thu Oct 05, 2017 2:46 am

Hi Guys

I am having the same problem. I have not touched the pi for a year or so (pi3) and wanted to attach a media player and hence wanted to up date the OS before doing anything.

I tied the instructions...but not working

Help...novice user, so please be kind and explicit.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Access denied on SSH

Thu Oct 05, 2017 3:43 am

double posting here
-a- no reason to dig out a 5 year old post
-b- a one year old setup? why not do a new setup with RASPBIAN STRETCH IMAGE
-c- what instructions do not work?
if you have no HDMI..TV / mouse / keyboard ( called headless )
you can not enable SSH by
sudo raspi-config
but you still can setup by the "ssh file trick "
like from a windows PC with card reader you create a file named
ssh
( what can be empty ) at the FAT partition of the SD card.
after ( this way to enabled SSH ) you can login PUTTY / ssh .. and will get a warning to change password.

foxint
Posts: 46
Joined: Wed Mar 23, 2016 3:16 am

Re: Access denied on SSH

Thu Oct 05, 2017 5:23 am

Thanks.

a) This was the only post I could find that fitted the situation
b) I have no idea what Raspbian stretch image is
c) I cannot log on/into the Pi and Putty will not connect.
d) After this you lost me completely.
e) Perhaps I had better leave it for another year and it may get better…ha-ha


Ahhh a very interesting, but totally frustrating device. No wonder they introduce this to 5-year olds at UK school and not 50-year olds…. like the phone, I ask my 9-year old daughter to make it better when it fails. I have a Galaxy Note 2…. probably need to update that as well.

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

Re: Access denied on SSH

Thu Oct 05, 2017 5:36 am

foxint wrote:
Thu Oct 05, 2017 5:23 am
No wonder they introduce this to 5-year olds at UK school and not 50-year olds….
Some of us 50-year olds are the ones who are introducing the 5-year olds to the Pi. :D

foxint
Posts: 46
Joined: Wed Mar 23, 2016 3:16 am

Re: Access denied on SSH

Thu Oct 05, 2017 6:14 am

Please send me a 50-year old...

I love the whole Pi idea. I asked the school here in the Australian Bush about introducing the Pi to the kids…. well even the IT guy at school looked at me blankly. This is typical of education down under…

I am an advocate, but still confuses the hell out of me. Probably must put it back in the draw…. or re-install the whole OS…I remember than was less then fun.

leimonis
Posts: 1
Joined: Sun Oct 14, 2018 4:42 pm

Re: Access denied on SSH

Sun Oct 14, 2018 5:23 pm

Enter sudo raspi-config in a terminal window
Chang your password.You probably have set another one, like me.

Enable ssh:
Select Interfacing Options
Navigate to and select SSH
Choose Yes
Select Ok
Choose Finish

Now you can log with your new password.I hope this works for you. :D

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Access denied on SSH

Mon Oct 15, 2018 9:40 am

Of course if your sole access is via a putty connection ie you are running your Raspberry headless you won't be able to run raspi-config until you have figured the SSH connection.

In the Putty configuration window in the Left panel there is a section labelled Connection with a subsection SSH

This has two options 2 which is my default and 1 which is also labelled as (INSECURE).

I make no guarantee that this is the answer but it may be.

Remember if all else fails you can image either a new SD or re-image your existing SD if it has no saved data.

This will take your SSH login back to the default and at that stage you can reset your password to something other than the default.

The whole point of having the Operating System on an SD card was that swapping it out or having multiple copies was no big deal.

It would probably be a good idea to get yourself familiar with the setup before you try changing passwords. It is not like you are running anything vital if you are you should probably not be doing this on a Raspberry at least until you are thoroughly familiar.

I am afraid I don't qualify as a 50 year old as I passed that milestone over 10 years go. :)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

Return to “Beginners”