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 (sample-domain.com), you can use the command given below

ssh sample-domain.com

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

ssh 192.168.1.10

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

 

Advertisements