{"id":35107,"date":"2019-01-27T09:37:55","date_gmt":"2019-01-27T09:37:55","guid":{"rendered":"http:\/\/antonini.psc.br\/?p=35107"},"modified":"2021-04-02T04:54:32","modified_gmt":"2021-04-02T04:54:32","slug":"usando-o-ssh-over-tor","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=35107","title":{"rendered":"Usando o SSH over Tor"},"content":{"rendered":"<p style=\"text-align: justify;\">Colabora\u00e7\u00e3o: Alexandro Silva<\/p>\n<p style=\"text-align: justify;\">Data de Publica\u00e7\u00e3o: 03 de dezembro de 2009<\/p>\n<p style=\"text-align: justify;\">De vez em quando caimos naquela situa\u00e7\u00e3o que precisamos conectar um servidor remoto com o ssh e um filho de Deus resolve bloquear o uso dessa porta no firewall.<\/p>\n<p style=\"text-align: justify;\">Mas para n\u00f3s guerreiros Super Sayajin nivel 4 isso \u00e9 caf\u00e9 pequeno. Tudo se resolve em minutos com o uso do connect-proxy<\/p>\n<p style=\"text-align: justify;\">Sempre tenho o tor + privoxy rodando em minha m\u00e1quina para situa\u00e7\u00f5es especiais ent\u00e3o ele ser\u00e1 usado para criar um t\u00fanel permitindo minha conex\u00e3o t\u00e3o desejada.<\/p>\n<p style=\"text-align: justify;\">Instale os pacotes necess\u00e1rios<\/p>\n<p style=\"text-align: justify;\"><strong>aptitude install tor connect-proxy<\/strong><\/p>\n<p style=\"text-align: justify;\">Configure o ssh para usar o tor adicionando as seguintes linhas no arquivo config dentro do diret\u00f3rio .ssh no seu \/home:<\/p>\n<p style=\"text-align: justify;\"><strong>Host [ Nome do servidor]<\/strong><br \/>\n<strong>ProxyCommand connect-proxy -S [ IP_Proxy:PORTA ] [ IP ou NOME SERVIDOR ] [ PORTA ]<\/strong><\/p>\n<p style=\"text-align: justify;\">Veja o exemplo<\/p>\n<p style=\"text-align: justify;\"><strong>nano ~\/.ssh\/config<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Host backup<\/strong><br \/>\n<strong>ProxyCommand connect-proxy -S localhost:9050 backup.foo.bar 22<\/strong><\/p>\n<p style=\"text-align: justify;\">Neste caso foi usado um proxy socks 5, se for um proxy http use a op\u00e7\u00e3o -H<\/p>\n<p style=\"text-align: justify;\">Para conectar fa\u00e7a o seguinte<\/p>\n<p style=\"text-align: justify;\"><strong>ssh -l [usu\u00e1rio] backup<\/strong><\/p>\n<p style=\"text-align: justify;\">Por exemplo<\/p>\n<p style=\"text-align: justify;\"><strong>ssh -l alexos backup<\/strong><\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Colabora\u00e7\u00e3o: Alexandro Silva Data de Publica\u00e7\u00e3o: 03 de dezembro de 2009 De vez em quando caimos naquela situa\u00e7\u00e3o que precisamos conectar um servidor remoto com o ssh e um filho de Deus resolve bloquear o uso dessa porta no firewall. Mas para n\u00f3s guerreiros Super Sayajin nivel 4 isso \u00e9 caf\u00e9 pequeno. Tudo se resolve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-35107","post","type-post","status-publish","format-standard","hentry","category-informatica"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/35107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35107"}],"version-history":[{"count":3,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/35107\/revisions"}],"predecessor-version":[{"id":35110,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/35107\/revisions\/35110"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}