Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: SSH: Permission denied (publickey)

  1. #21
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: SSH: Permission denied (publickey)

    Quote Originally Posted by WilliamMiller54 View Post
    • If I change the authorized_keys files "644" to "600" I can not connect. I have to keep permissions at "644"
    • it takes about 30 seconds to connect, but is very quick after connected
    authorized_keys needs to be world readable, because it is owned by the user, so that's fine.

    As far as the delay, is that between the time you enter the username and password or before the logon prompt?

    I've had a delay after login while processes are running, but if the delay is priory to actually logging in, it might be either slow name resolution or a slow network.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  2. #22
    Join Date
    Jan 2007
    Beans
    16
    Distro
    Ubuntu

    Re: SSH: Permission denied (publickey)

    Quote Originally Posted by CharlesA View Post
    authorized_keys needs to be world readable, because it is owned by the user, so that's fine.

    As far as the delay, is that between the time you enter the username and password or before the logon prompt?

    I've had a delay after login while processes are running, but if the delay is priory to actually logging in, it might be either slow name resolution or a slow network.
    Thanks CharlesA,
    It takes about 30 seconds before the password prompt. It is working, so I wont look a gift horse in the mouth.

    Any idea why I can not SSH through the Remmina RDP client?

  3. #23
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: SSH: Permission denied (publickey)

    I haven't used Remmina before, but if I need to access something via VNC or RDP, I usually establish the SSH connection first then use localhost:port number to connect to the service.

    The server could be doing a DNS lookup of the client, but I'm not really sure if that would cause the delay or not.
    Last edited by cariboo; January 28th, 2014 at 05:26 AM. Reason: fixed it for you
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #24
    Join Date
    Mar 2008
    Beans
    115

    Re: SSH: Permission denied (publickey)

    On the clientside, you need permission 600 on .ssh directory in your home.
    Being a target means being on the internet. End of line.
    Takedown blog (hungarian)

  5. #25
    Join Date
    Jan 2007
    Beans
    16
    Distro
    Ubuntu

    Re: SSH: Permission denied (publickey)

    Quote Originally Posted by CharlesA View Post
    I haven't used Remmina before, but if I need to access something via VNC or RDP, I usually establish the SSH connection first then use localhost:port number to connect to the service.

    The server could be doing a DNS lookup of the client, but I'm not really sure if that would cause the delay or not.
    CharlesA,
    Can you please elaborate on that? You open a SSH connection via Terminal (port 22) and then point your RDP client to "localhost:22" ???

  6. #26
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: SSH: Permission denied (publickey)

    Quote Originally Posted by WilliamMiller54 View Post
    CharlesA,
    Can you please elaborate on that? You open a SSH connection via Terminal (port 22) and then point your RDP client to "localhost:22" ???
    Sorta. SSH -L 9001 192.168.1.1:3389

    Connect to localhost:9001
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #27
    Join Date
    Jan 2007
    Beans
    16
    Distro
    Ubuntu

    Re: SSH: Permission denied (publickey)

    Quote Originally Posted by CharlesA View Post
    Sorta. SSH -L 9001 192.168.1.1:3389

    Connect to localhost:9001
    Thank you CharlesA, you have been a huge help. This has been a big learning experience for me. Thank you

  8. #28
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: SSH: Permission denied (publickey)

    If you want more info about how to configure sshd, check out this page:
    https://help.ubuntu.com/community/SS...SH/Configuring
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •