Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. I am connecting to sshd socket, listening on 22001. but in sshd config, theres no mention of that port. only 22
  2.  
  3. root@target-host:/etc/ssh# lsof -i :22001
  4. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
  5. sshd 1973 root 3u IPv4 19383 0t0 TCP *:22001 (LISTEN)
  6. sshd 1973 root 4u IPv6 19385 0t0 TCP *:22001 (LISTEN)
  7.  
  8. root@target-host:/etc/ssh# fuser 22001/tcp
  9. 22001/tcp: 1973
  10.  
  11. root@target-host:/etc/ssh# ps aux | grep 1973
  12. root 1973 0.0 0.1 65524 5952 ? Ss 03:04 0:00 /usr/sbin/sshd -D
  13.  
  14. made docker port for all running container. none of them has that one mapped
  15.  
  16. root@target-host:/etc/ssh# netstat -nlpt | grep 22
  17. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1112/sshd
  18. tcp 0 0 0.0.0.0:22001 0.0.0.0:* LISTEN 1973/sshd
  19. tcp6 0 0 :::22 :::* LISTEN 1112/sshd
  20. tcp6 0 0 :::22001 :::* LISTEN 1973/sshd
  21.  
  22. root@gitlab-runner:/# telnet 10.10.9.145 22
  23. Trying 10.10.9.145...
  24. Connected to 10.10.9.145.
  25. Escape character is '^]'.
  26. SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  27. ^]
  28. telnet> q
  29. Connection closed.
  30. root@gitlab-runner:/# telnet 10.10.9.145 22001
  31. Trying 10.10.9.145...
  32. Connected to 10.10.9.145.
  33. Escape character is '^]'.
  34. SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
  35. ^]
  36. telnet> q
  37. Connection closed.
  38.  
  39. question: WTF??
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement