在我的Linux服务器(Ubuntu18.04.6LTS)上,我设置了
PermitRootLogin no
在/etc/ssh/sshd_config中重新加载配置
sudo service sshd reload
但我还是看到
Mar 14 06:18:02 myhost sshd[30049]: error: maximum authentication attempts exceeded for root from 11.222.111.22 port 16138 ssh2 [preauth]
Mar 14 06:18:02 myhost sshd[30049]: Disconnect
假设是这种情况。
正在运行的主机- ssh服务器(端口22)
(allows "developer" user (having r/w at /temp/ directory), does not allow "root")
如果有人以"developer“的身份通过ssh:22连接到主机。他将sshd类似openssh复制到/temp/目录中,并运行sshd:3322,配置允许根用户不使用密码。
是否可以通过ssh:3322将主机作为根连接?
在Kali linux上安装了GVM之后,按照说明运行gvm-setup命令来设置OpenVAS:https://linuxhint.com/install-openvas-kali-linux/ 但是,出现了以下错误: ERROR: The default postgresql version is not 13 required by libgvmd
Error: Use pg_upgradecluster to update your postgres cluster 因此,我通过以下命令检查了安装的PostgreSQL版本: $ su postgres
$ psql --versio
如果我尝试nmap到我的服务器(CentOS 7),我会得到如下内容:
$ nmap myserver.com
Nmap scan report for myserver.com (1.2.3.4)
Host is up (0.93s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE
22/tcp open ssh
5432/tcp open postgresql
我不喜欢显示服务的名称。我可以在服务器myserver.com上设置服务的名称吗?
例如,
:
我要输出这一行:
5432/tcp open
让我们假设以下主机:
localhost : my laptop
remoteserver : a server with a public IP which runs a SSH server on port 22. (remoteserver ip for example 194.152.16.111)
private.remoteserver ssh on port 2255: a server with a private IP which is only accessible from remoteserver. (private.remoteserver ip for exam