You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

22m 29s logged

The jumpstart

So i planned that i will be making a kind of portfolio where you could ssh into. I got this idea from zrl’s sshtron game which is very fun and is a ssh based snake game.

So i just started learning about how ssh2 works and how to make a server using it.

The documentation was kind of very complex for me, so i saw the examples.

I created a module called ‘ready.js’ , which would handle everything after the client was authenticated.

I had some PTY errors, so i figured out if i accept everything, there will be no errors. So i just added pty.accept() for all cases no matter what.

I did the same for authentication which allowed me to login without any password or username.

To test it finally worked, i tried to send a raw ’Welcome!” stream.

So far looks good

0
25

Comments 0

No comments yet. Be the first!