Code Monkey home page Code Monkey logo

Comments (6)

wpovell avatar wpovell commented on May 2, 2024

@shazow Related to this, I've been working on a script to automatically join and speak on a server to simulate load. However, I've been having trouble authenticating (and the go documentation hasn't been very useful). What type of authentication does the server use? Based on the code it looks like PublicKey or KeyboardInteractive, but I haven't had much success with using either.

Unfortunately most example code I've found online is for password authentication, which the server doesn't use.

from ssh-chat.

shazow avatar shazow commented on May 2, 2024

@empathetic-alligator Glad you asked! I have some great news for you. I wrote precisely that piece yesterday, but I don't have the piece you're working on. :)

https://github.com/shazow/ssh-hammer

Feel free to steal any/all of that code, or contribute back to it. Whatever makes sense.

from ssh-chat.

shazow avatar shazow commented on May 2, 2024

Btw, in case it wasn't clear, please don't use this on the live chat.shazow.net, your IP will get blacklisted by iptables. :)

from ssh-chat.

wpovell avatar wpovell commented on May 2, 2024

@shazow I've got a version working where the program can join the chat server, but so far I've been unable to have it send any messages.

Before it had only been making a connection:

2014-12-17 20:03:13.524 INFO Connection #10 from: 127.0.0.1:59996, hammer, SSH-2.0-Go

But now I've got it to actually display the join/leave messages, which may partly simulate what we're looking for:

2014-12-17 18:52:54.230 INFO Connection #9 from: 127.0.0.1:59898, hammer, SSH-2.0-Go
2014-12-17 18:52:54.230 DEBUG Broadcast to 2:  * hammer joined. (Total connected: 2)
2014-12-17 20:02:52.517 DEBUG Broadcast to 1:  * hammer left.

from ssh-chat.

shazow avatar shazow commented on May 2, 2024

Take a look at https://github.com/peterhellberg/check-ssh-chat, too.

from ssh-chat.

shazow avatar shazow commented on May 2, 2024

Tests are in a much better state now, yay.

from ssh-chat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.