what exactly do I need to make my pc an ssh server and connect to it? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I tried to create ssh server on my pc. It connects well on LAN but over internet it does not. I have tried everything that I can. I can connect to azure server from pc though.



I am running arch linux.
sshd is running.



What are the things I need to make it work?










share|improve this question















closed as too broad by Rui F Ribeiro, Olorin, Sparhawk, roaima, Mr Shunz Feb 18 at 10:21


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Is your PC directly connected to the Internet with a public IP address? If not, you're going to need to arrange port forwarding - probably in your router. (But if you're on CG NAT you'll need to discuss options with your ISP.)

    – roaima
    Feb 18 at 9:11















0















I tried to create ssh server on my pc. It connects well on LAN but over internet it does not. I have tried everything that I can. I can connect to azure server from pc though.



I am running arch linux.
sshd is running.



What are the things I need to make it work?










share|improve this question















closed as too broad by Rui F Ribeiro, Olorin, Sparhawk, roaima, Mr Shunz Feb 18 at 10:21


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Is your PC directly connected to the Internet with a public IP address? If not, you're going to need to arrange port forwarding - probably in your router. (But if you're on CG NAT you'll need to discuss options with your ISP.)

    – roaima
    Feb 18 at 9:11













0












0








0








I tried to create ssh server on my pc. It connects well on LAN but over internet it does not. I have tried everything that I can. I can connect to azure server from pc though.



I am running arch linux.
sshd is running.



What are the things I need to make it work?










share|improve this question
















I tried to create ssh server on my pc. It connects well on LAN but over internet it does not. I have tried everything that I can. I can connect to azure server from pc though.



I am running arch linux.
sshd is running.



What are the things I need to make it work?







ssh openssh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 19:41









terdon

132k32261441




132k32261441










asked Feb 17 at 18:22









Nageen ChandNageen Chand

12




12




closed as too broad by Rui F Ribeiro, Olorin, Sparhawk, roaima, Mr Shunz Feb 18 at 10:21


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by Rui F Ribeiro, Olorin, Sparhawk, roaima, Mr Shunz Feb 18 at 10:21


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1





    Is your PC directly connected to the Internet with a public IP address? If not, you're going to need to arrange port forwarding - probably in your router. (But if you're on CG NAT you'll need to discuss options with your ISP.)

    – roaima
    Feb 18 at 9:11












  • 1





    Is your PC directly connected to the Internet with a public IP address? If not, you're going to need to arrange port forwarding - probably in your router. (But if you're on CG NAT you'll need to discuss options with your ISP.)

    – roaima
    Feb 18 at 9:11







1




1





Is your PC directly connected to the Internet with a public IP address? If not, you're going to need to arrange port forwarding - probably in your router. (But if you're on CG NAT you'll need to discuss options with your ISP.)

– roaima
Feb 18 at 9:11





Is your PC directly connected to the Internet with a public IP address? If not, you're going to need to arrange port forwarding - probably in your router. (But if you're on CG NAT you'll need to discuss options with your ISP.)

– roaima
Feb 18 at 9:11










1 Answer
1






active

oldest

votes


















2














Based on:




It connects well on LAN but over internet it does not.




And:




I can connect to azure server from pc though




...it sounds as though you have not configured your router to accept incoming connections to the port that runs ssh (standard is 22, but I use a different port for my server).



This of course is hard to describe, because there are tons of different router manufacturers out there.






share|improve this answer


















  • 1





    I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

    – Nephanth
    Feb 17 at 18:49











  • thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

    – Nageen Chand
    Feb 17 at 19:27






  • 2





    Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

    – Nephanth
    Feb 17 at 19:43

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Based on:




It connects well on LAN but over internet it does not.




And:




I can connect to azure server from pc though




...it sounds as though you have not configured your router to accept incoming connections to the port that runs ssh (standard is 22, but I use a different port for my server).



This of course is hard to describe, because there are tons of different router manufacturers out there.






share|improve this answer


















  • 1





    I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

    – Nephanth
    Feb 17 at 18:49











  • thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

    – Nageen Chand
    Feb 17 at 19:27






  • 2





    Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

    – Nephanth
    Feb 17 at 19:43















2














Based on:




It connects well on LAN but over internet it does not.




And:




I can connect to azure server from pc though




...it sounds as though you have not configured your router to accept incoming connections to the port that runs ssh (standard is 22, but I use a different port for my server).



This of course is hard to describe, because there are tons of different router manufacturers out there.






share|improve this answer


















  • 1





    I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

    – Nephanth
    Feb 17 at 18:49











  • thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

    – Nageen Chand
    Feb 17 at 19:27






  • 2





    Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

    – Nephanth
    Feb 17 at 19:43













2












2








2







Based on:




It connects well on LAN but over internet it does not.




And:




I can connect to azure server from pc though




...it sounds as though you have not configured your router to accept incoming connections to the port that runs ssh (standard is 22, but I use a different port for my server).



This of course is hard to describe, because there are tons of different router manufacturers out there.






share|improve this answer













Based on:




It connects well on LAN but over internet it does not.




And:




I can connect to azure server from pc though




...it sounds as though you have not configured your router to accept incoming connections to the port that runs ssh (standard is 22, but I use a different port for my server).



This of course is hard to describe, because there are tons of different router manufacturers out there.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 17 at 18:28









maulinglawnsmaulinglawns

6,32121226




6,32121226







  • 1





    I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

    – Nephanth
    Feb 17 at 18:49











  • thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

    – Nageen Chand
    Feb 17 at 19:27






  • 2





    Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

    – Nephanth
    Feb 17 at 19:43












  • 1





    I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

    – Nephanth
    Feb 17 at 18:49











  • thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

    – Nageen Chand
    Feb 17 at 19:27






  • 2





    Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

    – Nephanth
    Feb 17 at 19:43







1




1





I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

– Nephanth
Feb 17 at 18:49





I’d add that you can open a port either using your router’s interface, or using an upnp portmapper such as yaup

– Nephanth
Feb 17 at 18:49













thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

– Nageen Chand
Feb 17 at 19:27





thanks, yes the port forwarding seems the problem. But i use ISP internet(hotspot from mobile). So i need to open a port for isp. Is that right??

– Nageen Chand
Feb 17 at 19:27




2




2





Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

– Nephanth
Feb 17 at 19:43





Actually, it’s your mobile that needs to forward the port. maybe try this : stackoverflow.com/questions/11705448/…

– Nephanth
Feb 17 at 19:43


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay