Answer the question
In order to leave comments, you need to log in
How to connect to home PC via ssh from outside?
Hello everyone, the essence of the task is as follows:
You need to establish an ssh connection to your home PC, respectively, the connection will be from the workplace.
In /etc/ssh/sshd_config, in the ListenAddres lines, I added a local ip (through which the connection passes with a bang through wifi) and an external one (dedicated, through which it is actually impossible to establish a connection).
The service ssh status command swears at the allocated ip, here is the error (error: bind to port 2220 on some.ip.adress failed : Caanot assign requested adress.)
Based on the error text, I realized that the service cannot seem to assign this address.
How to deal with it?
Answer the question
In order to leave comments, you need to log in
Your computer does not have any external address, you are behind a router, so you do not need to specify it in the settings.
You need to forward the port on the router from the white IP to the IP of your computer on the local network.
There is such a thing as DDNS, and there are, for example , such resources.
Then you don't need a white IP. Most modern routers work fine with this.
error: bind to port 2220 on some.ip.adress failed : Caanot assign requested adress
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question