Bug 2090093 - Cannot connect to SSH server with password authentication
Summary: Cannot connect to SSH server with password authentication
Keywords:
Status: CLOSED DUPLICATE of bug 2088828
Alias: None
Product: Fedora
Classification: Fedora
Component: kitty
Version: 36
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Artem
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-25 06:50 UTC by lukas.gerritzen
Modified: 2022-05-25 09:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-25 09:01:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.