ssh via password

  • Hi,

    since this morning I have a FP2 with ubuntu touch. Cool. I have played around with some other linux devices and I always installed the SSH-Server to manage them from remote. I always changed nothing into the configuration and use password authentification. Now I going to use SSH on my Phone to configure it from a PC.
    I learned that by default ssh is not allowed to auth by password, it has to use a key file. So I copied the sshd_config from my laptop into /etc/ssh/ and restarted the ssh server.
    I think now it has to be work with password, but I get the message "No supported authentification methody avaidable (server sent: publickey)" again.

    In the sshd_config I use are the following lines enabeld:
    ChallengeResponseAuthentication no
    UsePAM yes
    X11Forwarding yes
    PrintMotd no
    cceptEnv LANG LC_

    Subsystem sftp /usr/lib/openssh/sftp-server

    I got it from my PC with Mate 18.04

    I hope some one can tell me what is wrong with my configuration. I Do not wan't to use the keyfiles! This is to difficult for my. It is so hard to set this up direct on the phone with the touchinput and the build terminal. I realy have fat fingers.

    thank you for helping me

  • I know you said you don't want to use key files, but using my script, all you need is to generate the key pair on your PC and pass the name of the public key to the script while your phone is connected via USB with android debugging enabled.

  • Using password authentication is disabled in /etc/init/ssh.override, which is editable by root. Your changes to this file will persist.

    However, I must strongly encourage you... DON'T ENABLE PASSWORD AUTHENTICATION! Anyone on any Wi-Fi network you join will be able to contact your phone to attempt to authenticate. If you only have a 4-digit PIN it is very easy to start brute-forcing your device's password. Even if you don't, it's easy to watch someone enter their password on an on-screen keyboard.

    Instead, check out Shell access via ssh on the UBports Docs to get an easy way to set up your SSH key authentication.

  • @UniSuperBox Perfect, this is the thing need to know. If I got SSH access I can set up the key files auth with my loved normal Keyboard. Until that I will not connect to any foraign wlans.

  • You could set up the ssh keyfiles via keyboard from the start by connecting your phone to your computer via a USB cable and then using adb shell to enter into a terminal on your phone from your computer.

  • @Ingo Thank you, i will follow this when I got my ssh access.

Log in to reply