Open bitency opened 8 years ago
It often happens when re-auto-login. Same to me.
You can create a new terminal and use the function sendString to auto-login @ SSH.
The workaround way isn't good enough. Have you find out how to fix it?
We use SendString to auto-login @ SSH. It works for 3 terminals.
Post your code.
Well, when I login server, I want to resume the session. But sendString is not a good idea because sometimes after it resumes then what's in the sendString is output to the terminal.
I created a script to auto-login @ SSH but it's not working: If i connect to the url with ?ssh=ssh://root@ipSSH auto-login works perfect.
<script> var url = 'https://ipGateone/gateone'; scriptTag = document.createElement('script'); scriptTag.src = url + '/static/gateone.js'; scriptTag.onload = function() { GateOne.init({ url:url, embedded:false, disableTermTransitions:true, showTitle:false, showToolbar:false, fillContainer:true, colors:'gnome-terminal', autoConnectURL:'ssh://root@ipSSH:22' }); } document.body.appendChild(scriptTag); </script>