liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

Autologin URL not working? #591

Open bitency opened 8 years ago

bitency commented 8 years ago

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>

jjuu commented 8 years ago

It often happens when re-auto-login. Same to me.

bitency commented 8 years ago

You can create a new terminal and use the function sendString to auto-login @ SSH.

jjuu commented 8 years ago

The workaround way isn't good enough. Have you find out how to fix it?

bitency commented 8 years ago

We use SendString to auto-login @ SSH. It works for 3 terminals.

Post your code.

jjuu commented 8 years ago

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.