Q
Q
Quad_Tree2018-02-02 09:36:40
linux
Quad_Tree, 2018-02-02 09:36:40

How to open access to ssh from any IP?

How to configure ssh on Debian so that anyone can connect to the server from any ip (not just local)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grishin, 2018-02-02
@Quad_Tree

Without NAT, the entire Internet is local, that is, you don’t need to do anything else, except to open a port for everyone through iptables or whatever your firewall is. With NAT - you need to do port forwarding on the router (any tcp) to the local address port 22 (or where you have ssh), otherwise you won't open it.

P
pfg21, 2018-02-02
@pfg21

edit /etc/ssh/sshd_config
although, as far as I remember, sshd does not distinguish the user by ip.
can put ListenAddress 0.0.0.0
to see firewall rules??

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question