I'm trying to turn my Windows 10 desktop into a secure ssh server. sshd is running but I can't get any of my other computers to connect to it. I'm using passkey authentication with ed25519. I'm using the same keypair as my arch Linux server.
I started by updating
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install openssh-server
then adding the following to nano /etc/ssh/sshd_config
PermitRootLogin no PubkeyAuthentication yes AllowUsers user21303 PasswordAuthentication no ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes PrintMotd no AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server
Copy id_ed25519.pub to ~/.ssh
chaged the permissions
sudo chmod 700 .ssh sudo chmod 644 .ssh/id_ed25519.pub
verified the permissions have been set with ls -la
Restart the service
sudo service ssh --full-restart
Verify the service is running
service ssh status
When I try to connect to my host's IP address nothing happens. I used tripple verbosity and I get the same error I would if I were connecting to an invalid IP:
OpenSSH_7.8p1 Debian-1, OpenSSL 1.0.2o 27 Mar 2018 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolve_canonicalize: hostname 192.168.1.180 is address debug2: ssh_connect_direct debug1: Connecting to 192.168.1.180 [192.168.1.180] port 22
I get the same error message as if I were to connect to a non existing IP address.
I do have internet. I can ping 188.8.131.52, etc.
How can I further diagnose this problem. I would like to know how to search for the cause rather than just brute force Google. Thank you for your time.