I'm trying to SSH into a Debian Buster Virtualbox host on my macOS laptop (Mojave), but keep getting the error
Address family not supported by protocol family. Not sure how this could be an IPv6 issue since I've disabled IPv6 in the /etc/hosts of the vm and my laptop.
/etc/hosts of my laptop:
127.0.0.1 localhost 255.255.255.255 broadcasthost
/etc/hosts of the vm:
127.0.0.1 localhost 127.0.1.1 debian
/etc/ssh/sshd_config of the vm:
Port 22 AddressFamily any PasswordAuthentication yes PermitEmptyPasswords no ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes PrintMotd yes TCPKeepAlive yes UseDNS no AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server
Here's my local vm's iptables config:
-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT
My username is the same on my laptop as on the vm. I got the IP address based on
arp -a output. Here's the command I'm running and the output I get.
└─[$] <> ssh 184.108.40.206 ssh: connect to host 220.127.116.11 port 22: Address family not supported by protocol family