Skip to content

Feature Request: Prompt interactively for SSH password when password authentication is required #99

Description

@mohan-s-gopal

When connecting to a password-authenticated SSH host imported from ~/.ssh/config, OmnySSH attempts the connection and returns:

SSH authentication failed

It does not prompt for the SSH login password.

Example ~/.ssh/config:

Host intgus1
    HostName bastion.example.com
    User myuser
    Port 22

The same host works with standard OpenSSH:

ssh intgus1

OpenSSH prompts interactively:

myuser@bastion.example.com's password:

Expected behavior

If SSH agent/key authentication fails and the server supports password authentication, OmnySSH should display an interactive password prompt, for example:

SSH password for myuser@bastion.example.com:

The password could optionally be used only for the current connection/session without requiring it to be permanently stored in hosts.toml.

Current behavior

OmnySSH tries the available SSH agent/keys and then fails with SSH authentication failed when no password has already been configured.

Suggested behavior

Authentication flow could be:

  1. Try SSH agent
  2. Try configured/default SSH keys
  3. If password authentication is available, prompt the user for a password
  4. Connect using the entered password
  5. Optionally allow "Remember password" or keep it session-only

This would make password-authenticated hosts imported from ~/.ssh/config behave similarly to the standard ssh client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions