How to ssh - ipv6 (ubuntu)

This may be a stupid question, but I can't for the life of me figure out how to ssh into a new instance. (I can access my vps from the integrated vultr terminal, but not via ssh)

I'm trying to ssh into an ubuntu vps, through my ubuntu desktop.

I'm trying

ssh -6 root@2001:19f0:5401:29d7:5400:xyz:abc

with everything after the "@" being my ip string, but i get the error:

"port 22: Network is unreachable"

Should I be using the network string or netmask somehow?




  • Hello Joe,

    Your syntax is correct and should work. You can verify sshd is listening with netstat. This example shows sshd listening on any IPv6 address.

    # netstat -plant
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp6       0      0 :::22                   :::*                    LISTEN      589/sshd: /usr/sbin

    Next, verify the server firewall isn't blocking your connection with ufw status.

    # ufw status
    Status: inactive

    There are more debugging steps in the Vultr Docs article

    The examples in the article have IPv4 addresses. The debugging steps are the same for IPv6.

This discussion has been closed.