How to SSH into a server using IPv6

Secure Shell also known as SSH allows you to log into a remote machine. For example, to log in to a remote machine with a domain name called (, you can use the command given below


What SSH does internally is to translate the domain supplied to its IP address, this means that if you know the IP Address of the machine, you can ssh directly into the ip address (e.g. 192.1681.1.10) instead of the domain. Consider the command below


Using IP Version 6

With the ever increasing popularity of IPv6, from time to time, you would be supplied with ipv6  instead of the common ipv4. So, to login into a machine with a IPV6 address (e.g. 21DA:D3:0:2F3B:2AA:FF:FE28:9C5A), use the command below

ssh -6 21DA:D3:0:2F3B:2AA:FF:FE28:9C5A

or, if you have a username (e.g. user1) with which you intend to login to the remote machine with, you can use the command below

ssh -6 user1@21DA:D3:0:2F3B:2AA:FF:FE28:9C5A