Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Troubleshooting • Unable to login using SSH

$
0
0
I have a custom image made with pi-gen, I have a custom user-data file in /boot/firmware.

Code:

#cloud-config# Set the hostname for this device. This will also update /etc/hosts if manage_etc_hosts is enabled.hostname: pwnagotchimanage_etc_hosts: trueallow_public_ssh_keys: true  # Allow public SSH keys to be added to the default user accountssh_quiet_keygen: true  # Suppress output from SSH key generation during cloud-init execution# Raspberry Pi–specific options (provided by the cc_raspberry_pi module)rpi:    enable_usb_gadget: true # Enable rpi-usb-gadget    spi: true               # Enable SPI interface    i2c: true               # Enable I2C interface    serial: true            # Enable serial console and UART interface    onewire: true           # Enable 1-Wire interface# Create a default user account and apply permissionsuser:    - name: pi      groups: users,adm,dialout,audio,netdev,video,plugdev,cdrom,games,input,gpio,spi,i2c,render,sudo      shell: /bin/bash      plain_text_password: raspberry  # Alternatively, use 'passwd:' with a hashed password for better security      sudo: ALL=(ALL) NOPASSWD:ALL  # Allow passwordless sudo for this user# Additional Raspberry Pi OS option (not available on generic cloud-init images)enable_ssh: true
But I cannot SSH in using the password `raspberry`. If anybody could point me in a direction what I am doing wrong in the user-data file that would be greatly appreciated.

Statistics: Posted by Jayofelony — Sun Feb 22, 2026 12:15 pm — Replies 3 — Views 162



Viewing all articles
Browse latest Browse all 7503

Trending Articles