OpenSSH Server – problems trying to connect two laptops on home network












0















This question is relating to OpenSSH client and server (which became bundled with the Windows OS rather recently).



I am hoping to get some help from someone who is more knowledgeable about SSH.



I have two laptops which both have the client OpenSSH (which now comes default with Windows 10).



One also has the Windows 10 default OpenSSH Server installed.



However, I'm having trouble ssh'ing from the one with just the client into the one with the server.



While I can ping my "server" laptop from my "client" laptop", as both devices are at home using my home network, when I try to ssh to my "server" laptop IP, I get an error:



connect to host xxxxx port 22: Connection timed out.


Since I'm just starting to use these features on these machines (and haven't made successful ssh connections with either of them before), I'm not sure whether the client or the server is having a problem. But I'm looking at the "server" laptop first.



One thing I'd like to know is how to find out what port my OpenSSH Server service is listening on... just in case it's not listening on port 22 for some reason. There is a firewall rule listed for OpenSSH Server in "Control Panel" → "System and Security" → "Windows Defender Firewall" → "Allowed Apps", but it doesn't mention the port. Also, my OpenSSH service IS running in services.msc.



I've also noted that I have a sshd_config_default file, but there was no actual sshd_config file created. The default file was all commented out.



So I wanted to ask




  1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



  2. If anyone has a recommendation for what setting commands to use in a sshd_config file on the server laptop, which should just be connected to by another laptop in the same network. I assume one of the settings should specify port 2, but I'm not sure whether using these commented-out commands in the default file are the best ones to use for my setup:



    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::


  3. Any other suggestions anyone has for why the connection times out.











share|improve this question




















  • 1





    Good question. What I would do is to use nmap scanner to verify that server indeed is listening on port 22. From the client I would connect to a known good SSH server to see if that works. On server I also would connect from server to iteslf (by localhost) to see if it is working.

    – r0berts
    Jan 21 at 17:05











  • Can you ssh to localhost:22 on each machine?

    – mt025
    Jan 21 at 19:43













  • Also resmon in run, network tab, listening ports - This will show you all the ports that the machine is listening on, along with the executable that is listening.

    – mt025
    Jan 21 at 19:46













  • ETA: Thanks for your assistance. Resmon told me my server ssh was listening on port 22. I can also login to the localhost on the server laptop. Just wanted to ask another question, in case it is related. Is it at all relevant to this connection timeout issue, that I can ping my server laptop's public IPv4, but not its local IP, from the client laptop?

    – YvetteS
    Jan 21 at 22:02













  • Welcome to Super User! You can freely edit your own posts but for your protection, this must be done under the original user account. It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See Merge my accounts to get your accounts merged, which will solve the problem.

    – fixer1234
    Jan 22 at 0:13
















0















This question is relating to OpenSSH client and server (which became bundled with the Windows OS rather recently).



I am hoping to get some help from someone who is more knowledgeable about SSH.



I have two laptops which both have the client OpenSSH (which now comes default with Windows 10).



One also has the Windows 10 default OpenSSH Server installed.



However, I'm having trouble ssh'ing from the one with just the client into the one with the server.



While I can ping my "server" laptop from my "client" laptop", as both devices are at home using my home network, when I try to ssh to my "server" laptop IP, I get an error:



connect to host xxxxx port 22: Connection timed out.


Since I'm just starting to use these features on these machines (and haven't made successful ssh connections with either of them before), I'm not sure whether the client or the server is having a problem. But I'm looking at the "server" laptop first.



One thing I'd like to know is how to find out what port my OpenSSH Server service is listening on... just in case it's not listening on port 22 for some reason. There is a firewall rule listed for OpenSSH Server in "Control Panel" → "System and Security" → "Windows Defender Firewall" → "Allowed Apps", but it doesn't mention the port. Also, my OpenSSH service IS running in services.msc.



I've also noted that I have a sshd_config_default file, but there was no actual sshd_config file created. The default file was all commented out.



