· 5 years ago · Feb 01, 2020, 02:48 AM
1On the remote:
2[root@test log]# netstat -nap | grep 80 | grep LISTEN
3tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17495/nginx: master
4tcp6 0 0 :::80 :::* LISTEN 17495/nginx: master
5[root@test log]# iptables -nL
6Chain INPUT (policy ACCEPT)
7target prot opt source destination
8
9Chain FORWARD (policy ACCEPT)
10target prot opt source destination
11
12Chain OUTPUT (policy ACCEPT)
13target prot opt source destination
14[root@test log]# nc 192.168.1.12 80
15ehlo
16HTTP/1.1 400 Bad Request
17Server: nginx/1.14.1
18Date: Sat, 01 Feb 2020 02:40:22 GMT
19Content-Type: text/html
20Content-Length: 173
21Connection: close
22
23<html>
24<head><title>400 Bad Request</title></head>
25<body bgcolor="white">
26<center><h1>400 Bad Request</h1></center>
27<hr><center>nginx/1.14.1</center>
28</body>
29</html>
30^C
31
32On Local
33root@home:~# ssh 192.168.1.12
34root@192.168.100.12: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
35root@home:~# nc 192.168.1.12 80
36Login works with key