ncouture / MockSSH

Mock an SSH server and define all commands it supports (Python, Twisted)
Other
125 stars 23 forks source link

Add optionnal banner while authenticating #15

Closed maximumG closed 7 years ago

maximumG commented 7 years ago

The idea would be to get the possibility to specifiy a banner during SSH authentication. The entry point would be to have an additional argument in the runServer() method to specify the banner.

This banner should cross all class until reaching SSHTransport class in the connectionMade() method where we can write the banner using self.transport.wrtite(banner)

ncouture commented 7 years ago

@maximumG Is there a chance you might be able to send a push request for this?

ncouture commented 7 years ago

I have nothing against adding this feature but would like it to be implemented by adding support for a configuration file.

maximumG commented 7 years ago

@ncouture : I will try to work on this and send you a push request. The first idea I had was not to have any configuration file but instead keep this project as a sort of API.

I have to say that I am working on a whole project on the top of MockSSH that will mimic many network device OS (IOS, NX-OS, F5,...) for some read-only commands ('show' commands) based on different configuration files.

ncouture commented 7 years ago

@maximumG It's great to hear people find the project useful.

Do you still need this feature or have you made your own implementation?

Since you are working on a whole project on top of MockSSH, I'd like to invite you to reach out to me to discuss your use-case in order to find out more about its applications and find out how to make it more useful.

email: nicolas.couture@gmail.com