Skip to content

SSH connectivity to migrated VMs fails - authentication rejected #224

@myakove

Description

@myakove

Description

SSH connectivity test to migrated VMs fails after migration completes. Both publickey and password authentication methods are rejected.

Error Logs

2025-12-23T12:26:21.201960 utilities.ssh_utils INFO Attempting to establish port-forward
2025-12-23T12:26:24.203279 RemoteExecutor INFO [[email protected]/redhat] Check if address is connective via ssh in given timeout 5.0
2025-12-23T12:26:24.727933 paramiko.transport INFO Connected (version 2.0, client OpenSSH_8.0)
2025-12-23T12:26:25.458050 paramiko.transport INFO Authentication (publickey) failed.
2025-12-23T12:26:25.780275 paramiko.transport INFO Authentication (publickey) failed.
2025-12-23T12:26:29.165941 utilities.ssh_utils WARNING SSH connectivity test failed
2025-12-23T12:26:29.165168 paramiko.transport INFO Authentication (password) failed.

Analysis

  • Port-forward is established successfully
  • SSH connection is made (OpenSSH 8.0 detected)
  • Public key authentication fails (attempted twice)
  • Password authentication also fails
  • The VM appears reachable but credentials are being rejected

Possible Causes

  1. Password not set correctly on the migrated VM
  2. SSH password authentication disabled in sshd_config
  3. Root login disabled in sshd_config
  4. Cloud-init password not applied correctly
  5. SELinux or security policies blocking authentication

Environment

  • Source: VMware vSphere
  • Destination: OpenShift Virtualization (CNV)
  • SSH via: virtctl port-forward

Steps to Reproduce

  1. Migrate a VM from VMware to OpenShift
  2. Attempt SSH connection using the test framework
  3. Observe authentication failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions