I'd suggest using "ssh -v" rather than relying on the "Last login:"
output.  For instance:

  $ ssh -v -Snone riva : 2>&1 | grep 'Connecting to'
  debug1: Connecting to riva.pelham.vpn.ucam.org 
[2001:8b0:bff2:eb14:6a05:caff:fe12:71bf] port 22.
  $ ssh -4v -Snone riva : 2>&1 | grep 'Connecting to'
  debug1: Connecting to riva.pelham.vpn.ucam.org [172.20.153.17] port 22.

The client in this case is on xenial, so I know that "ssh -4" is not
fundamentally broken on xenial.  You might also like to check that
there's nothing relevant in your ~/.ssh/config that might be overriding
the normal logic.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1687482

Title:
  -4 flag doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1687482/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to