Tag Archives: ssh

Cómo cambiar el puerto de salida por defecto de ssh

Si en una terminal tipeamos: ssh user@domain.com el cliente ssh intentará contactarse al puerto 22 de domain.com. Cómo cambiamos ese puerto? ssh -p 2222 user@domain.com Pero qué pasa si no tenemos acceso a cambiar ese parámetro? Puede pasarnos esto? Sí, … Continue reading

Posted in GNU/Linux | Tagged | 4 Comments

Shell Python administrativo sobre SSH para tu servidor Twisted en 10 líneas

entre tu reactor.listeTCP(puerto, factory) y reactor.run(): from twisted.conch import manhole, manhole_ssh from twisted.cred import portal, checkers   def getManholeFactory(namespace, **passwords): realm = manhole_ssh.TerminalRealm() def getManhole(_): return manhole.Manhole(namespace) realm.chainedProtocolFactory.protocolFactory = getManhole p = portal.Portal(realm) p.registerChecker( checkers.InMemoryUsernamePasswordDatabaseDontUse(**passwords)) f = manhole_ssh.ConchFactory(p) return f … Continue reading

Posted in Aprendiendo Python, Twisted | Tagged , | 1 Comment

Servidor SSH con Twisted

Actualicé este ejemplo, tamibién incluido en el libro de Twisted para que no tire Deprecation Warnings:

Posted in Aprendiendo Python, Twisted | Tagged , | 2 Comments