πͺ Created a new sessionHandler function to handle individual SSH sessions. This function encapsulates the main logic previously in the main function.
π Moved the welcome message, prompts, and interactive session loop into the sessionHandler function. Now each SSH session gets its own instance of the interface! π
π Updated input/output to use ssh.Session instead of stdin/stdout. This allows for seamless SSH communication. π‘
π Refactored the StreamResponse function to accept an ssh.Session parameter and use it for output. Gotta keep those colors flowing through the SSH tunnel! π¨
ποΈ Restructured the main function to set up an SSH server using wish.NewServer. It listens on localhost:22020 and uses the host key at .ssh/term_info_ed25519. π
π Added middleware to the SSH server, including the sessionHandler and logging.Middleware(). This allows for additional functionality and logging. π΅οΈββοΈ
π£ Added log statements to indicate when the SSH server starts and if any fatal errors occur. Gotta keep the admin informed! π’
sessionHandler
function to handle individual SSH sessions. This function encapsulates the main logic previously in themain
function.sessionHandler
function. Now each SSH session gets its own instance of the interface! πssh.Session
instead ofstdin
/stdout
. This allows for seamless SSH communication. π‘StreamResponse
function to accept anssh.Session
parameter and use it for output. Gotta keep those colors flowing through the SSH tunnel! π¨main
function to set up an SSH server usingwish.NewServer
. It listens onlocalhost:22020
and uses the host key at.ssh/term_info_ed25519
. πsessionHandler
andlogging.Middleware()
. This allows for additional functionality and logging. π΅οΈββοΈSo, fire up your SSH client and get ready to experience the antαΈ©ropiΓ§ quantum reality like never before! πβ¨