{"id":49,"date":"2019-07-02T14:23:22","date_gmt":"2019-07-02T14:23:22","guid":{"rendered":"https:\/\/silviamarin.ro\/?p=49"},"modified":"2019-07-02T14:23:22","modified_gmt":"2019-07-02T14:23:22","slug":"emulator-de-terminal-in-browser-2","status":"publish","type":"post","link":"https:\/\/marinelvis.xyz\/index.php\/2019\/07\/02\/emulator-de-terminal-in-browser-2\/","title":{"rendered":"EMULATOR DE TERMINAL IN BROWSER"},"content":{"rendered":"<p><em>Shell In A Box<\/em> (shellinabox) este un emulator prin browser pentru terminalul din Linux. Functioneaza ca un web-server in interiorul caruia ruleaza severul SSH si dirijeaza traficul peste firewall pe porturile HTTP(S).<br \/>\nSe instaleaza <em>shellinabox<\/em>:<\/p>\n<pre>apt-get install openssl shellinabox<\/pre>\n<p>La instalare se genereaza un certificat SSL in \/var\/lib\/shellinabox pentru folosirea protocolului HTTPS<br \/>\nPortul implicit este 4200 si poate fi schimbat in \/etc\/default\/shellinabox:<\/p>\n<pre>nano \/etc\/default\/shellinabox<\/pre>\n<p>Trebuie facut forward in router pe portul 4200 sau pe cel schimbat anterior<br \/>\nSe porneste serviciul:<\/p>\n<pre>service shellinaboxd start<\/pre>\n<p>Se verifica daca shellinabox ruleaza pe portul 4200 sau pe cel modificat:<\/p>\n<pre>netstat -nap | grep shellinabox<\/pre>\n<p>Output-ul este ceva de genul:<\/p>\n<blockquote><p><em>0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0.0.0.0:4200\u00a0\u00a0\u00a0\u00a0 0.0.0.0:*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LISTEN\u00a0\u00a0\u00a0\u00a0\u00a0 12274\/shellinaboxd<\/em><\/p><\/blockquote>\n<p>Se deschide browser-ul la <a href=\"https:\/\/domeniu.ro:4200\/\">https:\/\/domeniu.ro:4200<\/a> apoi login cu username si parola de SSH<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shell In A Box (shellinabox) este un emulator prin browser pentru terminalul din Linux. Functioneaza ca un web-server in interiorul caruia ruleaza severul SSH si dirijeaza traficul peste firewall pe porturile HTTP(S). Se instaleaza shellinabox: apt-get install openssl shellinabox La instalare se genereaza un certificat SSL in \/var\/lib\/shellinabox pentru folosirea protocolului HTTPS Portul implicit este [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-fara-categorie"],"_links":{"self":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":0,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}