Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reach my desktop via ssh (DynDNS)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 919

PostPosted: Tue May 02, 2023 3:55 pm    Post subject: reach my desktop via ssh (DynDNS) Reply with quote

Hi hall !

I have created an host dynamic DNS (dynDns.it) and set it up on router ... I would like to know what I need to do in order to be able to connect from my parent's home with my desktop (I have just activate the hostname in the router) but I don't be sure if I need to do other things ...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Tue May 02, 2023 5:20 pm    Post subject: Reply with quote

drudox,

On your own PC, can you
Code:
ssh localhost

This tests that your PC is set up correctly.

In your router forward port 22 from the outside world to your PCs IP address.
Now the world will beat a path to your door.
The IPv4 address space is full and its being constantly scanned. You need a good password because within a few minutes you will start seeing dictionary attacks in your logs.

You can change the port that ssh listens on, that's security by obscurity. It will save your logs but you will still be found.
Key based login only is good. sshd will go through the login dance when a password is offered but it will fail every time.

Once the port is forwarded, can you connect from the outside world?

Install a ssh client on your phone and try.

Do you have a public IP on your router or are you behind CGNAT (Carrier Grade Network Address Translation)
The world is so short of IPv4 addresses that some ISPs give customers an IP address in the private range and use NAT themselves.
If you are behind CGNAT, you cannot connect from outside.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 919

PostPosted: Tue May 02, 2023 5:26 pm    Post subject: Reply with quote

tnx Neddy I have solved was just a stupid thing :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Tue May 02, 2023 5:28 pm    Post subject: Reply with quote

drudox,

:)

Fix your security. if you haven't already.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum