Я запускаю sshd в непривилегированном режиме в контейнере докера. Кажется, сервер принимает мой закрытый ключ, но затем отклоняет его. Конфигурация кажется довольно простой. Я не знаю, блокирует ли это соединение PAM или что-то еще.
Сервер sshd запускается пользователем foobar с помощью команды: /usr/sbin/sshd -f /opt/sshd/sshd_config -dd -E /tmp/container.log.
Я видел и другие проблемы с /etc/shadow, но не редактировал его вручную.< /p>
Заранее спасибо,
sshd_config:
cat /opt/sshd/sshd_config
Include /etc/ssh/sshd_config.d/*.conf
Port 2222
ChallengeResponseAuthentication no
HostKey /opt/sshd/ssh_host_ed25519_key
UsePAM yes
LogLevel ERROR
PidFile /opt/sshd/sshd.pid
StrictModes no
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Match User build
ForceCommand /usr/local/bin/sshd-with-logs
Полный журнал sshd
debug2: load_server_config: filename /opt/sshd/sshd_config
debug2: load_server_config: done config len = 355
debug2: parse_server_config_depth: config /opt/sshd/sshd_config len 355
debug2: /opt/sshd/sshd_config line 1: new include /etc/ssh/sshd_config.d/*.conf
debug2: /opt/sshd/sshd_config line 1: no match for /etc/ssh/sshd_config.d/*.conf
debug1: sshd version OpenSSH_9.3, OpenSSL 3.1.4 24 Oct 2023
debug1: private host key #0: ssh-ed25519 SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo
debug1: setgroups() failed: Operation not permitted
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-f'
debug1: rexec_argv[2]='/opt/sshd/sshd_config'
debug1: rexec_argv[3]='-dd'
debug1: rexec_argv[4]='-E'
debug1: rexec_argv[5]='/tmp/container.log'
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 2222 on 0.0.0.0.
Server listening on 0.0.0.0 port 2222.
debug2: fd 5 setting O_NONBLOCK
debug1: Bind to port 2222 on ::.
Server listening on :: port 2222.
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 6 out 6 newsock 6 pipe -1 sock 9
debug2: parse_server_config_depth: config rexec len 355
debug2: parse_server_config_depth: config len 0
debug1: sshd version OpenSSH_9.3, OpenSSL 3.1.4 24 Oct 2023
debug1: private host key #0: ssh-ed25519 SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo
debug1: setgroups() failed: Operation not permitted
debug1: inetd sockets after dupping: 5, 5
Connection from 10.0.1.3 port 42706 on 10.0.1.5 port 2222 rdomain ""
debug1: Local version string SSH-2.0-OpenSSH_9.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u3
debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u3 pat OpenSSH* compat 0x04000000
debug2: fd 5 setting O_NONBLOCK
debug2: Network child is on pid 37
debug1: sshd_selinux_change_privsep_preauth_context: Failed to open SELinux context file [preauth]
debug1: list_hostkey_types: ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug2: local server KEXINIT proposal [preauth]
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,[email protected] [preauth]
debug2: host key algorithms: ssh-ed25519 [preauth]
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: compression ctos: none,[email protected] [preauth]
debug2: compression stoc: none,[email protected] [preauth]
debug2: languages ctos: [preauth]
debug2: languages stoc: [preauth]
debug2: first_kex_follows 0 [preauth]
debug2: reserved 0 [preauth]
debug2: peer client KEXINIT proposal [preauth]
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,[email protected] [preauth]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256 [preauth]
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: compression ctos: none,[email protected],zlib [preauth]
debug2: compression stoc: none,[email protected],zlib [preauth]
debug2: languages ctos: [preauth]
debug2: languages stoc: [preauth]
debug2: first_kex_follows 0 [preauth]
debug2: reserved 0 [preauth]
debug1: kex: algorithm: [email protected] [preauth]
debug1: kex: host key algorithm: ssh-ed25519 [preauth]
debug1: kex: client->server cipher: [email protected] MAC: compression: none [preauth]
debug1: kex: server->client cipher: [email protected] MAC: compression: none [preauth]
debug1: kex: [email protected] need=64 dh_need=64 [preauth]
debug1: kex: [email protected] need=64 dh_need=64 [preauth]
debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
debug1: SSH2_MSG_KEX_ECDH_INIT received [preauth]
debug2: monitor_read: 6 used once, disabling now
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3 [preauth]
debug2: ssh_set_newkeys: mode 1 [preauth]
debug1: rekey out after 134217728 blocks [preauth]
debug1: SSH2_MSG_NEWKEYS sent [preauth]
debug1: Sending SSH2_MSG_EXT_INFO [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
debug1: ssh_packet_read_poll2: resetting read seqnr 3 [preauth]
debug1: SSH2_MSG_NEWKEYS received [preauth]
debug2: ssh_set_newkeys: mode 0 [preauth]
debug1: rekey in after 134217728 blocks [preauth]
debug1: KEX done [preauth]
debug1: userauth-request for user foobar service ssh-connection method none [preauth]
debug1: attempt 0 failures 0 [preauth]
debug2: parse_server_config_depth: config reprocess config len 355
debug2: parse_server_config_depth: config len 0
debug2: monitor_read: 8 used once, disabling now
debug2: input_userauth_request: setting up authctxt for foobar [preauth]
debug2: input_userauth_request: try method none [preauth]
debug1: PAM: initializing for "foobar"
debug1: PAM: setting PAM_RHOST to "10.0.1.3"
debug1: PAM: setting PAM_TTY to "ssh"
debug2: monitor_read: 100 used once, disabling now
debug1: userauth-request for user foobar service ssh-connection method publickey [preauth]
debug1: attempt 1 failures 0 [preauth]
debug2: input_userauth_request: try method publickey [preauth]
debug2: userauth_pubkey: valid user foobar querying public key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHY3AcptWA++guSvurtAzUZhkyX+TLSUq9MeK4OeuwcZ [preauth]
debug1: userauth_pubkey: publickey test pkalg ssh-ed25519 pkblob ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ [preauth]
debug2: monitor_read: 4 used once, disabling now
debug2: monitor_read: 80 used once, disabling now
debug1: temporarily_use_uid: 998/998 (e=998/998)
debug1: trying public key file /home/foobar/.ssh/authorized_keys
debug1: fd 6 clearing O_NONBLOCK
debug1: /home/foobar/.ssh/authorized_keys:1: matching key found: ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: /home/foobar/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
Accepted key ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ found at /home/foobar/.ssh/authorized_keys:1
debug2: auth_check_authkeys_file: /home/foobar/.ssh/authorized_keys: processed 1/1 lines
debug1: restore_uid: (unprivileged)
debug2: userauth_pubkey: authenticated 0 pkalg ssh-ed25519 [preauth]
Postponed publickey for foobar from 10.0.1.3 port 42706 ssh2 [preauth]
debug1: userauth-request for user foobar service ssh-connection method [email protected] [preauth]
debug1: attempt 2 failures 0 [preauth]
debug2: input_userauth_request: try method [email protected] [preauth]
debug2: userauth_pubkey: valid user foobar attempting public key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHY3AcptWA++guSvurtAzUZhkyX+TLSUq9MeK4OeuwcZ [preauth]
debug1: temporarily_use_uid: 998/998 (e=998/998)
debug1: trying public key file /home/foobar/.ssh/authorized_keys
debug1: fd 6 clearing O_NONBLOCK
debug1: /home/foobar/.ssh/authorized_keys:1: matching key found: ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: /home/foobar/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
Accepted key ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ found at /home/foobar/.ssh/authorized_keys:1
debug2: auth_check_authkeys_file: /home/foobar/.ssh/authorized_keys: processed 1/1 lines
debug1: restore_uid: (unprivileged)
debug1: auth_activate_options: setting new authentication options
debug1: do_pam_account: called
debug2: do_pam_account: auth information in SSH_AUTH_INFO_0
Failed publickey for foobar from 10.0.1.3 port 42706 ssh2: ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: auth_activate_options: setting new authentication options [preauth]
debug2: userauth_pubkey: authenticated 1 pkalg ssh-ed25519 [preauth]
Access denied for user foobar by PAM account configuration [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: PAM: cleanup
debug1: Killing privsep child 37
От клиента, пытающегося подключиться к серверу:
ssh -p 2222 -vvvvv container-scanner
OpenSSH_9.2p1 Debian-2+deb12u3, OpenSSL 3.0.14 4 Jun 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/foobar/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/foobar/.ssh/known_hosts2'
debug2: resolving "container-scanner" port 2222
debug3: resolve_host: lookup container-scanner:2222
debug3: ssh_connect_direct: entering
debug1: Connecting to container-scanner [10.0.1.5] port 2222.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: Connection established.
debug1: identity file /home/foobar/.ssh/id_rsa type -1
debug1: identity file /home/foobar/.ssh/id_rsa-cert type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/foobar/.ssh/id_ed25519 type 3
debug1: identity file /home/foobar/.ssh/id_ed25519-cert type -1
debug1: identity file /home/foobar/.ssh/id_ed25519_sk type -1
debug1: identity file /home/foobar/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/foobar/.ssh/id_xmss type -1
debug1: identity file /home/foobar/.ssh/id_xmss-cert type -1
debug1: identity file /home/foobar/.ssh/id_dsa type -1
debug1: identity file /home/foobar/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u3
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.3
debug1: compat_banner: match: OpenSSH_9.3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to container-scanner:2222 as 'foobar'
debug3: put_host_port: [container-scanner]:2222
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,[email protected]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,[email protected]
debug2: host key algorithms: ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: compression: none
debug1: kex: client->server cipher: [email protected] MAC: compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo
debug3: put_host_port: [10.0.1.5]:2222
debug3: put_host_port: [container-scanner]:2222
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: checking without port identifier
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/foobar/.ssh/known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/foobar/.ssh/known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/foobar/.ssh/known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/foobar/.ssh/known_hosts2 does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
The authenticity of host '[container-scanner]:2222 ([10.0.1.5]:2222)' can't be established.
ED25519 key fingerprint is SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Failed to add the host to the list of known hosts (/home/foobar/.ssh/known_hosts).
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/foobar/.ssh/id_rsa
debug1: Will attempt key: /home/foobar/.ssh/id_ecdsa
debug1: Will attempt key: /home/foobar/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/foobar/.ssh/id_ed25519 ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: Will attempt key: /home/foobar/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/foobar/.ssh/id_xmss
debug1: Will attempt key: /home/foobar/.ssh/id_dsa
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=
debug1: kex_input_ext_info: [email protected]=
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/foobar/.ssh/id_rsa
debug3: no such identity: /home/foobar/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/foobar/.ssh/id_ecdsa
debug3: no such identity: /home/foobar/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/foobar/.ssh/id_ecdsa_sk
debug3: no such identity: /home/foobar/.ssh/id_ecdsa_sk: No such file or directory
debug1: Offering public key: /home/foobar/.ssh/id_ed25519 ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /home/foobar/.ssh/id_ed25519 ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: sign_and_send_pubkey: using [email protected] with ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: send packet: type 50
Connection closed by 10.0.1.5 port 2222
Подробнее здесь: https://stackoverflow.com/questions/790 ... -publickey
PAM SSH_AUTH_INFO_0 Не удалось открыть открытый ключ [закрыто] ⇐ Linux
1728984975
Anonymous
Я запускаю sshd в непривилегированном режиме в контейнере докера. Кажется, сервер принимает мой закрытый ключ, но затем отклоняет его. Конфигурация кажется довольно простой. Я не знаю, блокирует ли это соединение PAM или что-то еще.
Сервер sshd запускается пользователем foobar с помощью команды: /usr/sbin/sshd -f /opt/sshd/sshd_config -dd -E /tmp/container.log.
Я видел и другие проблемы с /etc/shadow, но не редактировал его вручную.< /p>
Заранее спасибо,
sshd_config:
cat /opt/sshd/sshd_config
Include /etc/ssh/sshd_config.d/*.conf
Port 2222
ChallengeResponseAuthentication no
HostKey /opt/sshd/ssh_host_ed25519_key
UsePAM yes
LogLevel ERROR
PidFile /opt/sshd/sshd.pid
StrictModes no
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Match User build
ForceCommand /usr/local/bin/sshd-with-logs
Полный журнал sshd
debug2: load_server_config: filename /opt/sshd/sshd_config
debug2: load_server_config: done config len = 355
debug2: parse_server_config_depth: config /opt/sshd/sshd_config len 355
debug2: /opt/sshd/sshd_config line 1: new include /etc/ssh/sshd_config.d/*.conf
debug2: /opt/sshd/sshd_config line 1: no match for /etc/ssh/sshd_config.d/*.conf
debug1: sshd version OpenSSH_9.3, OpenSSL 3.1.4 24 Oct 2023
debug1: private host key #0: ssh-ed25519 SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo
debug1: setgroups() failed: Operation not permitted
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-f'
debug1: rexec_argv[2]='/opt/sshd/sshd_config'
debug1: rexec_argv[3]='-dd'
debug1: rexec_argv[4]='-E'
debug1: rexec_argv[5]='/tmp/container.log'
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 2222 on 0.0.0.0.
Server listening on 0.0.0.0 port 2222.
debug2: fd 5 setting O_NONBLOCK
debug1: Bind to port 2222 on ::.
Server listening on :: port 2222.
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 6 out 6 newsock 6 pipe -1 sock 9
debug2: parse_server_config_depth: config rexec len 355
debug2: parse_server_config_depth: config len 0
debug1: sshd version OpenSSH_9.3, OpenSSL 3.1.4 24 Oct 2023
debug1: private host key #0: ssh-ed25519 SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo
debug1: setgroups() failed: Operation not permitted
debug1: inetd sockets after dupping: 5, 5
Connection from 10.0.1.3 port 42706 on 10.0.1.5 port 2222 rdomain ""
debug1: Local version string SSH-2.0-OpenSSH_9.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u3
debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u3 pat OpenSSH* compat 0x04000000
debug2: fd 5 setting O_NONBLOCK
debug2: Network child is on pid 37
debug1: sshd_selinux_change_privsep_preauth_context: Failed to open SELinux context file [preauth]
debug1: list_hostkey_types: ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug2: local server KEXINIT proposal [preauth]
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,[email protected] [preauth]
debug2: host key algorithms: ssh-ed25519 [preauth]
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: compression ctos: none,[email protected] [preauth]
debug2: compression stoc: none,[email protected] [preauth]
debug2: languages ctos: [preauth]
debug2: languages stoc: [preauth]
debug2: first_kex_follows 0 [preauth]
debug2: reserved 0 [preauth]
debug2: peer client KEXINIT proposal [preauth]
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,[email protected] [preauth]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256 [preauth]
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected] [preauth]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
debug2: compression ctos: none,[email protected],zlib [preauth]
debug2: compression stoc: none,[email protected],zlib [preauth]
debug2: languages ctos: [preauth]
debug2: languages stoc: [preauth]
debug2: first_kex_follows 0 [preauth]
debug2: reserved 0 [preauth]
debug1: kex: algorithm: [email protected] [preauth]
debug1: kex: host key algorithm: ssh-ed25519 [preauth]
debug1: kex: client->server cipher: [email protected] MAC: compression: none [preauth]
debug1: kex: server->client cipher: [email protected] MAC: compression: none [preauth]
debug1: kex: [email protected] need=64 dh_need=64 [preauth]
debug1: kex: [email protected] need=64 dh_need=64 [preauth]
debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
debug1: SSH2_MSG_KEX_ECDH_INIT received [preauth]
debug2: monitor_read: 6 used once, disabling now
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3 [preauth]
debug2: ssh_set_newkeys: mode 1 [preauth]
debug1: rekey out after 134217728 blocks [preauth]
debug1: SSH2_MSG_NEWKEYS sent [preauth]
debug1: Sending SSH2_MSG_EXT_INFO [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
debug1: ssh_packet_read_poll2: resetting read seqnr 3 [preauth]
debug1: SSH2_MSG_NEWKEYS received [preauth]
debug2: ssh_set_newkeys: mode 0 [preauth]
debug1: rekey in after 134217728 blocks [preauth]
debug1: KEX done [preauth]
debug1: userauth-request for user foobar service ssh-connection method none [preauth]
debug1: attempt 0 failures 0 [preauth]
debug2: parse_server_config_depth: config reprocess config len 355
debug2: parse_server_config_depth: config len 0
debug2: monitor_read: 8 used once, disabling now
debug2: input_userauth_request: setting up authctxt for foobar [preauth]
debug2: input_userauth_request: try method none [preauth]
debug1: PAM: initializing for "foobar"
debug1: PAM: setting PAM_RHOST to "10.0.1.3"
debug1: PAM: setting PAM_TTY to "ssh"
debug2: monitor_read: 100 used once, disabling now
debug1: userauth-request for user foobar service ssh-connection method publickey [preauth]
debug1: attempt 1 failures 0 [preauth]
debug2: input_userauth_request: try method publickey [preauth]
debug2: userauth_pubkey: valid user foobar querying public key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHY3AcptWA++guSvurtAzUZhkyX+TLSUq9MeK4OeuwcZ [preauth]
debug1: userauth_pubkey: publickey test pkalg ssh-ed25519 pkblob ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ [preauth]
debug2: monitor_read: 4 used once, disabling now
debug2: monitor_read: 80 used once, disabling now
debug1: temporarily_use_uid: 998/998 (e=998/998)
debug1: trying public key file /home/foobar/.ssh/authorized_keys
debug1: fd 6 clearing O_NONBLOCK
debug1: /home/foobar/.ssh/authorized_keys:1: matching key found: ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: /home/foobar/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
Accepted key ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ found at /home/foobar/.ssh/authorized_keys:1
debug2: auth_check_authkeys_file: /home/foobar/.ssh/authorized_keys: processed 1/1 lines
debug1: restore_uid: (unprivileged)
debug2: userauth_pubkey: authenticated 0 pkalg ssh-ed25519 [preauth]
Postponed publickey for foobar from 10.0.1.3 port 42706 ssh2 [preauth]
debug1: userauth-request for user foobar service ssh-connection method [email protected] [preauth]
debug1: attempt 2 failures 0 [preauth]
debug2: input_userauth_request: try method [email protected] [preauth]
debug2: userauth_pubkey: valid user foobar attempting public key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHY3AcptWA++guSvurtAzUZhkyX+TLSUq9MeK4OeuwcZ [preauth]
debug1: temporarily_use_uid: 998/998 (e=998/998)
debug1: trying public key file /home/foobar/.ssh/authorized_keys
debug1: fd 6 clearing O_NONBLOCK
debug1: /home/foobar/.ssh/authorized_keys:1: matching key found: ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: /home/foobar/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
Accepted key ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ found at /home/foobar/.ssh/authorized_keys:1
debug2: auth_check_authkeys_file: /home/foobar/.ssh/authorized_keys: processed 1/1 lines
debug1: restore_uid: (unprivileged)
debug1: auth_activate_options: setting new authentication options
debug1: do_pam_account: called
debug2: do_pam_account: auth information in SSH_AUTH_INFO_0
Failed publickey for foobar from 10.0.1.3 port 42706 ssh2: ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: auth_activate_options: setting new authentication options [preauth]
debug2: userauth_pubkey: authenticated 1 pkalg ssh-ed25519 [preauth]
Access denied for user foobar by PAM account configuration [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: PAM: cleanup
debug1: Killing privsep child 37
От клиента, пытающегося подключиться к серверу:
ssh -p 2222 -vvvvv container-scanner
OpenSSH_9.2p1 Debian-2+deb12u3, OpenSSL 3.0.14 4 Jun 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/foobar/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/foobar/.ssh/known_hosts2'
debug2: resolving "container-scanner" port 2222
debug3: resolve_host: lookup container-scanner:2222
debug3: ssh_connect_direct: entering
debug1: Connecting to container-scanner [10.0.1.5] port 2222.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: Connection established.
debug1: identity file /home/foobar/.ssh/id_rsa type -1
debug1: identity file /home/foobar/.ssh/id_rsa-cert type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/foobar/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/foobar/.ssh/id_ed25519 type 3
debug1: identity file /home/foobar/.ssh/id_ed25519-cert type -1
debug1: identity file /home/foobar/.ssh/id_ed25519_sk type -1
debug1: identity file /home/foobar/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/foobar/.ssh/id_xmss type -1
debug1: identity file /home/foobar/.ssh/id_xmss-cert type -1
debug1: identity file /home/foobar/.ssh/id_dsa type -1
debug1: identity file /home/foobar/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u3
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.3
debug1: compat_banner: match: OpenSSH_9.3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to container-scanner:2222 as 'foobar'
debug3: put_host_port: [container-scanner]:2222
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,[email protected]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,[email protected]
debug2: host key algorithms: ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: compression: none
debug1: kex: client->server cipher: [email protected] MAC: compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo
debug3: put_host_port: [10.0.1.5]:2222
debug3: put_host_port: [container-scanner]:2222
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: checking without port identifier
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/foobar/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/foobar/.ssh/known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/foobar/.ssh/known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/foobar/.ssh/known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/foobar/.ssh/known_hosts2 does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
The authenticity of host '[container-scanner]:2222 ([10.0.1.5]:2222)' can't be established.
ED25519 key fingerprint is SHA256:FwrtA+nV3FVcuvejwEuE9vXTi4JYoAzAaSlIli0RBqo.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Failed to add the host to the list of known hosts (/home/foobar/.ssh/known_hosts).
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/foobar/.ssh/id_rsa
debug1: Will attempt key: /home/foobar/.ssh/id_ecdsa
debug1: Will attempt key: /home/foobar/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/foobar/.ssh/id_ed25519 ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug1: Will attempt key: /home/foobar/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/foobar/.ssh/id_xmss
debug1: Will attempt key: /home/foobar/.ssh/id_dsa
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=
debug1: kex_input_ext_info: [email protected]=
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/foobar/.ssh/id_rsa
debug3: no such identity: /home/foobar/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/foobar/.ssh/id_ecdsa
debug3: no such identity: /home/foobar/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/foobar/.ssh/id_ecdsa_sk
debug3: no such identity: /home/foobar/.ssh/id_ecdsa_sk: No such file or directory
debug1: Offering public key: /home/foobar/.ssh/id_ed25519 ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /home/foobar/.ssh/id_ed25519 ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: sign_and_send_pubkey: using [email protected] with ED25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:reuNuQFJn+q5U+nQZJQeoR/Ye4LWYI72UWTzZ+TvkUQ
debug3: send packet: type 50
Connection closed by 10.0.1.5 port 2222
Подробнее здесь: [url]https://stackoverflow.com/questions/79089327/pam-ssh-auth-info-0-failed-publickey[/url]
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как настроить SSHD и PAM, чтобы сделать процессы сеанса SSH, определяют возможности?
Anonymous » » в форуме LinuxЯ хочу, чтобы мой процесс сеанса SSH имел возможность CAP_SYS_ADMIN, когда SSHING в удаленном сервере Ubuntu 22.04. Однако я столкнулся с проблемами. Я настроил следующее:
Добавлена cap_sys_admin @mygroup to /etc/security/capability.conf.... - 0 Ответы
- 167 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Аутентификация JSCH PAM - «AUTH FAIL» - учетные данные верны
Anonymous » » в форуме JAVAЯ создаю класс SFTP, ответственный за перечисление файлов удаленного каталога. Я использую библиотеку JSCH для этого. У меня уже есть пользователь, и я могу вручную SSH на удаленный сервер. Однако, когда JSCH пытается подключить его отвечает... - 0 Ответы
- 12 Просмотры
-
Последнее сообщение Anonymous
-
-
-
SSH Аутентификация пароля в Java с использованием JCraft JSCH не сбои с «Auth Fail», но командная строка "SSH" работает
Anonymous » » в форуме JAVAОС моей системы - Ubuntu 18. Я пытаюсь подключить SFTP через Java jcraft jsch, но столкнулся с этим исключением:
comply.jsch.jschexcept Терминал с использованием sftp прекрасно работает с именем пользователя и паролем, без проблем.
Из Filezilla... - 0 Ответы
- 10 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Могу ли я использовать свой «локальный» открытый ключ для входа в систему по ssh с одного сервера на другой (vServer) и
Anonymous » » в форуме PhpПоскольку я новичок в этом, я думаю, что просто что-то не понимаю, но пока не могу найти в Интернете никакого работающего решения. Моя установка следующая: У меня есть локальный компьютер, на котором я работаю, общий сервер с функцией SSH (в... - 0 Ответы
- 40 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как мне напрямую добавить G к самому себе K раз при суммировании, чтобы вычислить открытый ключ из одного закрытого ключ
Anonymous » » в форуме PythonУ меня есть небольшой скрипт на Python, который позволяет мне вычислить открытый ключ Ethereum на основе целого числа закрытого ключа. Я хочу использовать суммирование, чтобы напрямую добавить G к самому себе k раз (базовое умножение), чтобы я мог... - 0 Ответы
- 71 Просмотры
-
Последнее сообщение Anonymous
-
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...