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

Support opening default browser from the remote SSH session #375

Open
yuezk opened this issue Jun 13, 2024 · 2 comments
Open

Support opening default browser from the remote SSH session #375

yuezk opened this issue Jun 13, 2024 · 2 comments

Comments

@yuezk
Copy link
Owner

yuezk commented Jun 13, 2024

Refer to the implementation of aws sso login command.

@qraynaud
Copy link

qraynaud commented Jun 14, 2024

I think in the meantime it would be a good idea to print on the console the URL that the client is trying to browse to. That would allow me to open my local browser on it and at the end of the process to change the callback URL to point back to the client if I forward the correct port.

@qraynaud
Copy link

qraynaud commented Jul 19, 2024

@yuezk I just found out it is rather easy to do. You just have to look for a BROWSER environment variable. If there is one, you just run the command $BROWSER $url. And that’s it! And like aws sso, providing a proper URL to open on stdout for cases it is not available would be great!

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