Advertisement
Guest User

SSH

a guest
Mar 17th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1. root@kali:~/proton# ifconfig
  2. eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
  3. ether e0:cb:4e:00:82:13 txqueuelen 1000 (Ethernet)
  4. RX packets 0 bytes 0 (0.0 B)
  5. RX errors 0 dropped 0 overruns 0 frame 0
  6. TX packets 0 bytes 0 (0.0 B)
  7. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  8.  
  9. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  10. inet 127.0.0.1 netmask 255.0.0.0
  11. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  12. loop txqueuelen 1 (Local Loopback)
  13. RX packets 31 bytes 1653 (1.6 KiB)
  14. RX errors 0 dropped 0 overruns 0 frame 0
  15. TX packets 31 bytes 1653 (1.6 KiB)
  16. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  17.  
  18. wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  19. inet 192.168.1.53 netmask 255.255.255.0 broadcast 192.168.1.255
  20. inet6 fe80::225:d3ff:fed2:d81e prefixlen 64 scopeid 0x20<link>
  21. ether 00:25:d3:d2:d8:1e txqueuelen 1000 (Ethernet)
  22. RX packets 645868 bytes 915640050 (873.2 MiB)
  23. RX errors 0 dropped 0 overruns 0 frame 0
  24. TX packets 353200 bytes 33688590 (32.1 MiB)
  25. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  26.  
  27. OpenSSH_7.2p2 Debian-4, OpenSSL 1.0.2g 1 Mar 2016
  28. debug1: Reading configuration data /etc/ssh/ssh_config
  29. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  30. debug2: resolving "192.168.1.30" port 22
  31. debug2: ssh_connect_direct: needpriv 0
  32. debug1: Connecting to 192.168.1.30 [192.168.1.30] port 22.
  33. debug1: Connection established.
  34. debug1: permanently_set_uid: 0/0
  35. debug1: identity file /root/.ssh/id_rsa type 1
  36. debug1: key_load_public: No such file or directory
  37. debug1: identity file /root/.ssh/id_rsa-cert type -1
  38. debug1: key_load_public: No such file or directory
  39. debug1: identity file /root/.ssh/id_dsa type -1
  40. debug1: key_load_public: No such file or directory
  41. debug1: identity file /root/.ssh/id_dsa-cert type -1
  42. debug1: key_load_public: No such file or directory
  43. debug1: identity file /root/.ssh/id_ecdsa type -1
  44. debug1: key_load_public: No such file or directory
  45. debug1: identity file /root/.ssh/id_ecdsa-cert type -1
  46. debug1: key_load_public: No such file or directory
  47. debug1: identity file /root/.ssh/id_ed25519 type -1
  48. debug1: key_load_public: No such file or directory
  49. debug1: identity file /root/.ssh/id_ed25519-cert type -1
  50. debug1: Enabling compatibility mode for protocol 2.0
  51. debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Debian-4
  52. ^C #connectiong to openVPN through an external network now
  53. root@kali:~/proton# ifconfig
  54. eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
  55. ether e0:cb:4e:00:82:13 txqueuelen 1000 (Ethernet)
  56. RX packets 0 bytes 0 (0.0 B)
  57. RX errors 0 dropped 0 overruns 0 frame 0
  58. TX packets 0 bytes 0 (0.0 B)
  59. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  60.  
  61. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  62. inet 127.0.0.1 netmask 255.0.0.0
  63. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  64. loop txqueuelen 1 (Local Loopback)
  65. RX packets 28 bytes 1506 (1.4 KiB)
  66. RX errors 0 dropped 0 overruns 0 frame 0
  67. TX packets 28 bytes 1506 (1.4 KiB)
  68. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  69.  
  70. tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
  71. inet 10.8.0.6 netmask 255.255.255.255 destination 10.8.0.5
  72. unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
  73. RX packets 300 bytes 232067 (226.6 KiB)
  74. RX errors 0 dropped 0 overruns 0 frame 0
  75. TX packets 386 bytes 74567 (72.8 KiB)
  76. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  77.  
  78. wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  79. inet 192.168.43.46 netmask 255.255.255.0 broadcast 192.168.43.255
  80. inet6 fe80::a61f:a914:5e49:9ebd prefixlen 64 scopeid 0x20<link>
  81. ether 00:25:d3:d2:d8:1e txqueuelen 1000 (Ethernet)
  82. RX packets 645083 bytes 915428805 (873.0 MiB)
  83. RX errors 0 dropped 0 overruns 0 frame 0
  84. TX packets 352893 bytes 33618997 (32.0 MiB)
  85. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  86.  
  87. root@kali:~/proton# ssh [email protected]
  88. The authenticity of host '192.168.1.30 (192.168.1.30)' can't be established.
  89. RSA key fingerprint is SHA256:OUbrgAfMaUEeLwriDyrQaQSCeaFMy9VPw9O+5DaEkJw.
  90. Are you sure you want to continue connecting (yes/no)? yes
  91. Warning: Permanently added '192.168.1.30' (RSA) to the list of known hosts.
  92. [email protected]'s password:
  93. [cantolin@proliant ~]$ whoami
  94. cantolin
  95. [cantolin@proliant ~]$ ifconfig
  96. eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
  97. ether 1c:98:ec:0f:47:00 txqueuelen 1000 (Ethernet)
  98. RX packets 0 bytes 0 (0.0 B)
  99. RX errors 0 dropped 0 overruns 0 frame 0
  100. TX packets 0 bytes 0 (0.0 B)
  101. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  102. device interrupt 16
  103.  
  104. eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  105. inet 192.168.1.30 netmask 255.255.255.0 broadcast 192.168.1.255
  106. inet6 fe80::1e98:ecff:fe0f:4701 prefixlen 64 scopeid 0x20<link>
  107. ether 1c:98:ec:0f:47:01 txqueuelen 1000 (Ethernet)
  108. RX packets 24803401 bytes 21003500457 (19.5 GiB)
  109. RX errors 0 dropped 0 overruns 0 frame 0
  110. TX packets 25185959 bytes 28741042352 (26.7 GiB)
  111. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  112. device interrupt 17
  113.  
  114. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  115. inet 127.0.0.1 netmask 255.0.0.0
  116. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  117. loop txqueuelen 1 (Local Loopback)
  118. RX packets 2865142 bytes 58469511528 (54.4 GiB)
  119. RX errors 0 dropped 0 overruns 0 frame 0
  120. TX packets 2865142 bytes 58469511528 (54.4 GiB)
  121. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  122.  
  123. tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
  124. inet 10.8.0.1 netmask 255.255.255.255 destination 10.8.0.2
  125. unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
  126. RX packets 32221 bytes 1963511 (1.8 MiB)
  127. RX errors 0 dropped 0 overruns 0 frame 0
  128. TX packets 58868 bytes 79091841 (75.4 MiB)
  129. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  130.  
  131. virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
  132. inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
  133. ether 52:54:00:c1:cd:18 txqueuelen 1000 (Ethernet)
  134. RX packets 0 bytes 0 (0.0 B)
  135. RX errors 0 dropped 0 overruns 0 frame 0
  136. TX packets 0 bytes 0 (0.0 B)
  137. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  138.  
  139. [cantolin@proliant ~]$ exit
  140. logout
  141. Connection to 192.168.1.30 closed.
  142. #connecting from my wifi
  143. root@kali:~/proton# ssh cantolin@<redacted public ip> -p 2222
  144. The authenticity of host '[<redacted public ip>]:2222 ([<redacted public ip>]:2222)' can't be established.
  145. RSA key fingerprint is SHA256:OUbrgAfMaUEeLwriDyrQaQSCeaFMy9VPw9O+5DaEkJw.
  146. Are you sure you want to continue connecting (yes/no)? yes
  147. Warning: Permanently added '[<redacted public ip>]:2222' (RSA) to the list of known hosts.
  148. cantolin@<redacted public ip>'s password:
  149. [cantolin@proliant ~]$ exit
  150. logout
  151. Connection to <redacted public ip> closed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement