UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ssh via password

    Scheduled Pinned Locked Moved Support
    6 Posts 4 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • K Offline
        Kerosini
        last edited by Kerosini

        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

        1 Reply Last reply Reply Quote 0
        • IngoI Offline
          Ingo
          last edited by

          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.
          https://github.com/Ingo-FP-Angel/enablessl

          K 1 Reply Last reply Reply Quote 1
          • U Offline
            UniSuperBox
            last edited by

            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.

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              Kerosini @UniSuperBox
              last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander
                last edited by arubislander

                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.

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Kerosini @Ingo
                  last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post