Can't get on the server in a mosh.



  • Got the server. Debian set SSH-ключ♪ On team:

    ssh -i yandex_key em0ji@51.250.23.237   
    

    I'm going to the server:

    Linux rowihost 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64
    

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Mon Nov 8 10:16:07 2021 from 31.181.190.176

    There's no problem, the flight's normal, but as soon as I try to connect through. mosh:

    mosh em0ji@51.250.23.237

    There's a mistake in the terminal:

    em0ji@51.250.23.237: Permission denied (publickey).
    /usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)

    How can this problem be addressed?



  • Problem solved, everything has to be added. ssh-ключ Total ssh-agent♪ Okay, let's check the accessibility first. ssh-agent team:

    eval "$(ssh-agent -s)"
    

    Terminal withdrawal:

    Agent pid 2985
    

    Then we'll check that we have a generated and downloaded. SSH private key:

    ssh-add -l
    

    I've got a terminal that says,

    The agent has no identities.
    

    After that, we just need to copy the private key. ~/.ssh and command:

    ssh-add ~/.ssh/name_key
    

    And get an answer:

    Identity added: /home/kali/.ssh/name_key (user@group)
    

    After these manipulations, you can enter the abbreviated team server. ssh username@IP_server or mosh username@IP_server

    Don't forget to add. ssh-agent Into the auto loading.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2