So I wanted to ask




  1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



  2. If anyone has a recommendation for what setting commands to use in a sshd_config file on the server laptop, which should just be connected to by another laptop in the same network. I assume one of the settings should specify port 2, but I'm not sure whether using these commented-out commands in the default file are the best ones to use for my setup:



    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::


  3. Any other suggestions anyone has for why the connection times out.











share|improve this question




















  • 1





    Good question. What I would do is to use nmap scanner to verify that server indeed is listening on port 22. From the client I would connect to a known good SSH server to see if that works. On server I also would connect from server to iteslf (by localhost) to see if it is working.

    – r0berts
    Jan 21 at 17:05











  • Can you ssh to localhost:22 on each machine?

    – mt025
    Jan 21 at 19:43













  • Also resmon in run, network tab, listening ports - This will show you all the ports that the machine is listening on, along with the executable that is listening.

    – mt025
    Jan 21 at 19:46













  • ETA: Thanks for your assistance. Resmon told me my server ssh was listening on port 22. I can also login to the localhost on the server laptop. Just wanted to ask another question, in case it is related. Is it at all relevant to this connection timeout issue, that I can ping my server laptop's public IPv4, but not its local IP, from the client laptop?

    – YvetteS
    Jan 21 at 22:02













  • Welcome to Super User! You can freely edit your own posts but for your protection, this must be done under the original user account. It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See Merge my accounts to get your accounts merged, which will solve the problem.

    – fixer1234
    Jan 22 at 0:13














0












0








0








This question is relating to OpenSSH client and server (which became bundled with the Windows OS rather recently).



I am hoping to get some help from someone who is more knowledgeable about SSH.



I have two laptops which both have the client OpenSSH (which now comes default with Windows 10).



One also has the Windows 10 default OpenSSH Server installed.



However, I'm having trouble ssh'ing from the one with just the client into the one with the server.



While I can ping my "server" laptop from my "client" laptop", as both devices are at home using my home network, when I try to ssh to my "server" laptop IP, I get an error:



connect to host xxxxx port 22: Connection timed out.


Since I'm just starting to use these features on these machines (and haven't made successful ssh connections with either of them before), I'm not sure whether the client or the server is having a problem. But I'm looking at the "server" laptop first.



One thing I'd like to know is how to find out what port my OpenSSH Server service is listening on... just in case it's not listening on port 22 for some reason. There is a firewall rule listed for OpenSSH Server in "Control Panel" → "System and Security" → "Windows Defender Firewall" → "Allowed Apps", but it doesn't mention the port. Also, my OpenSSH service IS running in services.msc.



I've also noted that I have a sshd_config_default file, but there was no actual sshd_config file created. The default file was all commented out.



So I wanted to ask




  1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



  2. If anyone has a recommendation for what setting commands to use in a sshd_config file on the server laptop, which should just be connected to by another laptop in the same network. I assume one of the settings should specify port 2, but I'm not sure whether using these commented-out commands in the default file are the best ones to use for my setup:



    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::


  3. Any other suggestions anyone has for why the connection times out.











share|improve this question
















This question is relating to OpenSSH client and server (which became bundled with the Windows OS rather recently).



I am hoping to get some help from someone who is more knowledgeable about SSH.



I have two laptops which both have the client OpenSSH (which now comes default with Windows 10).



One also has the Windows 10 default OpenSSH Server installed.



However, I'm having trouble ssh'ing from the one with just the client into the one with the server.



While I can ping my "server" laptop from my "client" laptop", as both devices are at home using my home network, when I try to ssh to my "server" laptop IP, I get an error:



connect to host xxxxx port 22: Connection timed out.


Since I'm just starting to use these features on these machines (and haven't made successful ssh connections with either of them before), I'm not sure whether the client or the server is having a problem. But I'm looking at the "server" laptop first.



One thing I'd like to know is how to find out what port my OpenSSH Server service is listening on... just in case it's not listening on port 22 for some reason. There is a firewall rule listed for OpenSSH Server in "Control Panel" → "System and Security" → "Windows Defender Firewall" → "Allowed Apps", but it doesn't mention the port. Also, my OpenSSH service IS running in services.msc.



