Bug 2090093

Summary: Cannot connect to SSH server with password authentication
Product: [Fedora] Fedora Reporter: lukas.gerritzen
Component: kittyAssignee: Artem <ego.cordatus>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: ego.cordatus, michel, zawertun
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-25 09:01:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lukas.gerritzen 2022-05-25 06:50:07 UTC
Description of problem:
When trying to connect to a SSH server via password authentication, there is no way to enter the password. Instead, the Permission is denied several times before the server disconnects.

Version-Release number of selected component (if applicable):
kitty 0.25.0

How reproducible:
Consistently

Steps to Reproduce:
1. As recommended in the documentation, `alias ssh='kitty +kitten ssh'`
2. `$ ssh -v -o PasswordAuthentication=yes -o PreferredAuthentications=keyboard-interactive,password -o PubkeyAuthentication=no user@server`

Actual results:
```
[...]
debug1: Authentications that can continue: password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: read_passphrase: requested to askpass
ssh_askpass: exec(/usr/lib64/kitty/shell-integration/ssh/askpass.py): Permission denied
debug1: read_passphrase: requested to askpass
ssh_askpass: exec(/usr/lib64/kitty/shell-integration/ssh/askpass.py): Permission denied
debug1: Authentications that can continue: password,keyboard-interactive
debug1: read_passphrase: requested to askpass
ssh_askpass: exec(/usr/lib64/kitty/shell-integration/ssh/askpass.py): Permission denied
debug1: read_passphrase: requested to askpass
ssh_askpass: exec(/usr/lib64/kitty/shell-integration/ssh/askpass.py): Permission denied
Received disconnect from [IP] port 22:2: Too many authentication failures for [user]
Disconnected from [IP] port 22
```

Expected results:
```
debug1: Authentications that can continue: password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
(user@server) Password: 
```
(reading password input)


Additional info:
The problem occurs both with `GNU bash, version 5.1.16(1)-release (x86_64-redhat-linux-gnu)` and `zsh 5.8.1 (x86_64-redhat-linux-gnu)`.

```
$ ls -l /usr/lib64/kitty/shell-integration/ssh/askpass.py                                                 
-rw-r--r--. 1 root root 1398 27. Apr 14:03 /usr/lib64/kitty/shell-integration/ssh/askpass.py
```

Comment 1 Yaroslav Sidlovsky 2022-05-25 09:01:23 UTC

*** This bug has been marked as a duplicate of bug 2088828 ***