Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 12 of 12

Thread: ssh connection without parameter

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Title
    Moderator
    Join Date
    Jul 2011
    Location
    germania
    Posts
    5,126
    Thanks
    106
    Thanked 1,434 Times in 1,137 Posts

    ssh connection without parameter

    Hi,
    I am trying to manage my VUs with scripts on different Linux PCs. For this I need a root@ip-number login without password. On the Linux PCs OpenSSH is running. I copy the public key with ssh-copy-id and it looks correct on the VU after that. I still need a password to login with ssh root@ip-number. What am I missing?

    Ralf
    ---
    Sat:VU+ Ultimo4K/Solo4K/Duo2/2*Solo2/Ultimo
    Remote: Harmony 200, 700, Link, Smart Control, Smart Companion, Elite, 2*Ultimate, Keyboard

  2. #2
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by Trial View Post
    Hi,
    I am trying to manage my VUs with scripts on different Linux PCs. For this I need a root@ip-number login without password. On the Linux PCs OpenSSH is running.
    It's a server process, so needs to be running on he Vix box.

    I copy the public key with ssh-copy-id and it looks correct on the VU after that. I still need a password to login with ssh root@ip-number. What am I missing?
    It needs to be in a file called authorized_keys in ~/.ssh.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. #3

    Title
    Moderator
    Join Date
    Jul 2011
    Location
    germania
    Posts
    5,126
    Thanks
    106
    Thanked 1,434 Times in 1,137 Posts
    Hi,
    ssh-copy-id succeeded but I still cannot login without password. I guess it might have to do something with the account and name of the client which is at the end of the pub file. My client is root@Symcon-6 but in the pub file it is a different name Symcon-6.4.331

    Are these information at the end of the pub file important?

    Ralf
    ---
    Sat:VU+ Ultimo4K/Solo4K/Duo2/2*Solo2/Ultimo
    Remote: Harmony 200, 700, Link, Smart Control, Smart Companion, Elite, 2*Ultimate, Keyboard

  4. #4
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by Trial View Post
    Are these information at the end of the pub file important?
    Irrelevant to ssh. Only there for human readers.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  5. #5
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Does the content of the authorised_keys file on the VUs correspond to the *.pub file you have on the clients?

    What type of key are you using? Mine are ecdsa and I have no problems.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #6

    Title
    Moderator
    Join Date
    Jul 2011
    Location
    germania
    Posts
    5,126
    Thanks
    106
    Thanked 1,434 Times in 1,137 Posts
    Hi,
    at the moment rsa. I will try ecdsa in a moment. Now pub key starts with ecdsa-sha2-nistp256 and it is in the dropbear directory in authorized keys and on the client know_hosts is also created. It worked for quite a few month and no I cannot make it to work anymore. Merde:-(

    Ralf
    ---
    Sat:VU+ Ultimo4K/Solo4K/Duo2/2*Solo2/Ultimo
    Remote: Harmony 200, 700, Link, Smart Control, Smart Companion, Elite, 2*Ultimate, Keyboard

  7. #7
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by Trial View Post
    Hi,
    at the moment rsa. I will try ecdsa in a moment. Now pub key starts with ecdsa-sha2-nistp256 and it is in the dropbear directory in authorized keys
    dropbear?
    Ah, that's a slightly different beast - I'd forgotten.
    But the authorized_keys file should still be in ~/.ssh. There is no account-based dropbear directory.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. #8

    Title
    Moderator
    Join Date
    Jul 2011
    Location
    germania
    Posts
    5,126
    Thanks
    106
    Thanked 1,434 Times in 1,137 Posts
    Hi,
    for dropbear it is /etc/dropbear Yesterday I looked together with a friend which uses Linux for more than 20 years and hi also had no idea. Everythink looks OK with one problem it does not work:-(

    Removed autorized_key, created new key on client side with ssh-keygen, copy pub key with ssh-copy-id. Pub key on client is exactly the same as authorized_keys on VU. There is also no option to enable root access without password only options to disable it and I looked into /etc/init.d/dropbear and there is no such option used.

    Ralf


    Ralf
    ---
    Sat:VU+ Ultimo4K/Solo4K/Duo2/2*Solo2/Ultimo
    Remote: Harmony 200, 700, Link, Smart Control, Smart Companion, Elite, 2*Ultimate, Keyboard

  9. #9
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by Trial View Post
    Hi,
    for dropbear it is /etc/dropbear
    That's where the system key goes.

    My authorised_keys is in ~/.ssh. And it works. Have you actually tried putting it there?

    Yesterday I looked together with a friend which uses Linux for more than 20 years
    I've worked with it for over 30, if it helps.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  10. #10

    Title
    Moderator
    Join Date
    Jul 2011
    Location
    germania
    Posts
    5,126
    Thanks
    106
    Thanked 1,434 Times in 1,137 Posts
    Hi,
    mistery and problem solved. With ssh-copy-id the public key is copied to /etc/dropbear/authorized_keys but it must (now) be in /home/root/.ssh/authorized_keys. Perhaps there was an update for dropbear in the last week. It still worked for me until January before.

    Ralf
    ---
    Sat:VU+ Ultimo4K/Solo4K/Duo2/2*Solo2/Ultimo
    Remote: Harmony 200, 700, Link, Smart Control, Smart Companion, Elite, 2*Ultimate, Keyboard

  11. #11
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by Trial View Post
    Hi,
    mistery and problem solved. With ssh-copy-id the public key is copied to /etc/dropbear/authorized_keys but it must (now) be in /home/root/.ssh/authorized_keys. Perhaps there was an update for dropbear in the last week. It still worked for me until January before.
    Mine has been in ~/.ssh since I started using ssh on the boxes (so a few years at least).
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  12. #12

    Title
    Moderator
    Join Date
    Jul 2011
    Location
    germania
    Posts
    5,126
    Thanks
    106
    Thanked 1,434 Times in 1,137 Posts
    Hi,
    I think the problem is the communication between ssh and dropbear. ssh-copy-id uses the wrong directory.

    Ralf
    ---
    Sat:VU+ Ultimo4K/Solo4K/Duo2/2*Solo2/Ultimo
    Remote: Harmony 200, 700, Link, Smart Control, Smart Companion, Elite, 2*Ultimate, Keyboard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.