I've also noted that I have a sshd_config_default file, but there was no actual sshd_config file created. The default file was all commented out.



So I wanted to ask




  1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



  2. If anyone has a recommendation for what setting commands to use in a sshd_config file on the server laptop, which should just be connected to by another laptop in the same network. I assume one of the settings should specify port 2, but I'm not sure whether using these commented-out commands in the default file are the best ones to use for my setup:



    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::


  3. Any other suggestions anyone has for why the connection times out.








windows windows-10 ssh timeout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 21 at 18:20









Scott

15.9k113990




15.9k113990










asked Jan 21 at 15:16









YvetteSYvetteS

1




1








  • 1





    Good question. What I would do is to use nmap scanner to verify that server indeed is listening on port 22. From the client I would connect to a known good SSH server to see if that works. On server I also would connect from server to iteslf (by localhost) to see if it is working.

    – r0berts
    Jan 21 at 17:05











  • Can you ssh to localhost:22 on each machine?

    – mt025
    Jan 21 at 19:43













  • Also resmon in run, network tab, listening ports - This will show you all the ports that the machine is listening on, along with the executable that is listening.

    – mt025
    Jan 21 at 19:46













  • ETA: Thanks for your assistance. Resmon told me my server ssh was listening on port 22. I can also login to the localhost on the server laptop. Just wanted to ask another question, in case it is related. Is it at all relevant to this connection timeout issue, that I can ping my server laptop's public IPv4, but not its local IP, from the client laptop?

    – YvetteS
    Jan 21 at 22:02













  • Welcome to Super User! You can freely edit your own posts but for your protection, this must be done under the original user account. It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See Merge my accounts to get your accounts merged, which will solve the problem.

    – fixer1234
    Jan 22 at 0:13














  • 1





    Good question. What I would do is to use nmap scanner to verify that server indeed is listening on port 22. From the client I would connect to a known good SSH server to see if that works. On server I also would connect from server to iteslf (by localhost) to see if it is working.

    – r0berts
    Jan 21 at 17:05











  • Can you ssh to localhost:22 on each machine?

    – mt025
    Jan 21 at 19:43













  • Also resmon in run, network tab, listening ports - This will show you all the ports that the machine is listening on, along with the executable that is listening.

    – mt025
    Jan 21 at 19:46













  • ETA: Thanks for your assistance. Resmon told me my server ssh was listening on port 22. I can also login to the localhost on the server laptop. Just wanted to ask another question, in case it is related. Is it at all relevant to this connection timeout issue, that I can ping my server laptop's public IPv4, but not its local IP, from the client laptop?

    – YvetteS
    Jan 21 at 22:02













  • Welcome to Super User! You can freely edit your own posts but for your protection, this must be done under the original user account. It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See Merge my accounts to get your accounts merged, which will solve the problem.

    – fixer1234
    Jan 22 at 0:13








1




1





Good question. What I would do is to use nmap scanner to verify that server indeed is listening on port 22. From the client I would connect to a known good SSH server to see if that works. On server I also would connect from server to iteslf (by localhost) to see if it is working.

– r0berts
Jan 21 at 17:05





Good question. What I would do is to use nmap scanner to verify that server indeed is listening on port 22. From the client I would connect to a known good SSH server to see if that works. On server I also would connect from server to iteslf (by localhost) to see if it is working.

– r0berts
Jan 21 at 17:05













Can you ssh to localhost:22 on each machine?

– mt025
Jan 21 at 19:43







Can you ssh to localhost:22 on each machine?

– mt025
Jan 21 at 19:43















Also resmon in run, network tab, listening ports - This will show you all the ports that the machine is listening on, along with the executable that is listening.

– mt025
Jan 21 at 19:46







Also resmon in run, network tab, listening ports - This will show you all the ports that the machine is listening on, along with the executable that is listening.

– mt025
Jan 21 at 19:46















