Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autologin URL not working? #591

Open
bitency opened this issue Mar 29, 2016 · 5 comments
Open

Autologin URL not working? #591

bitency opened this issue Mar 29, 2016 · 5 comments

Comments

@bitency
Copy link

bitency commented Mar 29, 2016

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
Copy link

jjuu commented Apr 22, 2016

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

@bitency
Copy link
Author

bitency commented Apr 22, 2016

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

@jjuu
Copy link

jjuu commented Sep 13, 2016

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

@bitency
Copy link
Author

bitency commented Sep 13, 2016

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

Post your code.

@jjuu
Copy link

jjuu commented Sep 13, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants