Guest User

Untitled

a guest
Jan 21st, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 KB | None | 0 0
  1. ps -A | grep sshd
  2. 18278 ? 00:00:00 sshd
  3.  
  4. ss -lnp
  5.  
  6. ssh -v jane@192.168.2.12 martin@martin-UX21E 7:54PM
  7. OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
  8. debug1: Reading configuration data /etc/ssh/ssh_config
  9. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  10. debug1: Connecting to 192.168.2.12 [192.168.2.12] port 22.
  11. debug1: Connection established.
  12. debug1: identity file /home/martin/.ssh/id_rsa type -1
  13. debug1: identity file /home/martin/.ssh/id_rsa-cert type -1
  14. debug1: identity file /home/martin/.ssh/id_dsa type -1
  15. debug1: identity file /home/martin/.ssh/id_dsa-cert type -1
  16. debug1: identity file /home/martin/.ssh/id_ecdsa type -1
  17. debug1: identity file /home/martin/.ssh/id_ecdsa-cert type -1
  18. debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
  19. debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
  20. debug1: Enabling compatibility mode for protocol 2.0
  21. debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
  22. debug1: SSH2_MSG_KEXINIT sent
  23. debug1: SSH2_MSG_KEXINIT received
  24. debug1: kex: server->client aes128-ctr hmac-md5 none
  25. debug1: kex: client->server aes128-ctr hmac-md5 none
  26. debug1: sending SSH2_MSG_KEX_ECDH_INIT
  27. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  28. debug1: Server host key: ECDSA 36:bf:c0:c6:d1:e0:16:bd:f0:8c:88:fe:1b:4b:12:74
  29. debug1: Host '192.168.2.12' is known and matches the ECDSA host key.
  30. debug1: Found key in /home/martin/.ssh/known_hosts:1
  31. debug1: ssh_ecdsa_verify: signature correct
  32. debug1: SSH2_MSG_NEWKEYS sent
  33. debug1: expecting SSH2_MSG_NEWKEYS
  34. debug1: SSH2_MSG_NEWKEYS received
  35. debug1: Roaming not allowed by server
  36. debug1: SSH2_MSG_SERVICE_REQUEST sent
  37. debug1: SSH2_MSG_SERVICE_ACCEPT received
  38. Connection closed by 192.168.2.12
  39.  
  40. ssh localhost
  41.  
  42. ssh 192.168.2.12
  43.  
  44. ssh -vvv jane@192.168.2.12 martin@martin-UX21E 8:00PM
  45. OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
  46. debug1: Reading configuration data /etc/ssh/ssh_config
  47. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  48. debug2: ssh_connect: needpriv 0
  49. debug1: Connecting to 192.168.2.12 [192.168.2.12] port 22.
  50. debug1: Connection established.
  51. debug1: identity file /home/martin/.ssh/id_rsa type -1
  52. debug1: identity file /home/martin/.ssh/id_rsa-cert type -1
  53. debug1: identity file /home/martin/.ssh/id_dsa type -1
  54. debug1: identity file /home/martin/.ssh/id_dsa-cert type -1
  55. debug1: identity file /home/martin/.ssh/id_ecdsa type -1
  56. debug1: identity file /home/martin/.ssh/id_ecdsa-cert type -1
  57. debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
  58. debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
  59. debug1: Enabling compatibility mode for protocol 2.0
  60. debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
  61. debug2: fd 3 setting O_NONBLOCK
  62. debug3: load_hostkeys: loading entries for host "192.168.2.12" from file "/home/martin/.ssh/known_hosts"
  63. debug3: load_hostkeys: found key type ECDSA in file /home/martin/.ssh/known_hosts:1
  64. debug3: load_hostkeys: loaded 1 keys
  65. debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
  66. debug1: SSH2_MSG_KEXINIT sent
  67. debug1: SSH2_MSG_KEXINIT received
  68. debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
  69. debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
  70. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
  71. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
  72. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  73. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  74. debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
  75. debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
  76. debug2: kex_parse_kexinit:
  77. debug2: kex_parse_kexinit:
  78. debug2: kex_parse_kexinit: first_kex_follows 0
  79. debug2: kex_parse_kexinit: reserved 0
  80. debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
  81. debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
  82. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
  83. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
  84. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  85. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
  86. debug2: kex_parse_kexinit: none,zlib@openssh.com
  87. debug2: kex_parse_kexinit: none,zlib@openssh.com
  88. debug2: kex_parse_kexinit:
  89. debug2: kex_parse_kexinit:
  90. debug2: kex_parse_kexinit: first_kex_follows 0
  91. debug2: kex_parse_kexinit: reserved 0
  92. debug2: mac_setup: found hmac-md5
  93. debug1: kex: server->client aes128-ctr hmac-md5 none
  94. debug2: mac_setup: found hmac-md5
  95. debug1: kex: client->server aes128-ctr hmac-md5 none
  96. debug1: sending SSH2_MSG_KEX_ECDH_INIT
  97. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  98. debug1: Server host key: ECDSA 36:bf:c0:c6:d1:e0:16:bd:f0:8c:88:fe:1b:4b:12:74
  99. debug3: load_hostkeys: loading entries for host "192.168.2.12" from file "/home/martin/.ssh/known_hosts"
  100. debug3: load_hostkeys: found key type ECDSA in file /home/martin/.ssh/known_hosts:1
  101. debug3: load_hostkeys: loaded 1 keys
  102. debug1: Host '192.168.2.12' is known and matches the ECDSA host key.
  103. debug1: Found key in /home/martin/.ssh/known_hosts:1
  104. debug1: ssh_ecdsa_verify: signature correct
  105. debug2: kex_derive_keys
  106. debug2: set_newkeys: mode 1
  107. debug1: SSH2_MSG_NEWKEYS sent
  108. debug1: expecting SSH2_MSG_NEWKEYS
  109. debug2: set_newkeys: mode 0
  110. debug1: SSH2_MSG_NEWKEYS received
  111. debug1: Roaming not allowed by server
  112. debug1: SSH2_MSG_SERVICE_REQUEST sent
  113. debug2: service_accept: ssh-userauth
  114. debug1: SSH2_MSG_SERVICE_ACCEPT received
  115. debug2: key: /home/martin/.ssh/id_rsa ((nil))
  116. debug2: key: /home/martin/.ssh/id_dsa ((nil))
  117. debug2: key: /home/martin/.ssh/id_ecdsa ((nil))
  118. Connection closed by 192.168.2.12
  119.  
  120. sudo ufw app list
  121.  
  122. Available applications:
  123. ...
  124. OpenSSH
  125. ...
  126.  
  127. sudo ufw allow 'OpenSSH'
Add Comment
Please, Sign In to add comment