ETA: Thanks for your assistance. Resmon told me my server ssh was listening on port 22. I can also login to the localhost on the server laptop. Just wanted to ask another question, in case it is related. Is it at all relevant to this connection timeout issue, that I can ping my server laptop's public IPv4, but not its local IP, from the client laptop?

– YvetteS
Jan 21 at 22:02







ETA: Thanks for your assistance. Resmon told me my server ssh was listening on port 22. I can also login to the localhost on the server laptop. Just wanted to ask another question, in case it is related. Is it at all relevant to this connection timeout issue, that I can ping my server laptop's public IPv4, but not its local IP, from the client laptop?

– YvetteS
Jan 21 at 22:02















Welcome to Super User! You can freely edit your own posts but for your protection, this must be done under the original user account. It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See Merge my accounts to get your accounts merged, which will solve the problem.

– fixer1234
Jan 22 at 0:13





Welcome to Super User! You can freely edit your own posts but for your protection, this must be done under the original user account. It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See Merge my accounts to get your accounts merged, which will solve the problem.

– fixer1234
Jan 22 at 0:13










2 Answers
2






active

oldest

votes


















0














Here are my answers:





  1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



    Run this command in your windows assuming your ssh is running on port 22 (default).



    netstat -an|find "LISTEN"|find ":22"




  2. Any suggestion how to configure.



    As you said parameter Port 22 in sshd_config file indicates the port SSH daemon should open when is started. I guess is the default if you specify none. Since this is openSSH verify this site for more info about the parameters you can use.




  3. Any other suggestions anyone has for why the connection times out.



    If you can ping the nodes from each other the most common reason for the timeout is a firewall in between.








share|improve this answer































    0














    Okay, this time this IS a real answer. (And it is going to be a long form of Manuel Florian's answer Part III, since it WAS a firewall issue. - thanks Manuel!)



    As I mentioned before, boxes couldn't ping each other's private IPs, and then I found out both machines had the same PUBLIC IP.



    Two things I did to help with this which I performed both tasks on both machines):



    Step 1) I changed my machines to treat my home network as private.



    These PowerShell instructions from NiklasE rtlhm at



    https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/change-my-network-to-private-in-windows-10/45659a7b-89ee-42c4-910f-6ffbdd31ee0a?page=2



    were quick and easy to follow:




    • Open Windows PowerShell in admin mode. Start -> PowerShell -> Right-click -> open as administrator


    • Get current profiles. Make sure you are logged on to the network you want to change.
      Get-NetConnectionProfile


    • Change the network in your list to be private
      Set-NetConnectionProfile -Name "MYWIFINETWORK" -NetworkCategory Private


    • Check that everything went fine
      Get-NetConnectionProfile


    I also changed the Firewall settings using these steps from https://kb.iu.edu/d/aopy:




    1. Search for Windows Firewall, and click to open it.

    2. Click Advanced Settings on the left.

    3. From the left pane of the resulting window, click Inbound Rules.

    4. In the right pane, find the rules titled File and Printer Sharing (Echo Request -
      ICMPv4-In).

    5. Right-click each rule and choose Enable Rule.


    .... with the added step of changing one of the rules, which had a Profile of both Public and Private, to apply only to Private Profiles, since I don't want anyone on an actual public network to ssh to me.



    Right click on the rule, select Properties, Advanced Tab, under Profiles section, uncheck Public.



    After making these changes, I verified that I could ping the server from the client, I am able to ssh from my "client" to my "server" ssh device.



    [SIDE NOTE on security: Of course, if anyone is reading this and wants to try it, do so at your own risk, since calling a network "Private" means "I trust the other devices on this network - and that no one has hacked into my network". But if you only do step 2 (without limiting the rule to private networks), that means when you're on a public network, other devices can ping you. I'm thinking of undoing these changes when I don't need them, may also disable SSH on both machines while not needed.]



    I'll have to wait until my profile is able to be merged with user987957 to mark anything down as an answer. However, thanks you all for your clues to help me research this problem!






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396658%2fopenssh-server-problems-trying-to-connect-two-laptops-on-home-network%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Here are my answers:





      1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



        Run this command in your windows assuming your ssh is running on port 22 (default).



        netstat -an|find "LISTEN"|find ":22"




      2. Any suggestion how to configure.



        As you said parameter Port 22 in sshd_config file indicates the port SSH daemon should open when is started. I guess is the default if you specify none. Since this is openSSH verify this site for more info about the parameters you can use.




      3. Any other suggestions anyone has for why the connection times out.



        If you can ping the nodes from each other the most common reason for the timeout is a firewall in between.








      share|improve this answer




























        0














        Here are my answers:





        1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



          Run this command in your windows assuming your ssh is running on port 22 (default).



          netstat -an|find "LISTEN"|find ":22"




        2. Any suggestion how to configure.



          As you said parameter Port 22 in sshd_config file indicates the port SSH daemon should open when is started. I guess is the default if you specify none. Since this is openSSH verify this site for more info about the parameters you can use.




        3. Any other suggestions anyone has for why the connection times out.



          If you can ping the nodes from each other the most common reason for the timeout is a firewall in between.








        share|improve this answer


























          0












          0








          0







          Here are my answers:





          1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



            Run this command in your windows assuming your ssh is running on port 22 (default).



            netstat -an|find "LISTEN"|find ":22"




          2. Any suggestion how to configure.



            As you said parameter Port 22 in sshd_config file indicates the port SSH daemon should open when is started. I guess is the default if you specify none. Since this is openSSH verify this site for more info about the parameters you can use.




          3. Any other suggestions anyone has for why the connection times out.



            If you can ping the nodes from each other the most common reason for the timeout is a firewall in between.








          share|improve this answer













          Here are my answers:





          1. Where to verify if my OpenSSH Server service is listening for connections on port 22.



            Run this command in your windows assuming your ssh is running on port 22 (default).



            netstat -an|find "LISTEN"|find ":22"




          2. Any suggestion how to configure.



            As you said parameter Port 22 in sshd_config file indicates the port SSH daemon should open when is started. I guess is the default if you specify none. Since this is openSSH verify this site for more info about the parameters you can use.




          3. Any other suggestions anyone has for why the connection times out.



            If you can ping the nodes from each other the most common reason for the timeout is a firewall in between.









          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 21 at 22:38









          Manuel FlorianManuel Florian

          1595




          1595

























              0














              Okay, this time this IS a real answer. (And it is going to be a long form of Manuel Florian's answer Part III, since it WAS a firewall issue. - thanks Manuel!)



              As I mentioned before, boxes couldn't ping each other's private IPs, and then I found out both machines had the same PUBLIC IP.



              Two things I did to help with this which I performed both tasks on both machines):



              Step 1) I changed my machines to treat my home network as private.



              These PowerShell instructions from NiklasE rtlhm at



              https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/change-my-network-to-private-in-windows-10/45659a7b-89ee-42c4-910f-6ffbdd31ee0a?page=2



              were quick and easy to follow:




              • Open Windows PowerShell in admin mode. Start -> PowerShell -> Right-click -> open as administrator


              • Get current profiles. Make sure you are logged on to the network you want to change.
                Get-NetConnectionProfile


              • Change the network in your list to be private
                Set-NetConnectionProfile -Name "MYWIFINETWORK" -NetworkCategory Private


              • Check that everything went fine
                Get-NetConnectionProfile


              I also changed the Firewall settings using these steps from https://kb.iu.edu/d/aopy:




              1. Search for Windows Firewall, and click to open it.

              2. Click Advanced Settings on the left.

              3. From the left pane of the resulting window, click Inbound Rules.

              4. In the right pane, find the rules titled File and Printer Sharing (Echo Request -
                ICMPv4-In).

              5. Right-click each rule and choose Enable Rule.


              .... with the added step of changing one of the rules, which had a Profile of both Public and Private, to apply only to Private Profiles, since I don't want anyone on an actual public network to ssh to me.



              Right click on the rule, select Properties, Advanced Tab, under Profiles section, uncheck Public.



              After making these changes, I verified that I could ping the server from the client, I am able to ssh from my "client" to my "server" ssh device.



              [SIDE NOTE on security: Of course, if anyone is reading this and wants to try it, do so at your own risk, since calling a network "Private" means "I trust the other devices on this network - and that no one has hacked into my network". But if you only do step 2 (without limiting the rule to private networks), that means when you're on a public network, other devices can ping you. I'm thinking of undoing these changes when I don't need them, may also disable SSH on both machines while not needed.]



              I'll have to wait until my profile is able to be merged with user987957 to mark anything down as an answer. However, thanks you all for your clues to help me research this problem!






              share|improve this answer




























                0














                Okay, this time this IS a real answer. (And it is going to be a long form of Manuel Florian's answer Part III, since it WAS a firewall issue. - thanks Manuel!)



                As I mentioned before, boxes couldn't ping each other's private IPs, and then I found out both machines had the same PUBLIC IP.



                Two things I did to help with this which I performed both tasks on both machines):



                Step 1) I changed my machines to treat my home network as private.



                These PowerShell instructions from NiklasE rtlhm at



                https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/change-my-network-to-private-in-windows-10/45659a7b-89ee-42c4-910f-6ffbdd31ee0a?page=2



                were quick and easy to follow:




                • Open Windows PowerShell in admin mode. Start -> PowerShell -> Right-click -> open as administrator


                • Get current profiles. Make sure you are logged on to the network you want to change.
                  Get-NetConnectionProfile


                • Change the network in your list to be private
                  Set-NetConnectionProfile -Name "MYWIFINETWORK" -NetworkCategory Private


                • Check that everything went fine
                  Get-NetConnectionProfile


                I also changed the Firewall settings using these steps from https://kb.iu.edu/d/aopy:




                1. Search for Windows Firewall, and click to open it.

                2. Click Advanced Settings on the left.

                3. From the left pane of the resulting window, click Inbound Rules.

                4. In the right pane, find the rules titled File and Printer Sharing (Echo Request -
                  ICMPv4-In).

                5. Right-click each rule and choose Enable Rule.


                .... with the added step of changing one of the rules, which had a Profile of both Public and Private, to apply only to Private Profiles, since I don't want anyone on an actual public network to ssh to me.



                Right click on the rule, select Properties, Advanced Tab, under Profiles section, uncheck Public.



                After making these changes, I verified that I could ping the server from the client, I am able to ssh from my "client" to my "server" ssh device.



                [SIDE NOTE on security: Of course, if anyone is reading this and wants to try it, do so at your own risk, since calling a network "Private" means "I trust the other devices on this network - and that no one has hacked into my network". But if you only do step 2 (without limiting the rule to private networks), that means when you're on a public network, other devices can ping you. I'm thinking of undoing these changes when I don't need them, may also disable SSH on both machines while not needed.]



                I'll have to wait until my profile is able to be merged with user987957 to mark anything down as an answer. However, thanks you all for your clues to help me research this problem!






                share|improve this answer


























                  0












                  0








                  0







                  Okay, this time this IS a real answer. (And it is going to be a long form of Manuel Florian's answer Part III, since it WAS a firewall issue. - thanks Manuel!)



                  As I mentioned before, boxes couldn't ping each other's private IPs, and then I found out both machines had the same PUBLIC IP.



                  Two things I did to help with this which I performed both tasks on both machines):



                  Step 1) I changed my machines to treat my home network as private.



                  These PowerShell instructions from NiklasE rtlhm at



                  https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/change-my-network-to-private-in-windows-10/45659a7b-89ee-42c4-910f-6ffbdd31ee0a?page=2



                  were quick and easy to follow:




                  • Open Windows PowerShell in admin mode. Start -> PowerShell -> Right-click -> open as administrator


                  • Get current profiles. Make sure you are logged on to the network you want to change.
                    Get-NetConnectionProfile


                  • Change the network in your list to be private
                    Set-NetConnectionProfile -Name "MYWIFINETWORK" -NetworkCategory Private


                  • Check that everything went fine
                    Get-NetConnectionProfile


                  I also changed the Firewall settings using these steps from https://kb.iu.edu/d/aopy:




                  1. Search for Windows Firewall, and click to open it.

                  2. Click Advanced Settings on the left.

                  3. From the left pane of the resulting window, click Inbound Rules.

                  4. In the right pane, find the rules titled File and Printer Sharing (Echo Request -
                    ICMPv4-In).

                  5. Right-click each rule and choose Enable Rule.


                  .... with the added step of changing one of the rules, which had a Profile of both Public and Private, to apply only to Private Profiles, since I don't want anyone on an actual public network to ssh to me.



                  Right click on the rule, select Properties, Advanced Tab, under Profiles section, uncheck Public.



                  After making these changes, I verified that I could ping the server from the client, I am able to ssh from my "client" to my "server" ssh device.



                  [SIDE NOTE on security: Of course, if anyone is reading this and wants to try it, do so at your own risk, since calling a network "Private" means "I trust the other devices on this network - and that no one has hacked into my network". But if you only do step 2 (without limiting the rule to private networks), that means when you're on a public network, other devices can ping you. I'm thinking of undoing these changes when I don't need them, may also disable SSH on both machines while not needed.]



                  I'll have to wait until my profile is able to be merged with user987957 to mark anything down as an answer. However, thanks you all for your clues to help me research this problem!






                  share|improve this answer













                  Okay, this time this IS a real answer. (And it is going to be a long form of Manuel Florian's answer Part III, since it WAS a firewall issue. - thanks Manuel!)



                  As I mentioned before, boxes couldn't ping each other's private IPs, and then I found out both machines had the same PUBLIC IP.



                  Two things I did to help with this which I performed both tasks on both machines):



                  Step 1) I changed my machines to treat my home network as private.



                  These PowerShell instructions from NiklasE rtlhm at



                  https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/change-my-network-to-private-in-windows-10/45659a7b-89ee-42c4-910f-6ffbdd31ee0a?page=2



                  were quick and easy to follow:




                  • Open Windows PowerShell in admin mode. Start -> PowerShell -> Right-click -> open as administrator


                  • Get current profiles. Make sure you are logged on to the network you want to change.
                    Get-NetConnectionProfile


                  • Change the network in your list to be private
                    Set-NetConnectionProfile -Name "MYWIFINETWORK" -NetworkCategory Private


                  • Check that everything went fine
                    Get-NetConnectionProfile


                  I also changed the Firewall settings using these steps from https://kb.iu.edu/d/aopy:




                  1. Search for Windows Firewall, and click to open it.

                  2. Click Advanced Settings on the left.

                  3. From the left pane of the resulting window, click Inbound Rules.

                  4. In the right pane, find the rules titled File and Printer Sharing (Echo Request -
                    ICMPv4-In).

                  5. Right-click each rule and choose Enable Rule.


                  .... with the added step of changing one of the rules, which had a Profile of both Public and Private, to apply only to Private Profiles, since I don't want anyone on an actual public network to ssh to me.



                  Right click on the rule, select Properties, Advanced Tab, under Profiles section, uncheck Public.



                  After making these changes, I verified that I could ping the server from the client, I am able to ssh from my "client" to my "server" ssh device.



                  [SIDE NOTE on security: Of course, if anyone is reading this and wants to try it, do so at your own risk, since calling a network "Private" means "I trust the other devices on this network - and that no one has hacked into my network". But if you only do step 2 (without limiting the rule to private networks), that means when you're on a public network, other devices can ping you. I'm thinking of undoing these changes when I don't need them, may also disable SSH on both machines while not needed.]



                  I'll have to wait until my profile is able to be merged with user987957 to mark anything down as an answer. However, thanks you all for your clues to help me research this problem!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 22 at 20:07









                  YvetteSYvetteS

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396658%2fopenssh-server-problems-trying-to-connect-two-laptops-on-home-network%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                      Alcedinidae

                      Can an atomic nucleus contain both particles and antiparticles? [duplicate]