не может войти в систему с моим паролем во время соединения SSH

мой /etc/ssh/ssh_config следующие

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

#Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
    PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   IdentityFile ~/.ssh/id_ecdsa
#   IdentityFile ~/.ssh/id_ed25519
#   Port 22
#   Protocol 2
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1h
#    SendEnv LANG LC_*
#    HashKnownHosts yes
#    GSSAPIAuthentication yes

мой student пользователь

ubuntu@ubuntu:~$ finger student
Login: student                  Name: 
Directory: /home/student                Shell: /bin/bash
Never logged in.
No mail.
No Plan.

при установлении соединения SSH с моим VM это должно как я для ввода пароля, который не имеет место, я получил это?

joseph@joseph-X541UJ:~$ multipass list 
Name                    State             IPv4             Image
ubuntu                  Running           10.226.208.153   Ubuntu 18.04 LTS
joseph@joseph-X541UJ:~$ ssh student@10.226.208.153
student@10.226.208.153: Permission denied (publickey).

почему я не могу войти в систему студенческого пользователя с его паролем, помогите

0
задан 14 February 2020 в 23:52

1 ответ

Необходимо установить эту серверную сторону. Если Вы не можете соединиться с сервером вообще для внесения этих изменений затем, Вы могли бы не повезло делать это удаленно.

Попытайтесь вызвать аутентификацию по паролю сначала хотя:

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no student@<ip-address>

После того как Вы успешно соединились через SSH, можно изменить настройки серверной стороны.

Я предлагаю делать резервное копирование конфигурации сначала:

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults

Теперь, отредактируйте файл конфигурации:

sudo nano /etc/ssh/sshd_config

Найдите утверждение строки PasswordAuthentication и набор это к yes.

PasswordAuthentication yes

Сохраните свой файл и перезапустите SSH

sudo systemctl restart ssh

См. это руководство для дальнейшей информации о ssh конфигурации.

3
ответ дан 20 February 2020 в 22:53

Другие вопросы по тегам:

Похожие вопросы: