Skip to content
Snippets Groups Projects

Solved issue #2910 - Added support for IPv6 with fallback to IPv4 for ssh

Merged Stephane Coulondre requested to merge scoulondre/Remmina:ssh_dual_ipv_stack into master

Solved issue #2910 (closed)

Description

Added support for IPv6 with fallback to IPv4 for ssh As ssh_options_set with SSH_OPTIONS_HOST allows for hostnames and IPs, it's just a matter of resolving the hostname before calling ssh_connect. I added a call to getaddrinfo and when IPv4 and IPv6 are returned, it uses IPv6 by default, then if the connection fails, it falls back to IPv4.

Related Issue

Issue #2910 (closed) "dual-stack IPv4/6 host can't be connected via domain name if the remote port is only opened for IPv4"

Motivation and Context

How Has This Been Tested?

I tested it on a dual stack machine of course, that tries to connect to another dual stack machine. OS used: Devuan Chimaera and Debian Bullseye

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
Edited by Stephane Coulondre

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading