Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

484
Visualizações
Providing an SSH based AJAX terminal on Django app

I am working on a Django app with following features.

  • online terminal to all users on my local network

  • The terminal frame should open at the bottom view, as soon as they are logged in.

  • There's a code editor in the top frame.

Their exists a linux account on the server with the same credentials that they use to login.

What I want:

  • spawn a terminal instance
  • ssh's to their remote account
  • change directory to their home directory as directed by ssh-config file
  • persist the terminal connection until they logout.

Bear in mind, this is all local, so accounts are all localplace, accessible.

I have created the top editor view, for now and it looks like this and it looks like this

The terminal picture shown below is from CodingGround enter image description here

How do I add this sort of terminal here? How do sites like StudyTerminal do it? How can I implement this?

I have looked at implementations of shellInaBox and GateOne but they occupy full screen space and are their own server. I don't want another server just to provide a terminal. Can anybody help me sort this out?

Probably like a Jquery / AJAX terminal interface that takes the following parameters:

new terminal{

   ssh_location : 10.10.56.24,
   port: 12001,
   username: username,
   password: ######,
   window_height: 100px;
   window_width: 200px;
   resizable:none
}

What's very important is that the terminal session should not occupy the full screen. Heavy functionalities such as multi user sessions, security may or not be necessary.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

This is real necromancy, but I'm searching and answering all questions about Web Terminals.

You have two major options:

  • xterm.js
  • jQuery Terminal

The first will allow creating a real Linux terminal you can connect it to real Unix TTY. With xterm.js you can create real SSH where you can even run editor like vi.

Here is article that show how to create terminal with xterm.js: How to create web-based terminals

The second option will allow you to create a Web Terminal where you can your stuff in JavaScript. But if you want to use Django and AJAX you can do that as well.

And here is article how to use jQuery Terminal: How to create interactive terminal like website with JavaScript?

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda