Notifications
Clear all

SSH acces denied.  

  RSS
ioneng
(@ioneng)
Eminent Member
SSH acces denied.

I have a Pi zero w working with MK3S, but I'm having trouble log into ssh. I'm using the new user I created in web interface, but when I try to connect with Putty, it keeps saying "Acces denied" after I type in the password. Can someone point me to the right direction? This is the first time I'm using octopi, I couldn't find much help on google on this topic.

Posted : 25/07/2019 12:12 am
bobstro
(@bobstro)
Illustrious Member
RE: SSH acces denied.

Try logging in as the pi user with the (crappy) password "raspberry". And secure the damn thing while you're at it. At least change the password. Ideally, do a lot more, especially if you intend to make it accessible remotely.

After that, create a new user account on the RPi itself. I haven't researched in detail, but I believe accounts created in the web interface are restricted to Octoprint. It does not create a Linux user account. I had to create a full user account within linux to log in as anybody but pi via ssh.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 25/07/2019 2:04 am
Paul Meyer
(@paul-meyer)
Honorable Member
RE: SSH acces denied.

How did you get the pi-zero os distribution on the card?  Raspbian comes with ssh disabled by default.  You can enable it by and running ‘sudo raspi-config’ and enabling ssh through the text menus.  Alternatively, you can do a fresh install and before the initial boot put an empty file named ‘ssh’ in the root of the SD card.  (fresh install is probably a bad idea if you already have octoprint set up).

Posted : 25/07/2019 3:17 am
kirby liked
kirby
(@kirby)
Trusted Member
RE: SSH acces denied.
Posted by: paul.m27

How did you get the pi-zero os distribution on the card?  Raspbian comes with ssh disabled by default.  You can enable it by and running ‘sudo raspi-config’ and enabling ssh through the text menus.  Alternatively, you can do a fresh install and before the initial boot put an empty file named ‘ssh’ in the root of the SD card.  (fresh install is probably a bad idea if you already have octoprint set up).

This is going to be it. 

Posted : 25/07/2019 3:18 am
ioneng
(@ioneng)
Eminent Member
Topic starter answered:
RE: SSH acces denied.

I'm going to try a new install and see. Thanks everyone.

Posted : 25/07/2019 6:28 am
Paul Meyer
(@paul-meyer)
Honorable Member
RE: SSH acces denied.

Search for “headless install pi zero” and you’ll find links like this that talk about enabling wifi and ssh during the initial install without a monitor/keyboard:

https://dev.to/vorillaz/headless-raspberry-pi-zero-w-setup-3llj

 

Posted : 25/07/2019 10:54 am
ioneng
(@ioneng)
Eminent Member
Topic starter answered:
RE: SSH acces denied.

I reinstalled prusaprint and connected to ssh before web ui and everything is working.Thanks again.

Posted : 25/07/2019 11:39 am
Share: