Troubleshooting Windows 11 (23H2): Accessing the Internet via SSH using IPv6
This article aims to help users who are trying to make their Windows 11 (23H2) computer accessible via SSH using IPv6. Unfortunately, nothing tried so far has worked. In this guide, we will cover the key concepts, provide detailed context on the topic, and offer solutions to common issues.
Prerequisites
- A computer running Windows 11 (23H2)
- An IPv6 address
- SSH client and server software (e.g., OpenSSH)
Step 1: Check IPv6 Configuration
First, ensure that your Windows 11 (23H2) computer has a valid IPv6 address. To do this, open the Command Prompt and run the following command:
ipconfigLook for the IPv6 address assigned to your network interface. If you don't have an IPv6 address, you may need to enable IPv6 on your network connection or contact your network administrator.
Step 2: Install OpenSSH Server
To enable SSH access on your Windows 11 (23H2) computer, you need to install the OpenSSH server. You can do this using the following PowerShell command:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0Once installed, start the OpenSSH server using the following command:
Start-Service sshdStep 3: Configure OpenSSH Server
After installing and starting the OpenSSH server, you need to configure it to listen on your IPv6 address. Open the configuration file with the following command:
notepad.exe C:\ProgramData\ssh\sshd_configAdd or modify the following line to include your IPv6 address:
ListenAddress [your_ipv6_address]:22Save and close the configuration file, then restart the OpenSSH server using the following command:
Restart-Service sshdStep 4: Test SSH Access
Now, try to connect to your Windows 11 (23H2) computer using an SSH client. Use your IPv6 address and the default SSH port (22). If you can't connect, check the SSH server logs for error messages.
Common Issues
- Firewall blocking SSH connections: Ensure that your firewall allows incoming SSH connections on your IPv6 address.
- Incorrect IPv6 address: Double-check your IPv6 address to ensure it's correct.
- SSH server not running: Make sure the OpenSSH server is running and configured to listen on your IPv6 address.
References
-
Installing the OpenSSH Server on Windows 10
Microsoft Docs: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse -
Configuring the OpenSSH Server on Windows 10
Microsoft Docs: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration
If you still can't access the internet via SSH using IPv6 on your Windows 11 (23H2) computer, consider reaching out to a network administrator or seeking help from a Windows support forum.