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

Cloud Shell console as a standalone app #252

Open
sensboston opened this issue Jul 20, 2024 · 10 comments
Open

Cloud Shell console as a standalone app #252

sensboston opened this issue Jul 20, 2024 · 10 comments

Comments

@sensboston
Copy link

Hello, is it possible to create a Cloud Shell console as standalone app? If "yes" could you please provide me a code sample/snippet, how to get connected?

Thank you!

@github-anurag
Copy link
Member

@sensboston
Can you elaborate on what you mean by Cloud Shell console as a standalone app? Is this something the OCI Dotnet SDK can help with?

@sensboston
Copy link
Author

I mean access to the instance console via Cloud Shell: you can access even your ssh or network is broken, it's like a virtual console via serial port access (as far as I understand). Yes, of course it works fine (mostly) via website but standalone app will be also helpful, I think so.

image

@github-anurag
Copy link
Member

github-anurag commented Jul 22, 2024

@sensboston
I found this wiki on how to do this locally: https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm#Connecti2

I hope this helps. I am closing this issue as this issue does not fall under the purview of the OCI Dotnet SDK. Please don't hesitate to contact the OCI Customer Support team, if you need any additional help.

@sensboston
Copy link
Author

Hmm, you can do whatever you want but your comment isn't helpful at all 😢 Never mind, I'll figure out how to achieve my goals without your SDK and help.

@github-anurag
Copy link
Member

@sensboston
I apologize for the confusion, I did not see you mention that you wanted to use the OCI Dotnet SDK for this task.

If you wish to use the OCI Dotnet SDK, then you can refer to the OCI API Reference for InstanceConsoleConnection: https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/

The OCI API Reference also has the different APIs we currently support, for example CreateInstanceConsoleConnection

@github-anurag github-anurag reopened this Jul 22, 2024
@sensboston
Copy link
Author

@github-anurag, do you have any C# ready to work sample or at least snippet instead of pointing me to POST reference? As far as I understand, I should pass authentication first.
Also, one more time: I'm not looking for SSH connection (I already and always using SSH connection) implementation; I'm interesting in use Cloud Shell console connection only.

@sensboston
Copy link
Author

sensboston commented Jul 22, 2024

It seems you don't understand (or don't want to understand), what I'm asking and looking for. I'm not looking for POST samples, or SSH client guide or anything else not related to the Oracle Shell.
Oracle has a very nice feature (see screenshot above) called Oracle Cloud Shell console. This web-based console allow you to access your running instance (i.e. virtual machine) "serial" console regardless of SSH or network operating state; it's like a display with keyboard connected to Linux PC, or serial monitor allowing you to access Linux/Ux computer.
Yes, Oracle's web implementation is working fine and I used it sometimes to fix non-working firewall or something else (if my SSH daemon stopped working or network blocked).
But I would like to have (and I wanna create it) standalone console app (with XTerm abilities) to access Cloud Shell console.
What's all; I thought this API (i.e. OCI .NET SDK) should help me with that task.

@jodoglevy
Copy link
Member

Cloud Shell is not accessible programatically. If you would like to request Cloud Shell programmatic access, please file a request with Oracle Support -- that would be something the Cloud Shell team would need to support before OCI SDKs can support it.

Instance console connections do not use SSH. From this link:

Instance console connections are for troubleshooting purposes only. To connect to a running instance for administration and general use, instead use a Secure Shell (SSH) or Remote Desktop connection.

This seems to match what you're looking for. From your post above:

You can access even your ssh or network is broken, it's like a virtual console via serial port access (as far as I understand).

@sensboston
Copy link
Author

@jodoglevy, thank you for clarification. By the way, if I'm able to access console via browser, that means I can access console from literally everything ;) But of course if no official API exist/exposed, this will take more time...

@jodoglevy
Copy link
Member

If you are suggesting sniffing the browser traffic to discover the HTTP calls being made behind the scenes between OCI browser experience and Cloud Shell, to copy that HTTP traffic in your own application -- that does not represent an official, supported OCI API, and could break at any time, since its not meant to be used from anywhere other than the OCI browser experience, today

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

3 participants