X
X
xozo2020-01-23 19:25:49
VPN
xozo, 2020-01-23 19:25:49

How to change the ssh port "22" to another one on my own vpn (I raised it myself)?

how to change the ssh port "22" to another one on my own vpn (I raised it myself) I change
port 22 in the ssh etc/ssh/sshd_config config to another one, I overload ssh, I overload vps and everything goes smoothly on port 22 (although my port is in the config. ubuntu 19.10 and wattlix port is scorched...5e29c8e3d637c630947257.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Karpion, 2020-01-24
@Karpion

You don't seem to understand the difference between ssh (client) and sshd (daemon).
sshd_config - refers to a daemon. And for the client - you need to specify it on the command line, read the manual for it.

D
Dark Znec, 2020-01-24
@DarkZnec

sudo systemctl enable sshd execute after editing the config.

A
Andrey Barbolin, 2020-01-29
@dronmaxman

You can also play with iptables)
https://habr.com/ru/post/324276/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question