me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
327 stars 76 forks source link

my password wrong #73

Open dzyk opened 6 years ago

dzyk commented 6 years ago

i type password for scketch upload... its wrong? what? what default password for scketch upload?

i need default password for sketch upload

dzyk commented 6 years ago

https://imgur.com/E3IbKjz see screhshot

me-no-dev commented 6 years ago

uses root account so you must set the root password first if you have not done so

dzyk commented 6 years ago

root and user password wrong for upload((( i used it

me-no-dev commented 6 years ago

can you ssh root@raspberrypi-ip ? sudo and root passwords are two different things

dzyk commented 6 years ago

password for root and user identical

me-no-dev commented 6 years ago

So were you able to ssh as root to your pi? Or did you ssh as pi and then did sudo/su? Did you set the root password yourself? Did you make sure that in sshd.conf root logins are permitted? What did you really try?

dzyk commented 6 years ago

Password for pi@piduino:12345pass

Gain root permissions

sudo su

Enable password login for root

passwd

enter the new root password twice

--> change to 12345pass

dzyk commented 6 years ago

pi@piduino:/etc/ssh $ cat ssh_config

Host SendEnv LANG LC_ HashKnownHosts yes GSSAPIAuthentication yes

dzyk commented 6 years ago

pi@piduino:/etc/ssh $ cat sshdconfig
ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes PrintMotd no AcceptEnv LANG LC
* Subsystem sftp /usr/lib/openssh/sftp-server

dzyk commented 6 years ago

What can i do for change password?

dzyk commented 6 years ago

its a default for me(

martinnedopil commented 6 years ago

Hi, your password is right. If you get again and again pop up window for password, then problem is in command sed -i "s/PermitRootLogin without-password/PermitRootLogin yes/" /etc/ssh/sshd_config This command will permit root login, but if (in default) this option is remarked, then this command will change permit root login, but do not uncheck remark. Should be: sed -i "s/#PermitRootLogin without-password/PermitRootLogin yes/" /etc/ssh/sshd_config