I am installing Alpine Linux on my Raspberry Pi 2B according to
https://wiki.alpinelinux.org/wiki/Raspberry_Pi. after follow the instruction to the letter I can finally boot it up but I can not log in with the password I entered during the step setup-alpine command requires. I try several time with easy password that the setup-alpine script complain it is a weak password also with password that do not have any message complained by the setup script or just hit enter to leave the password undefined. all options that I did rendered the system useless after reboot there is no way to log on to the system with root user. I try to register a user in their community bulletin but they are closed to new registration of new user so I have to come here for help. any body have experience installing it on raspberry pi 2 please advice. Thanks in advance
I found a way out on this matter after a 2 days of frustration. root user can not log on because I do setup in headless mode which I do not attached the raspberry pi to a monitor and keyboard and do it through ssh. the configuration of ssh do not allow root log on remotely (I guess) so I add another user then log on with that user through ssh instead and I can log on without issue. I guess another method would edit /etc/ssh/sshd_config add a line PermitRootLogin yes to allow root login before reboot the system
Related
I am trying to log into my Raspberry Pi using PuTTY from Windows. However, whenever I try to log into my Raspberry Pi using the default username and password (pi* and raspberry) it says Access Denied.
I have the wpa_supplicant.conf file and ssh file created. This is its first bootup. I am using the latest version of the Raspbian Lite OS.
Recently, the default user setup of Raspbian was significantly changed, rendering most existing online tutorials invalid.
In essence, the default pi user no longer exists, so you have to create it and set its password using either the official Imager tool or by creating a userconf file in the boot partition of your microSD card, which should contain a single line of text: username:hashed-password, replacing username with the name of the user you want (e.g., pi) and hashed-password with the hash of the password you want.
According to the official guide, the easiest way to do this is by running the following in a terminal (Linux or macOS):
echo 'password' | openssl passwd -6 -stdin
Again, you should replace password with the password you want here.
Further reading: An update to Raspberry Pi OS Bullseye (2022-04-07)
The default username and password are no longer valid for Raspberry Pi.
If you are trying to log in headlessly (without a monitor and keyboard), you can do it from Raspberry Pi Imager itself.
On selecting the OS in Raspberry Pi Imager, you get an icon of settings in which you can
create a user
setup Wi-Fi
enable SSH
After configuring, you can continue flashing your memory card.
And on first boot you will be good to go.
I have solved this problem. You can easily input your username and password with Raspberry Pi Imager.
add the user you created when flashing the image to the ssh group.
usermod -a -G ssh YourPiUsername
I've been trying to establish ssh connection with my raspberry by adding config files (wpa_supplicant.conf, ssh) to boot section of sd card with raspberry OS. I've done everything right and usually after these steps I could easily connect to my raspberry.
But, now I can't do this.
Whenever I try to log into raspberry using 'pi' as login and 'raspberry' as password, it says that this is incorrect password. I tried reinstalling OS on sd card; however, it didn't help.
I don't have any other opportunities other than connecting to raspberry wirelessly.
I have Raspberry Pi 4B and Raspberry OS 64-bit
It seems that you are using the latest release of raspbian. Developers have made a huge step forward to the security and there is no more default user pi and password raspberry, no need of the wpa_supplicant.conf & ssh files (but they are still work).
For headless setup you can press settings button in the last version of Raspberry Pi Imager and configure User, Wi-Fi, SSH and so on.
Scroll down to the Headless setup chapter
https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
I created a guide with images to do this here:
As per the official raspberry blog at https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022 the default username password will no longer be allowed for headless login.
Basically there are two methods
Use the updated raspberry pi imager too from here
manually add userconf file in the boot directory with username:encrypted-password as a single line. to generate encrypted-password string use echo 'mypassword' | openssl passwd -6 -stdin tested on win 10
I need to install a program in gcloud environment. When I ssh, however, I need to become root to use yum, but I never set a root password. Is there a default password set?
Also, I see different file systems when I login via ssh from commandline or using ssh button at the browser int the "Compute Engine" site.
sudo su
This is just some text that SO wants from me. Sometimes, a short answer is actually the best answer. Hey SO: When your Spouse said 'yes', did you also expect them to ramble on to fill 30 characters?
I am on a Windows7 machine and I'm trying to get graphic view on the centOS machine to be displayed on my current screen. When typing xclock, gedit... in terminal, I am getting the following error
-bash: xclock: command not found
and This the result of # vi /etc/ssh/sshd_config command
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
#tewayPorts no
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
Also Xming is running on server:0.0 and I turned X11 forwarding on on putty
So what's the problem ?
sudo yum install xorg-x11-apps
Should cover it!
Do you have an .Xauthority file in your home directory?
I've recently found the answer for my issue, which might be similar to yours. I've seen quite a few open questions about this topic without resolution. You may have a few more things to work through, but SELinux settings ended up being my final hurdle. This among many other steps are covered here: ssh X11 forwarding won't work
That aside, you may need to change the Xming settings to match the default DisplayOffset of 10 for Centos. And after any changes to sshd_config, you'll need to restart the service via
/etc/init.d/sshd restart
I would like to emphasize that my situation is a non-critical operation within a (hopefully!) securely-managed intranet. I would NOT suggest turning off SELinux at work, or at home if you're hoping to open ports or configure VPN for your home network. Please consider: http://securityblog.org/2006/05/21/software-not-working-disable-selinux/
I am using Lion 10.8.2, and in sudoers i made like this: username ALL=(ALL) NOPASSWD, the username is my computer user... but still now prompts password.. What to do ?
If you are talking about the Pop Up window while starting the servers then you cannot get away with it. An API(Don't know which exactly) is used to start the Apache server which requires administrator privileges. sudo in the terminal and this API call is different, editing any files won't help.
Port 80, default port of Apache is a Well-Known port which requires admin privileges as written in the link. So they must have forcefully added the API Call for starting the server.