It’s claimed all over the Internet, here for example, that below works.
ssh -J username@host1:port username@host2:port
You’ll get an error like this:
Bad stdio forwarding specification 'username@host2:port:22'
ssh_exchange_identification: Connection closed by remote host
You have to specify the destination host port with the
ssh -pdestination_host_port -J username@jumphost:port username@destination_host
This works on Debian Buster. Previously updated
firmware-realtek to the
backports version. I don’t think it maters, as the symptoms were as below before and after.
If you are on Ubuntu 17.04 or Debian 9 and possibly other distributions and you see a list of access points, but can’t connect try this (it works around a bug that prevents users from connecting to a network with a USB wifi adapter):
Add to the bottom of the file:
Save and run:
systemctl restart NetworkManager