WO2021151297A1 - Method, apparatus, and device for accessing cloud host console, and storage medium - Google Patents

Method, apparatus, and device for accessing cloud host console, and storage medium Download PDF

Info

Publication number
WO2021151297A1
WO2021151297A1 PCT/CN2020/118892 CN2020118892W WO2021151297A1 WO 2021151297 A1 WO2021151297 A1 WO 2021151297A1 CN 2020118892 W CN2020118892 W CN 2020118892W WO 2021151297 A1 WO2021151297 A1 WO 2021151297A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
novnc
cloud host
preset
host console
Prior art date
Application number
PCT/CN2020/118892
Other languages
French (fr)
Chinese (zh)
Inventor
戴开云
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021151297A1 publication Critical patent/WO2021151297A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords

Definitions

  • This application relates to the technical field of data cloud management in smart city big data management, and in particular to a method, device, equipment and storage medium for accessing a cloud host console.
  • Hybrid cloud is a combination of public cloud and private cloud services; due to security and control reasons, not all corporate information can be placed on the public cloud, so most companies that have already applied cloud computing will use the hybrid cloud model. Many will choose to use both public and private clouds at the same time, and some will also establish public clouds at the same time; because public clouds will only charge users for resources used, centralized clouds will become a very cheap way to handle peak demand; for example; For some retailers, their operational needs will increase sharply with the advent of the holidays, or some businesses will increase seasonally.
  • hybrid cloud also provides a good foundation for elastic demand for other purposes, such as disaster recovery; this means that private clouds use the public cloud as a disaster transfer platform and use it when needed; this is an extreme A cost-effective concept; another good concept is to use public clouds as an alternative platform, while choosing other public clouds as disaster mitigation platforms.
  • Hybrid cloud integrates public cloud and private cloud. By using the security of private cloud, important internal data is stored in the local data center. At the same time, it can also use the computing resources of public cloud to complete work more efficiently and quickly. Compared with private cloud or Public clouds are more complete; hybrid clouds break through the hardware limitations of private clouds, and use the scalability of public clouds to obtain higher computing power at any time. Enterprises can reduce the pressure and demand on internal private clouds by moving non-confidential functions to public cloud areas; hybrid clouds can effectively reduce costs. It can use both public cloud and private cloud. Enterprises can put applications and data on the most suitable platform to obtain the best combination of benefits.
  • the cloud management platform formed by the hybrid cloud requires the installation of plug-ins. After the plug-in is installed, log in to the cloud management platform, and the user password is required to log in to the cloud management platform. Since there are multiple cloud management platforms under the hybrid cloud, one of the cloud management platforms The corresponding mechanisms between different cloud management platforms cannot be achieved uniformly. User information and user passwords are still required to be obtained. There is no way to achieve a unified access to the cloud management platform; and for different cloud management platforms, it wants to achieve access to different clouds The management platform requires a large amount of resources to be managed.
  • the embodiment of the application discloses a method for accessing a cloud host console, the method includes:
  • the embodiment of the application also discloses a device for accessing a cloud host console, the device including:
  • a preset module which is used to connect the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
  • An obtaining module configured to obtain corresponding login information through the preset noVNC program, where the login information is a port and a password corresponding to the cloud host console;
  • the login module is used to obtain an accessible URL to log in to the cloud host console according to the login information.
  • the embodiment of the present application also discloses a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor implements the following steps when executing the program:
  • the embodiment of the application also discloses a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
  • Fig. 1 is a flow chart of the first embodiment of a method for accessing a cloud host console according to the present application
  • FIG. 2 is a flowchart of the second embodiment of a method for accessing a cloud host console according to the present application
  • FIG. 3 is a flowchart of the steps of Embodiment 3 of a method for accessing a cloud host console according to the present application;
  • Embodiment 4 is a flowchart of the steps of Embodiment 4 of a method for accessing a cloud host console according to the present application;
  • FIG. 5 is a flowchart of the steps of Embodiment 5 of a method for accessing a cloud host console according to the present application;
  • FIG. 6 is a flowchart of the steps of Embodiment 6 of a method for accessing a cloud host console according to the present application;
  • FIG. 7 is a structural block diagram of Embodiment 1 of a device for accessing a cloud host console according to the present application.
  • Embodiment 1 of a method for accessing a cloud host console which may specifically include the following steps:
  • Step S10 connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
  • Step S20 Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
  • Step S30 Obtain an accessible URL according to the login information to log in to the cloud host console.
  • the noVNC program is translated into a remote management desktop tool in the VNC field, with the purpose of remotely accessing the Windows desktop through a browser.
  • the noVNC program is a pre-set noVNC program.
  • the preset noVNC program obtains and parses the login information of its cloud host console, and obtains the vnc port and password through the interface of each cloud host console; when the user initiates a request to log in to the cloud host console, the noVNC program will call the cloud first
  • the host's interface obtains the VNC password and port, and then arranges and encrypts the combination to form an accessible URL.
  • the browser accesses the URL.
  • the noVNC program obtains the accessible URL, it parses the accessible URL and passes Log in to the accessible URL and access the cloud host console.
  • the modified noVNC program by deploying the modified noVNC program, different cloud vendors used their own consoles before the modification. For example, cloudtsack's console interface is low in definition and the interface is very card; fuisonCompute uses self-developed The same is true for vmware cloud vendors; after the transformation, the unified VNC is used to log in, which can shield the differences in the console login of each cloud vendor; when accessing the console according to the modified noVNC program, the user passes the improved noVNC The program realizes automatic login. It will obtain the VNC user name and user password of the cloud host. The user name and password are automatically filled in through the noVNC program to generate an accessible URL. The improved noVNC program parses the accessible URL. The user name and user password will be parsed and used to log in to the cloud host console.
  • the embodiments of this application include the following advantages: in order to provide users with a unified cloud host console login method and a unified interface in the hybrid cloud management platform, and give users a better user experience, the cloud host console is accessed in this application
  • the preset noVNC program wherein the preset noVNC program is to obtain the login information of the cloud host console; the corresponding login information is obtained through the preset noVNC program, wherein the login information is related to the cloud host console
  • the port and password corresponding to the host console obtain the accessible URL according to the login information to log in to the cloud host console; users do not need to obtain the port and password of the cloud host VNC by themselves, the program will automatically obtain and submit, reducing users
  • the complexity of using the cloud host console does not expose any underlying information to users, which improves security protection; when the cloud management platform manages various virtual machines and its management platform, there is no need to consider the issue of cloud host login and no additional
  • the development of reduces the complexity of management; independent deployment of the modified noVNC program,
  • FIG. 2 there is shown a step flow chart of the second embodiment of a method for accessing a cloud host console according to the present application.
  • the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program Before being used to obtain and parse the login information of the cloud host console, the method may specifically include the following steps:
  • Step S101 access the cloud host console through the hybrid cloud management platform
  • Step S102 Connect the cloud host console to the preset noVNC program.
  • the cloud host console is first accessed through the hybrid cloud management platform, and then the cloud host console to be accessed is connected to the noVNC program.
  • the hybrid cloud management platform can realize the deployment of public and private clouds.
  • the current mainstream public cloud vendors mainly include: Facebook Cloud, Tencent Cloud, Huawei Cloud, UCloud, JD Cloud, Baidu Cloud, and foreign AWS, Azure, Google Cloud, etc.; and the general private cloud is nothing more than OpenStack (open source ), or VMWare (for a fee); and the hybrid cloud management platform is to put the cloud computing resources of the above-mentioned vendors together in the platform for unified management.
  • the cloud host console is accessed through the hybrid cloud management platform, and then the cloud host console is connected to the noVNC program, which can meet the requirements of various types of hybrid cloud management platforms to avoid the problems caused by different mechanisms.
  • the problem of not being able to achieve unified access is that even under multiple hybrid cloud management platforms, unified access can still be effectively achieved.
  • FIG. 3 there is shown a step flow chart of the third embodiment of a method for accessing a cloud host console according to the present application.
  • the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program
  • the method may specifically include the following steps:
  • Step S103 forward the cloud host console to the virtual machine
  • Step S104 access the preset noVNC program in the virtual machine.
  • the cloud host console by forwarding the cloud host console to the virtual machine, and connecting its cloud host console to the noVNC program in the virtual machine, the cloud host console can be accessed through the hybrid cloud management platform. Access the cloud host console for forwarding, and access to the noVNC program in the preset virtual machine, so that the hybrid cloud management platform can connect the cloud host console to the preset noVNC program, and realize the analysis through the noVNC program. Automatically obtain the user name and user password in the user information, and use the user name and user password to log in to the cloud host console, so that users do not need to spend time to obtain the user name and user password of the cloud host console, that is, there is no need to obtain user information. The user can log in directly, which improves the user experience.
  • FIG. 4 there is shown a step flow chart of the fourth embodiment of a method for accessing a cloud host console according to the present application.
  • the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program
  • the method for obtaining and parsing the login information of the cloud host console, and the setting method of the preset noVNC program, the method may specifically include the following steps:
  • Step S105 compile the noVNC program through Python
  • Step S106 generating a jar file from the compiled noVNC program
  • Step S107 upload the jar file to the deployment server
  • Step S108 after decompressing the jar file in the deployment server, and configuring environment variables
  • Step S109 the configuration environment variable is started by a preset command, and a preset noVNC program is obtained;
  • the noVNC program is compiled through Python, where Python is translated into a computer programming language, which is a cross-platform computer programming language; it is a high-level combination of interpretability, compiling, and interactivity. And object-oriented scripting language; originally designed for writing automated scripts (shell), with the continuous update of the version and the addition of new language features, the more it is used for the development of independent and large-scale projects; according to the compiled noVNC
  • the program generates a jar file; then upload the jar file to the deployment server, the deployment server decompresses the jar file, configures the environment variables obtained from the decompression, and starts the command according to the environment variables obtained from the configuration, and starts the preset noVNC program;
  • the set noVNC program obtains the corresponding login information for the cloud host console that needs to be accessed, without the user obtaining the login information by himself, and automatically obtains and submits it through the pre-set noVNC program, and obtains the VNC of the cloud host User name and
  • Embodiment 5 there is shown a step flow chart of Embodiment 5 of a method for accessing a cloud host console according to the present application.
  • the corresponding login information is obtained through the preset noVNC program, wherein the login information is the same as that of the For the port and password corresponding to the cloud host console, the method may specifically include the following steps:
  • Step S201 Obtain the user name and user password by calling the interface of the cloud host;
  • Step S202 Perform editing and encryption processing on the acquired user name and user password
  • Step S203 Use noVNC program to parse the arrangement and encryption process to obtain login information.
  • the user name and user password are acquired by calling the interface of the cloud host, and the acquired user name and user password are arranged and encrypted, and the arranged encryption processing is analyzed by the noVNC program to obtain login information; Obtain the login information corresponding to the cloud host console through the preset noVNC program; the login information and the cloud host console are the only corresponding user name and user password, so that the user does not need to obtain login related information and submit it automatically , It reduces the complexity of users' use, and is compatible with the access of various hybrid cloud management platforms, and can avoid the installation of plug-ins, and protect the login related information.
  • FIG. 6 there is shown a flow chart of the sixth embodiment of a method for accessing a cloud host console according to the present application.
  • the method is specifically to obtain an accessible URL according to the login information to log in to the cloud host console. It can include the following steps:
  • Step S301 generating an accessible URL by filling the login information
  • Step S302 Return the accessible URL to the cloud host console, and log in to the cloud host console.
  • the accessible URL is generated by filling in the login information, the accessible URL is returned to the cloud host console, and the cloud host console is logged in;
  • the only corresponding port and password are filled in as an accessible URL, and the noVNC program is used to parse and extract it, which can effectively avoid the leakage of login information. Users can log in without knowing the login information, and log in to according to the accessible URL. Cloud host console.
  • Embodiment 1 of a method for accessing a cloud host console which may specifically include the following modules:
  • the preset module 1001 is used to connect the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
  • the obtaining module 1002 is configured to obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
  • the login module 1003 is configured to obtain an accessible URL to log in to the cloud host console according to the login information.
  • the preset module 1001 is used to connect the cloud host console to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the cloud host console Login information, including:
  • the access unit is used to access the cloud host console through the hybrid cloud management platform;
  • the access subunit is used to connect the cloud host console to the preset noVNC program.
  • the preset module 1001 is used to connect the cloud host console to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the cloud host console Login information, including:
  • a forwarding unit for forwarding the cloud host console to the virtual machine
  • the noVNC program unit is used to access the preset noVNC program in the virtual machine.
  • the preset module 1001 is used to connect the cloud host console to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the cloud host console Login information, the setting method of the preset noVNC program, including:
  • Compilation unit used to compile noVNC programs through Python
  • the first generating unit is used to generate a jar file from the compiled noVNC program
  • the upload unit is used to upload the jar file to the deployment server
  • the configuration unit is used to configure environment variables after decompressing the jar file in the deployment server;
  • the starting unit is used to start the configuration environment variable through a preset command to obtain a preset noVNC program.
  • the obtaining module 1002 is configured to obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console, including:
  • the encryption unit is used to arrange and encrypt the obtained user name and user password
  • the parsing unit is configured to use the noVNC program to parse the arrangement and encryption process to obtain login information.
  • the login module 1003 configured to obtain an accessible URL to log in to the cloud host console according to the login information, includes:
  • the second generating unit is configured to generate an accessible URL by filling the login information
  • the login unit is configured to return the accessible URL to the cloud host console and log in to the cloud host console.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • the embodiments of the present application also provide a computer device.
  • the above-mentioned computer device is represented in the form of a general-purpose computing device.
  • the components of the computer device may include, but are not limited to: one or more processors or processing units, system memory, and connection with different system components ( Including system memory and processing unit) bus.
  • Computer equipment typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer equipment, including volatile and non-volatile media, removable and non-removable media.
  • the system memory may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and/or cache memory.
  • the computer equipment may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
  • storage systems can be used to read and write non-removable, non-volatile magnetic media (often referred to as "hard drives”).
  • each drive can be connected to the bus through one or more data media interfaces.
  • the memory may include at least one program product, and the program product has a set of (for example, at least one) program modules, and these program modules are configured to perform the functions of the embodiments of the present application.
  • a program/utility tool having a set of (at least one) program modules can be stored in, for example, a memory.
  • Such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data Each of these examples or some combination may include the implementation of a network environment.
  • the program module usually executes the functions and/or methods in the embodiments described in this application.
  • the computer device can also communicate with one or more external devices (such as keyboards, pointing devices, displays, cameras, etc.), and can also communicate with one or more devices that enable users to interact with the computer device, and/or communicate with
  • a computer device can communicate with any device (such as a network card, modem, etc.) that can communicate with one or more other computing devices. This communication can be carried out through an input/output (I/O) interface.
  • the computer device may also communicate with one or more networks (such as a local area network (LAN)), a wide area network (WAN), and/or a public network (such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the computer equipment through the bus.
  • LAN local area network
  • WAN wide area network
  • a public network such as the Internet
  • the processing unit executes various functional applications and data processing by running programs stored in the system memory, for example, to implement the method for accessing the cloud host console provided in the embodiments of the present application.
  • the cloud host console accesses the noVNC program; the noVNC program is a preset noVNC program; obtains the corresponding login information through the preset noVNC program; logs the obtained The information is submitted and the accessible URL is obtained; and the cloud host console is logged in according to the accessible URL.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium includes volatile and non-volatile media, on which a computer program is stored.
  • the program is executed by a processor, the A method for accessing the cloud host console in the application embodiment.
  • the embodiments of this application include the following advantages: in order to provide users with a unified cloud host console login method and a unified interface in the hybrid cloud management platform, and give users a better user experience, the cloud host console is accessed in this application
  • the preset noVNC program wherein the preset noVNC program is to obtain the login information of the cloud host console; the corresponding login information is obtained through the preset noVNC program, wherein the login information is related to the cloud host console
  • the port and password corresponding to the host console obtain the accessible URL according to the login information to log in to the cloud host console; users do not need to obtain the port and password of the cloud host VNC by themselves, the program will automatically obtain and submit, reducing users
  • the complexity of using the cloud host console does not expose any underlying information to users, which improves security protection; when the cloud management platform manages various virtual machines and its management platform, there is no need to consider the issue of cloud host login and no additional
  • the development of reduces the complexity of management; independent deployment of the modified noVNC program,
  • the embodiments of the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment
  • the instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the present application provide a method, apparatus, and device for accessing a cloud host console, and a storage medium. The method comprises: connecting a cloud host console into a pre-set noVNC program, wherein the pre-set noVNC program is used for obtaining and parsing the login information of the cloud host console; obtaining, by means of the pre-set noVNC program, the corresponding login information, wherein the login information is the password and port corresponding to the cloud host console; obtaining, according to the login information, an accessible URL to log in the cloud host console. The provision of a uniform entry and interface on a hybrid cloud management platform for user to use enables the user to log in a cloud host console without having to acquiring a VNC password or the implementation principles thereof, making it easy and simple. In addition, a hybrid cloud management platform can manage other cloud environments and virtualization by means of direct plugin without additional development. The present invention can be independently deployed, such that the cloud host console can be logged in normally even when the hybrid cloud management platform cannot be logged in.

Description

一种访问云主机控制台方法、装置、设备及存储介质Method, device, equipment and storage medium for accessing cloud host console
本申请要求于2020年06月08日提交中国专利局、申请号为CN202010513476.0、名称为“一种访问云主机控制台方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application filed with the Chinese Patent Office with the application number CN202010513476.0 and titled "A method, device, equipment and storage medium for accessing a cloud host console" on June 8, 2020. The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及智慧城市大数据管理中数据云管理技术领域,特别是涉及一种访问云主机控制台方法、装置、设备及存储介质。This application relates to the technical field of data cloud management in smart city big data management, and in particular to a method, device, equipment and storage medium for accessing a cloud host console.
背景技术Background technique
混合云是公有云和私有云两种服务方式的结合;由于安全和控制原因,并非所有的企业信息都能放置在公有云上,这样大部分已经应用云计算的企业将会使用混合云模式。很多将选择同时使用公有云和私有云,有一些也会同时建立公众云;因为公有云只会向用户使用的资源收费,所以集中云将会变成处理需求高峰的一个非常便宜的方式;比如对一些零售商来说,他们的操作需求会随着假日的到来而剧增,或者是有些业务会有季节性的上扬。同时混合云也为其他目的的弹性需求提供了一个很好的基础,比如,灾难恢复;这意味着私有云把公有云作为灾难转移的平台,并在需要的时候去使用它;这是一个极具成本效应的理念;另一个好的理念是,使用公有云作为一个选择性的平台,同时选择其他的公有云作为灾难转移平台。Hybrid cloud is a combination of public cloud and private cloud services; due to security and control reasons, not all corporate information can be placed on the public cloud, so most companies that have already applied cloud computing will use the hybrid cloud model. Many will choose to use both public and private clouds at the same time, and some will also establish public clouds at the same time; because public clouds will only charge users for resources used, centralized clouds will become a very cheap way to handle peak demand; for example; For some retailers, their operational needs will increase sharply with the advent of the holidays, or some businesses will increase seasonally. At the same time, hybrid cloud also provides a good foundation for elastic demand for other purposes, such as disaster recovery; this means that private clouds use the public cloud as a disaster transfer platform and use it when needed; this is an extreme A cost-effective concept; another good concept is to use public clouds as an alternative platform, while choosing other public clouds as disaster mitigation platforms.
混合云融合了公有云和私有云,通过利用私有云的安全,将内部重要数据保存在本地数据中心;同时也可以使用公有云的计算资源,更高效快捷地完成工作,相比私有云或是公有云都更完善;混合云突破了私有云的硬件限制,利用公有云的可扩展性,可以随时获取更高的计算能力。企业通过把非机密功能移动到公有云区域,可以降低对内部私有云的压力和需求;混合云可以有效地降低成本。它既可以使用公有云又可以使用私有云,企业可以将应用程序和数据放在最适合的平台上,获得最佳的利益组合。Hybrid cloud integrates public cloud and private cloud. By using the security of private cloud, important internal data is stored in the local data center. At the same time, it can also use the computing resources of public cloud to complete work more efficiently and quickly. Compared with private cloud or Public clouds are more complete; hybrid clouds break through the hardware limitations of private clouds, and use the scalability of public clouds to obtain higher computing power at any time. Enterprises can reduce the pressure and demand on internal private clouds by moving non-confidential functions to public cloud areas; hybrid clouds can effectively reduce costs. It can use both public cloud and private cloud. Enterprises can put applications and data on the most suitable platform to obtain the best combination of benefits.
技术问题technical problem
发明人意识到,通过混合云形成的云管平台需要通过安装插件,安装插件后登录云管平台,登录云管平台需要用户密码,而由于混合云下有多种云管平台,云管平台之间相应的机制的不同,不能实现统一进行访问,仍需要获取用户信息以及用户密码,没有能够实现统一的访问云管平台的方式;且对于不同的云管平台,其想要实现对不同的云管平台进行纳管,所要耗费较大的资源进行纳管。The inventor realized that the cloud management platform formed by the hybrid cloud requires the installation of plug-ins. After the plug-in is installed, log in to the cloud management platform, and the user password is required to log in to the cloud management platform. Since there are multiple cloud management platforms under the hybrid cloud, one of the cloud management platforms The corresponding mechanisms between different cloud management platforms cannot be achieved uniformly. User information and user passwords are still required to be obtained. There is no way to achieve a unified access to the cloud management platform; and for different cloud management platforms, it wants to achieve access to different clouds The management platform requires a large amount of resources to be managed.
技术解决方案Technical solutions
本申请实施例公开了一种访问云主机控制台方法,所述方法包括:The embodiment of the application discloses a method for accessing a cloud host console, the method includes:
将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
根据所述登录信息获取可访问的URL登录所述云主机控制台。Obtain an accessible URL according to the login information to log in to the cloud host console.
本申请实施例还公开了一种访问云主机控制台装置,所述装置包括:The embodiment of the application also discloses a device for accessing a cloud host console, the device including:
预设置模块,用于将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;A preset module, which is used to connect the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
获取模块,用于通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;An obtaining module, configured to obtain corresponding login information through the preset noVNC program, where the login information is a port and a password corresponding to the cloud host console;
登录模块,用于根据所述登录信息获取可访问的URL登录所述云主机控制台。The login module is used to obtain an accessible URL to log in to the cloud host console according to the login information.
本申请实施例还公开了一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,上述处理器执行上述程序时实现以下步骤:The embodiment of the present application also discloses a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The processor implements the following steps when executing the program:
将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
根据所述登录信息获取可访问的URL登录所述云主机控制台。Obtain an accessible URL according to the login information to log in to the cloud host console.
本申请实施例还公开了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时,实现以下步骤:The embodiment of the application also discloses a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
根据所述登录信息获取可访问的URL登录所述云主机控制台。Obtain an accessible URL according to the login information to log in to the cloud host console.
附图说明Description of the drawings
图1是本申请一种访问云主机控制台方法实施例一的步骤流程图;Fig. 1 is a flow chart of the first embodiment of a method for accessing a cloud host console according to the present application;
图2是本申请一种访问云主机控制台方法实施例二的步骤流程图;FIG. 2 is a flowchart of the second embodiment of a method for accessing a cloud host console according to the present application;
图3是本申请一种访问云主机控制台方法实施例三的步骤流程图;FIG. 3 is a flowchart of the steps of Embodiment 3 of a method for accessing a cloud host console according to the present application;
图4是本申请一种访问云主机控制台方法实施例四的步骤流程图;4 is a flowchart of the steps of Embodiment 4 of a method for accessing a cloud host console according to the present application;
图5是本申请一种访问云主机控制台方法实施例五的步骤流程图;FIG. 5 is a flowchart of the steps of Embodiment 5 of a method for accessing a cloud host console according to the present application;
图6是本申请一种访问云主机控制台方法实施例六的步骤流程图;FIG. 6 is a flowchart of the steps of Embodiment 6 of a method for accessing a cloud host console according to the present application;
图7是本申请一种访问云主机控制台装置实施例一的结构框图。FIG. 7 is a structural block diagram of Embodiment 1 of a device for accessing a cloud host console according to the present application.
本发明的实施方式Embodiments of the present invention
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the above objectives, features, and advantages of the application more obvious and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific implementations.
参照图1,示出了本申请的一种访问云主机控制台方法实施例一的步骤流程图,具体可以包括如下步骤:Referring to Fig. 1, there is shown a step flow chart of Embodiment 1 of a method for accessing a cloud host console according to the present application, which may specifically include the following steps:
步骤S10,将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Step S10, connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
步骤S20,通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Step S20: Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
步骤S30,根据所述登录信息获取可访问的URL登录所述云主机控制台。Step S30: Obtain an accessible URL according to the login information to log in to the cloud host console.
通过将云主机控制台接入至noVNC程序,所述noVNC程序译为在VNC领域用于远程管理桌面工具,目的在于通过浏览器远程访问Windows桌面,其中noVNC程序为预设置好的noVNC程序,根据预设置的noVNC程序获取和解析其云主机控制台的登录信息,通过各个云主机控制台的接口获取vnc的端口和密码;当用户发起登录云主机控制台请求后,noVNC程序会先去调用云主机的接口获取到VNC的密码和端口,然后进行编排加密组合后形成一个可访问的URL,浏览器访问这个URL,noVNC程序获取到这个可访问的URL后,其解析这个可访问的URL,通过可访问的URL登录并访问云主机控制台。By connecting the cloud host console to the noVNC program, the noVNC program is translated into a remote management desktop tool in the VNC field, with the purpose of remotely accessing the Windows desktop through a browser. The noVNC program is a pre-set noVNC program. The preset noVNC program obtains and parses the login information of its cloud host console, and obtains the vnc port and password through the interface of each cloud host console; when the user initiates a request to log in to the cloud host console, the noVNC program will call the cloud first The host's interface obtains the VNC password and port, and then arranges and encrypts the combination to form an accessible URL. The browser accesses the URL. After the noVNC program obtains the accessible URL, it parses the accessible URL and passes Log in to the accessible URL and access the cloud host console.
在本申请实施例中通过在部署改造后的noVNC程序,改造前不同的云厂商都是使用自己的控制台,比如cloudtsack的控制台界面清晰度低,并且界面很卡;fuisonCompute用的是自开发的VNC控制台;vmware云厂商也是如此;改造后利用统一的VNC做登录,可以屏蔽各个云厂商控制台登录的差异性;用户根据改造后的noVNC程序在访问控制台时,通过改进后的noVNC程序实现自动登录,将获取到云主机的VNC的用户名以及用户密码,通过noVNC程序将获取到的用户名和密码自动填写生成可访问的URL,改进后的noVNC程序对可访问的URL进行解析,将解析获得用户名和用户密码,用于登录到云主机控制台。In the embodiment of this application, by deploying the modified noVNC program, different cloud vendors used their own consoles before the modification. For example, cloudtsack's console interface is low in definition and the interface is very card; fuisonCompute uses self-developed The same is true for vmware cloud vendors; after the transformation, the unified VNC is used to log in, which can shield the differences in the console login of each cloud vendor; when accessing the console according to the modified noVNC program, the user passes the improved noVNC The program realizes automatic login. It will obtain the VNC user name and user password of the cloud host. The user name and password are automatically filled in through the noVNC program to generate an accessible URL. The improved noVNC program parses the accessible URL. The user name and user password will be parsed and used to log in to the cloud host console.
本申请实施例包括以下优点:为了给用户在混合云管平台中提供统一的云主机控制台登录方式和统一的界面,给用户更好的使用体验,在本申请中将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序为获取所述云主机控制台的登录信息;通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;根据所述登录信息获取可访问的URL登录所述云主机控制台;用户不需要自己获取云主机VNC的端口和密码,程序会自动获取并提交,降低用户使用云主机控制台的复杂度,不会暴露任何底层信息给用户,提高了安全防护;云管平台纳管各种虚拟机以及其管理平台时,不需要考虑云主机登录的问题,不需要额外的开发,降低了纳管的复杂度;独立部署的改造后的noVNC程序,当混合云管平台不可用的时候,用户仍然可以登录云主机控制提高用户登录云主机控制台的高可用性。The embodiments of this application include the following advantages: in order to provide users with a unified cloud host console login method and a unified interface in the hybrid cloud management platform, and give users a better user experience, the cloud host console is accessed in this application The preset noVNC program, wherein the preset noVNC program is to obtain the login information of the cloud host console; the corresponding login information is obtained through the preset noVNC program, wherein the login information is related to the cloud host console The port and password corresponding to the host console; obtain the accessible URL according to the login information to log in to the cloud host console; users do not need to obtain the port and password of the cloud host VNC by themselves, the program will automatically obtain and submit, reducing users The complexity of using the cloud host console does not expose any underlying information to users, which improves security protection; when the cloud management platform manages various virtual machines and its management platform, there is no need to consider the issue of cloud host login and no additional The development of, reduces the complexity of management; independent deployment of the modified noVNC program, when the hybrid cloud management platform is unavailable, users can still log in to the cloud host to control the high availability of users to log in to the cloud host console.
参照图2,示出了本申请的一种访问云主机控制台方法实施例二的步骤流程图,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息前,所述方法具体可以包括如下步骤:2, there is shown a step flow chart of the second embodiment of a method for accessing a cloud host console according to the present application. The cloud host console is connected to a preset noVNC program, wherein the preset noVNC program Before being used to obtain and parse the login information of the cloud host console, the method may specifically include the following steps:
步骤S101,通过混合云管平台访问云主机控制台;Step S101, access the cloud host console through the hybrid cloud management platform;
步骤S102,将所述云主机控制台接入所述预设置的noVNC程序。Step S102: Connect the cloud host console to the preset noVNC program.
在本申请实施例中,先通过混合云管平台访问云主机控制台,再将所要访问的云主机控制台接入至noVNC程序中,其中,混合云管平台可实现将公有云以及私有云放在一起管理,而目前主流的公有云厂商主要有:阿里云、腾讯云、华为云、UCloud、京东云、百度云以及国外的AWS、Azure、Google云等;而一般私有云无非就是OpenStack(开源),或者VMWare(收费);而混合云管平台就是把上述厂商的云计算资源能够放在一起平台中统一管理。In the embodiment of this application, the cloud host console is first accessed through the hybrid cloud management platform, and then the cloud host console to be accessed is connected to the noVNC program. Among them, the hybrid cloud management platform can realize the deployment of public and private clouds. Manage together, and the current mainstream public cloud vendors mainly include: Alibaba Cloud, Tencent Cloud, Huawei Cloud, UCloud, JD Cloud, Baidu Cloud, and foreign AWS, Azure, Google Cloud, etc.; and the general private cloud is nothing more than OpenStack (open source ), or VMWare (for a fee); and the hybrid cloud management platform is to put the cloud computing resources of the above-mentioned vendors together in the platform for unified management.
在本申请实施例中通过混合云管平台访问云主机控制台,再将云主机控制台接入至noVNC程序中,能够满足各种类型的混合云管平台避免因其机制的不同,所导致的不能实现统一访问的问题,实现即便在多种混合云管平台下依然能有效地实现进行统一访问。In the embodiment of this application, the cloud host console is accessed through the hybrid cloud management platform, and then the cloud host console is connected to the noVNC program, which can meet the requirements of various types of hybrid cloud management platforms to avoid the problems caused by different mechanisms. The problem of not being able to achieve unified access is that even under multiple hybrid cloud management platforms, unified access can still be effectively achieved.
参照图3,示出了本申请的一种访问云主机控制台方法实施例三的步骤流程图,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,所述方法具体可以包括如下步骤:3, there is shown a step flow chart of the third embodiment of a method for accessing a cloud host console according to the present application. The cloud host console is connected to a preset noVNC program, wherein the preset noVNC program For obtaining and parsing the login information of the cloud host console, the method may specifically include the following steps:
步骤S103,将所述云主机控制台转发至虚拟机内;Step S103, forward the cloud host console to the virtual machine;
步骤S104,在所述虚拟机内接入所述预设置的noVNC程序。Step S104, access the preset noVNC program in the virtual machine.
在本申请实施例中,通过将云主机控制台转发至虚拟机内,在虚拟机内将其云主机控制台接入至noVNC程序,即可以通过混合云管平台访问至云主机控制台,将要访问云主机控制台进行转发,并接入至预设好的虚拟机内的noVNC程序,可使得混合云管平台将云主机控制台接入至预设好的noVNC程序,通过noVNC程序实现解析以及自动获取用户信息中的用户名以及用户密码,将用户名以及用户密码用于登录云主机控制台,可以使得用户无需耗费时间获取云主机控制台的用户名以及用户密码,即无需获取用户信息,用户便可直接登录,提高了用户的使用体验。In the embodiment of this application, by forwarding the cloud host console to the virtual machine, and connecting its cloud host console to the noVNC program in the virtual machine, the cloud host console can be accessed through the hybrid cloud management platform. Access the cloud host console for forwarding, and access to the noVNC program in the preset virtual machine, so that the hybrid cloud management platform can connect the cloud host console to the preset noVNC program, and realize the analysis through the noVNC program. Automatically obtain the user name and user password in the user information, and use the user name and user password to log in to the cloud host console, so that users do not need to spend time to obtain the user name and user password of the cloud host console, that is, there is no need to obtain user information. The user can log in directly, which improves the user experience.
参照图4,示出了本申请的一种访问云主机控制台方法实施例四的步骤流程图,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,所述预设置的noVNC程序的设置方法,所述方法具体可以包括如下步骤:4, there is shown a step flow chart of the fourth embodiment of a method for accessing a cloud host console according to the present application. The cloud host console is connected to a preset noVNC program, wherein the preset noVNC program The method for obtaining and parsing the login information of the cloud host console, and the setting method of the preset noVNC program, the method may specifically include the following steps:
步骤S105,通过Python编译noVNC程序;Step S105, compile the noVNC program through Python;
步骤S106,将所述编译后的noVNC程序生成jar文件;Step S106, generating a jar file from the compiled noVNC program;
步骤S107,将所述jar文件上传至部署服务器内;Step S107, upload the jar file to the deployment server;
步骤S108,在所述部署服务器内解压所述jar文件后,并配置环境变量;Step S108, after decompressing the jar file in the deployment server, and configuring environment variables;
步骤S109,所述配置环境变量通过预设命令启动,得到预设置的noVNC程序;Step S109, the configuration environment variable is started by a preset command, and a preset noVNC program is obtained;
在本申请实施例中,通过Python对noVNC程序进行编译,其中Python译为计算机程序设计语言,是一种跨平台的计算机程序设计语言;是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言;最初被设计用于编写自动化脚本(shell),随着版本的不断更新和语言新功能的添加,越多被用于独立的、大型项目的开发;根据编译后的noVNC程序生成jar文件;再将jar文件上传到部署服务器内,部署服务器对jar文件进行解压,根据解压所得配置环境变量,根据配置所得环境变量通过命令进行启动,启动得到预设的noVNC程序;通过预先设置好的noVNC程序对其需要接入的云主机控制台,获取相对应的登录信息,无需用户自行获取登录信息,通过预先设置好的noVNC程序自动获取并提交,通过获取到云主机的VNC的用户名以及密码,然后程序将获取到的用户名和密码自动填写生成可访问的URL中,将可访问的URL通过预先设置好的noVNC程序进行解析得用于登录云主机控制台的登录信息;通过预设置的noVNC程序可以获取登录信息,并可使得接入的混合云管平台进行纳管,可实现以统一方式对不同的混合云管平台进行访问。In the embodiments of this application, the noVNC program is compiled through Python, where Python is translated into a computer programming language, which is a cross-platform computer programming language; it is a high-level combination of interpretability, compiling, and interactivity. And object-oriented scripting language; originally designed for writing automated scripts (shell), with the continuous update of the version and the addition of new language features, the more it is used for the development of independent and large-scale projects; according to the compiled noVNC The program generates a jar file; then upload the jar file to the deployment server, the deployment server decompresses the jar file, configures the environment variables obtained from the decompression, and starts the command according to the environment variables obtained from the configuration, and starts the preset noVNC program; The set noVNC program obtains the corresponding login information for the cloud host console that needs to be accessed, without the user obtaining the login information by himself, and automatically obtains and submits it through the pre-set noVNC program, and obtains the VNC of the cloud host User name and password, and then the program automatically fills in the obtained user name and password to generate an accessible URL, and the accessible URL is parsed through the preset noVNC program to obtain the login information for logging in to the cloud host console; The pre-set noVNC program can obtain login information and enable the connected hybrid cloud management platform to be managed, enabling access to different hybrid cloud management platforms in a unified manner.
参照图5,示出了本申请的一种访问云主机控制台方法实施例五的步骤流程图,所述通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码,所述方法具体可以包括如下步骤:Referring to Figure 5, there is shown a step flow chart of Embodiment 5 of a method for accessing a cloud host console according to the present application. The corresponding login information is obtained through the preset noVNC program, wherein the login information is the same as that of the For the port and password corresponding to the cloud host console, the method may specifically include the following steps:
步骤S201,通过调用云主机的接口获取用户名以及用户密码;Step S201: Obtain the user name and user password by calling the interface of the cloud host;
步骤S202,对所述获取用户名以及用户密码进行编排加密处理;Step S202: Perform editing and encryption processing on the acquired user name and user password;
步骤S203,将所述编排加密处理采用noVNC程序进行解析获取登录信息。Step S203: Use noVNC program to parse the arrangement and encryption process to obtain login information.
在本申请实施例中,先通过调用云主机的接口获取用户名以及用户密码,对所述获取用户名以及用户密码进行编排加密处理,将所述编排加密处理采用noVNC程序进行解析获取登录信息;通过在预设置后的noVNC程序获取接入云主机控制台相对应的登录信息;登录信息与云主机控制台为唯一对应的用户名以及用户密码,使得用户无需获取登录的相关信息,并自动提交,降低了用户使用的复杂程度,并可兼容各种混合云管平台的访问,且能够免除安装插件,并对登录的相关信息进行保护。In the embodiment of the present application, the user name and user password are acquired by calling the interface of the cloud host, and the acquired user name and user password are arranged and encrypted, and the arranged encryption processing is analyzed by the noVNC program to obtain login information; Obtain the login information corresponding to the cloud host console through the preset noVNC program; the login information and the cloud host console are the only corresponding user name and user password, so that the user does not need to obtain login related information and submit it automatically , It reduces the complexity of users' use, and is compatible with the access of various hybrid cloud management platforms, and can avoid the installation of plug-ins, and protect the login related information.
参照图6,示出了本申请的一种访问云主机控制台方法实施例六的步骤流程图,所述根据所述登录信息获取可访问的URL登录所述云主机控制台,所述方法具体可以包括如下步骤:Referring to FIG. 6, there is shown a flow chart of the sixth embodiment of a method for accessing a cloud host console according to the present application. The method is specifically to obtain an accessible URL according to the login information to log in to the cloud host console. It can include the following steps:
步骤S301,通过将所述登录信息填充生成可访问的URL;Step S301, generating an accessible URL by filling the login information;
步骤S302,将所述可访问的URL返回到所述云主机控制台,且登录所述云主机控制台。Step S302: Return the accessible URL to the cloud host console, and log in to the cloud host console.
在本申请实施例中,通过将所述登录信息填充生成可访问的URL,将所述可访问的URL返回到所述云主机控制台,且登录所述云主机控制台;通过将获取所得的唯一对应的端口以及密码填写为可访问的URL,通过noVNC程序进行解析和提取,能够有效地避免了登录信息泄露,用户无需知道登录信息,即可进行登录,根据可访问的URL即可登录至云主机控制台。In the embodiment of the present application, the accessible URL is generated by filling in the login information, the accessible URL is returned to the cloud host console, and the cloud host console is logged in; The only corresponding port and password are filled in as an accessible URL, and the noVNC program is used to parse and extract it, which can effectively avoid the leakage of login information. Users can log in without knowing the login information, and log in to according to the accessible URL. Cloud host console.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the described sequence of actions, because According to the embodiments of the present application, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
参照图7,示出了本申请的一种访问云主机控制台方法实施例一的结构框图,具体可以包括如下模块:Referring to FIG. 7, there is shown a structural block diagram of Embodiment 1 of a method for accessing a cloud host console according to the present application, which may specifically include the following modules:
预设置模块1001,用于将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;The preset module 1001 is used to connect the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
获取模块1002,用于通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;The obtaining module 1002 is configured to obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
登录模块1003,用于根据所述登录信息获取可访问的URL登录所述云主机控制台。The login module 1003 is configured to obtain an accessible URL to log in to the cloud host console according to the login information.
在一优选实施例中,所述预设置模块1001,用于将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,包括:In a preferred embodiment, the preset module 1001 is used to connect the cloud host console to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the cloud host console Login information, including:
访问单元,用于通过混合云管平台访问云主机控制台;The access unit is used to access the cloud host console through the hybrid cloud management platform;
接入子单元,用于将所述云主机控制台接入所述预设置的noVNC程序。The access subunit is used to connect the cloud host console to the preset noVNC program.
在一优选实施例中,所述预设置模块1001,用于将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,包括:In a preferred embodiment, the preset module 1001 is used to connect the cloud host console to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the cloud host console Login information, including:
转发单元,用于将所述云主机控制台转发至虚拟机内;A forwarding unit for forwarding the cloud host console to the virtual machine;
noVNC程序单元,用于在所述虚拟机内接入预设置的noVNC程序。The noVNC program unit is used to access the preset noVNC program in the virtual machine.
在一优选实施例中,所述预设置模块1001,用于将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,所述预设置的noVNC程序的设置方法,包括:In a preferred embodiment, the preset module 1001 is used to connect the cloud host console to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the cloud host console Login information, the setting method of the preset noVNC program, including:
编译单元,用于通过Python编译noVNC程序;Compilation unit, used to compile noVNC programs through Python;
第一生成单元,用于将所述编译后的noVNC程序生成jar文件;The first generating unit is used to generate a jar file from the compiled noVNC program;
上传单元,用于将所述jar文件上传至部署服务器内;The upload unit is used to upload the jar file to the deployment server;
配置单元,用于在所述部署服务器内解压所述jar文件后,并配置环境变量;The configuration unit is used to configure environment variables after decompressing the jar file in the deployment server;
启动单元,用于所述配置环境变量通过预设命令启动,得到预设置的noVNC程序。The starting unit is used to start the configuration environment variable through a preset command to obtain a preset noVNC program.
在一优选实施例中,所述获取模块1002,用于通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码,包括:In a preferred embodiment, the obtaining module 1002 is configured to obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console, including:
获取子单元,通过调用云主机的接口获取用户名以及用户密码;Obtain the subunit, obtain the user name and user password by calling the interface of the cloud host;
加密单元,用于对所述获取用户名以及用户密码进行编排加密处理;The encryption unit is used to arrange and encrypt the obtained user name and user password;
解析单元,用于将所述编排加密处理采用noVNC程序进行解析获取登录信息。The parsing unit is configured to use the noVNC program to parse the arrangement and encryption process to obtain login information.
在一优选实施例中,所述登录模块1003,用于根据所述登录信息获取可访问的URL登录所述云主机控制台,包括:In a preferred embodiment, the login module 1003, configured to obtain an accessible URL to log in to the cloud host console according to the login information, includes:
第二生成单元,用于通过将所述登录信息填充生成可访问的URL;The second generating unit is configured to generate an accessible URL by filling the login information;
登录单元,用于将所述可访问的URL返回到所述云主机控制台,且登录所述云主机控制台。The login unit is configured to return the accessible URL to the cloud host console and log in to the cloud host console.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本申请实施例还提供一种计算机设备,上述计算机设备以通用计算设备的形式表现,计算机设备的组件可以包括但不限于:一个或者多个处理器或者处理单元,***存储器,连接不同***组件(包括***存储器和处理单元)的总线。The embodiments of the present application also provide a computer device. The above-mentioned computer device is represented in the form of a general-purpose computing device. The components of the computer device may include, but are not limited to: one or more processors or processing units, system memory, and connection with different system components ( Including system memory and processing unit) bus.
计算机设备典型地包括多种计算机***可读介质。这些介质可以是任何能够被计算机设备访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer equipment typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer equipment, including volatile and non-volatile media, removable and non-removable media.
***存储器可以包括易失性存储器形式的计算机***可读介质,例如随机存取存储器(RAM)和/或高速缓存存储器。计算机设备可以进一步包括其他移动/不可移动的、易失性/非易失性计算机体统存储介质。仅作为举例,存储***可以用于读写不可移动的、非易失性磁介质(通常称为“硬盘驱动器”)。可以提供用于对可移动非易失性磁盘(如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD~ROM,DVD~ROM或者其他光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线相连。存储器可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。The system memory may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and/or cache memory. The computer equipment may further include other removable/non-removable, volatile/nonvolatile computer system storage media. For example only, storage systems can be used to read and write non-removable, non-volatile magnetic media (often referred to as "hard drives"). Can provide disk drives for reading and writing to removable non-volatile disks (such as "floppy disks"), and for reading and writing to removable non-volatile optical disks (such as CD~ROM, DVD~ROM or other optical media) Optical drive. In these cases, each drive can be connected to the bus through one or more data media interfaces. The memory may include at least one program product, and the program product has a set of (for example, at least one) program modules, and these program modules are configured to perform the functions of the embodiments of the present application.
具有一组(至少一个)程序模块的程序/实用工具,可以存储在例如存储器中,这样的程序模块包括——但不限于——操作***、一个或者多个应用程序、其他程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块通常执行本申请所描述的实施例中的功能和/或方法。A program/utility tool having a set of (at least one) program modules can be stored in, for example, a memory. Such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data Each of these examples or some combination may include the implementation of a network environment. The program module usually executes the functions and/or methods in the embodiments described in this application.
计算机设备也可以与一个或多个外部设备(例如键盘、指向设备、显示器、摄像头等)通信,还可与一个或者多个使得用户能与该计算机设备交互的设备通信,和/或与使得该计算机设备能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口进行。并且,计算机设备还可以通过网络适配器与一个或者多个网络(例如局域网(LAN)),广域网(WAN)和/或公共网络(例如因特网)通信。如图所示,网络适配器通过总线与计算机设备的其他模块通信。应当明白,可以结合计算机设备使用其他硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID***、磁带驱动器以及数据备份存储***等。The computer device can also communicate with one or more external devices (such as keyboards, pointing devices, displays, cameras, etc.), and can also communicate with one or more devices that enable users to interact with the computer device, and/or communicate with A computer device can communicate with any device (such as a network card, modem, etc.) that can communicate with one or more other computing devices. This communication can be carried out through an input/output (I/O) interface. In addition, the computer device may also communicate with one or more networks (such as a local area network (LAN)), a wide area network (WAN), and/or a public network (such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the computer equipment through the bus. It should be understood that other hardware and/or software modules can be used in conjunction with computer equipment, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
处理单元通过运行存储在***存储器中的程序,从而执行各种功能应用以及数据处理,例如实现本申请实施例所提供的访问云主机控制台方法。The processing unit executes various functional applications and data processing by running programs stored in the system memory, for example, to implement the method for accessing the cloud host console provided in the embodiments of the present application.
即上述处理单元执行上述程序时实现:所述云主机控制台接入noVNC程序;所述noVNC程序为预设置的noVNC程序;通过所述预设置的noVNC程序获取相应登录信息;将所述获取登录信息提交,获取可访问的URL;根据所述可访问的URL登录所述云主机控制台。That is, when the above processing unit executes the above program, it is realized: the cloud host console accesses the noVNC program; the noVNC program is a preset noVNC program; obtains the corresponding login information through the preset noVNC program; logs the obtained The information is submitted and the accessible URL is obtained; and the cloud host console is logged in according to the accessible URL.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质包括易失性和非易失性介质,其上存储有计算机程序,所述程序被处理器执行时,执行如本申请实施例中的一种访问云主机控制台方法。The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium includes volatile and non-volatile media, on which a computer program is stored. When the program is executed by a processor, the A method for accessing the cloud host console in the application embodiment.
本申请实施例包括以下优点:为了给用户在混合云管平台中提供统一的云主机控制台登录方式和统一的界面,给用户更好的使用体验,在本申请中将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序为获取所述云主机控制台的登录信息;通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;根据所述登录信息获取可访问的URL登录所述云主机控制台;用户不需要自己获取云主机VNC的端口和密码,程序会自动获取并提交,降低用户使用云主机控制台的复杂度,不会暴露任何底层信息给用户,提高了安全防护;云管平台纳管各种虚拟机以及其管理平台时,不需要考虑云主机登录的问题,不需要额外的开发,降低了纳管的复杂度;独立部署的改造后的noVNC程序,当混合云管平台不可用的时候,用户仍然可以登录云主机控制提高用户登录云主机控制台的高可用性。The embodiments of this application include the following advantages: in order to provide users with a unified cloud host console login method and a unified interface in the hybrid cloud management platform, and give users a better user experience, the cloud host console is accessed in this application The preset noVNC program, wherein the preset noVNC program is to obtain the login information of the cloud host console; the corresponding login information is obtained through the preset noVNC program, wherein the login information is related to the cloud host console The port and password corresponding to the host console; obtain the accessible URL according to the login information to log in to the cloud host console; users do not need to obtain the port and password of the cloud host VNC by themselves, the program will automatically obtain and submit, reducing users The complexity of using the cloud host console does not expose any underlying information to users, which improves security protection; when the cloud management platform manages various virtual machines and its management platform, there is no need to consider the issue of cloud host login and no additional The development of, reduces the complexity of management; independent deployment of the modified noVNC program, when the hybrid cloud management platform is unavailable, users can still log in to the cloud host to control the high availability of users to log in to the cloud host console.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请实施例是参照根据本申请实施例的方法、终端设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of this application are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing terminal equipment to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing terminal equipment Produce means for realizing the functions specified in one flow or multiple flows in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. Or there is any such actual relationship or sequence between operations. Moreover, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements not only includes those elements, but also includes those elements that are not explicitly listed. Other elements listed, or also include elements inherent to this process, method, article, or terminal device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or terminal device that includes the element.
以上对本申请所提供的一种访问云主机控制台方法、装置、设备及存储介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above provides a detailed introduction to the method, device, device, and storage medium for accessing the cloud host console provided by this application. Specific examples are used in this article to illustrate the principles and implementation of this application. The description of the above embodiments It is only used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary, The content of this manual should not be construed as a limitation on this application.

Claims (20)

  1. 一种访问云主机控制台方法,其中,包括:A method for accessing the cloud host console, which includes:
    将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
    通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
    根据所述登录信息获取可访问的URL登录所述云主机控制台。Obtain an accessible URL according to the login information to log in to the cloud host console.
  2. 根据权利要求1所述的方法,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息前,包括:The method according to claim 1, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the login information of the cloud host console. ,include:
    通过混合云管平台访问云主机控制台;Access the cloud host console through the hybrid cloud management platform;
    将所述云主机控制台接入所述预设置的noVNC程序。Connect the cloud host console to the preset noVNC program.
  3. 根据权利要求1所述的方法,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,包括:The method according to claim 1, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and resolve login information of the cloud host console, include:
    将所述云主机控制台转发至虚拟机内;Forward the cloud host console to the virtual machine;
    在所述虚拟机内接入所述预设置的noVNC程序。Access the preset noVNC program in the virtual machine.
  4. 根据权利要求1所述的方法,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,所述预设置的noVNC程序的设置方法,包括:The method according to claim 1, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and resolve login information of the cloud host console, The setting method of the preset noVNC program includes:
    通过Python编译noVNC程序;Compile noVNC programs through Python;
    将所述编译后的noVNC程序生成jar文件;Generate a jar file from the compiled noVNC program;
    将所述jar文件上传至部署服务器内;Upload the jar file to the deployment server;
    在所述部署服务器内解压所述jar文件后,配置环境变量;After decompressing the jar file in the deployment server, configure environment variables;
    所述配置环境变量通过预设命令启动,得到预设置的noVNC程序。The configuration environment variable is started by a preset command, and a preset noVNC program is obtained.
  5. 根据权利要求1所述的方法,其中,所述通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码,包括:The method according to claim 1, wherein said obtaining corresponding login information through said preset noVNC program, wherein said login information is a port and password corresponding to said cloud host console, comprising:
    通过调用云主机的接口获取用户名以及用户密码;Obtain the user name and user password by calling the interface of the cloud host;
    对所述获取用户名以及用户密码进行编排加密处理;Arrange and encrypt the acquired user name and user password;
    将所述编排加密处理采用noVNC程序进行解析获取登录信息。The arrangement and encryption process is parsed by noVNC program to obtain login information.
  6. 根据权利要求1所述的方法,其中,所述根据所述登录信息获取可访问的URL登录所述云主机控制台,包括:The method according to claim 1, wherein the obtaining an accessible URL according to the login information to log in to the cloud host console comprises:
    通过将所述登录信息填充生成可访问的URL;Generate an accessible URL by filling in the login information;
    将所述可访问的URL返回到所述云主机控制台,且登录所述云主机控制台。Return the accessible URL to the cloud host console, and log in to the cloud host console.
  7. 一种访问云主机控制台装置,其中,包括:A console device for accessing a cloud host, which includes:
    预设置模块,用于将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;A preset module, which is used to connect the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
    获取模块,用于通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;An obtaining module, configured to obtain corresponding login information through the preset noVNC program, where the login information is a port and a password corresponding to the cloud host console;
    登录模块,用于根据所述登录信息获取可访问的URL登录所述云主机控制台。The login module is used to obtain an accessible URL to log in to the cloud host console according to the login information.
  8. 根据权利要求7所述的装置,其中,所述获取模块1002包括:The device according to claim 7, wherein the obtaining module 1002 comprises:
    获取子单元,通过调用云主机的接口获取用户名以及用户密码;Obtain the subunit, obtain the user name and user password by calling the interface of the cloud host;
    加密单元,用于对所述获取用户名以及用户密码进行编排加密处理;The encryption unit is used to arrange and encrypt the obtained user name and user password;
    解析单元,用于将所述编排加密处理采用noVNC程序进行解析获取登录信息。The parsing unit is configured to use the noVNC program to parse the arrangement and encryption process to obtain login information.
  9. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下步骤:A computer device includes a memory, a processor, and a computer program that is stored on the memory and can run on the processor, wherein the processor implements the following steps when the program is executed:
    将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
    通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
    根据所述登录信息获取可访问的URL登录所述云主机控制台。Obtain an accessible URL according to the login information to log in to the cloud host console.
  10. 根据权利要求9所述的计算机设备,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息前,包括:8. The computer device according to claim 9, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the login information of the cloud host console Before, including:
    通过混合云管平台访问云主机控制台;Access the cloud host console through the hybrid cloud management platform;
    将所述云主机控制台接入所述预设置的noVNC程序。Connect the cloud host console to the preset noVNC program.
  11. 根据权利要求9所述的计算机设备,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,包括:8. The computer device according to claim 9, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the login information of the cloud host console ,include:
    将所述云主机控制台转发至虚拟机内;Forward the cloud host console to the virtual machine;
    在所述虚拟机内接入所述预设置的noVNC程序。Access the preset noVNC program in the virtual machine.
  12. 根据权利要求9所述的计算机设备,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,所述预设置的noVNC程序的设置方法,包括:8. The computer device according to claim 9, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and parse the login information of the cloud host console , The setting method of the preset noVNC program includes:
    通过Python编译noVNC程序;Compile noVNC programs through Python;
    将所述编译后的noVNC程序生成jar文件;Generate a jar file from the compiled noVNC program;
    将所述jar文件上传至部署服务器内;Upload the jar file to the deployment server;
    在所述部署服务器内解压所述jar文件后,配置环境变量;After decompressing the jar file in the deployment server, configure environment variables;
    所述配置环境变量通过预设命令启动,得到预设置的noVNC程序。The configuration environment variable is started by a preset command, and a preset noVNC program is obtained.
  13. 根据权利要求9所述的计算机设备,其中,所述通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码,包括:8. The computer device according to claim 9, wherein the corresponding login information is obtained through the preset noVNC program, wherein the login information is a port and a password corresponding to the cloud host console, including:
    通过调用云主机的接口获取用户名以及用户密码;Obtain the user name and user password by calling the interface of the cloud host;
    对所述获取用户名以及用户密码进行编排加密处理;Arrange and encrypt the acquired user name and user password;
    将所述编排加密处理采用noVNC程序进行解析获取登录信息。The arrangement and encryption process is parsed by noVNC program to obtain login information.
  14. 根据权利要求9所述的计算机设备,其中,所述根据所述登录信息获取可访问的URL登录所述云主机控制台,包括:The computer device according to claim 9, wherein the obtaining an accessible URL according to the login information to log in to the cloud host console comprises:
    通过将所述登录信息填充生成可访问的URL;Generate an accessible URL by filling in the login information;
    将所述可访问的URL返回到所述云主机控制台,且登录所述云主机控制台。Return the accessible URL to the cloud host console, and log in to the cloud host console.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现以下步骤:A computer-readable storage medium with a computer program stored thereon, wherein the program is executed by a processor to implement the following steps:
    将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息;Connecting the cloud host console to a preset noVNC program, where the preset noVNC program is used to obtain and resolve login information of the cloud host console;
    通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码;Obtain corresponding login information through the preset noVNC program, where the login information is the port and password corresponding to the cloud host console;
    根据所述登录信息获取可访问的URL登录所述云主机控制台。Obtain an accessible URL according to the login information to log in to the cloud host console.
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息前,包括:The computer-readable storage medium according to claim 15, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and resolve the cloud host console Before the login information, include:
    通过混合云管平台访问云主机控制台;Access the cloud host console through the hybrid cloud management platform;
    将所述云主机控制台接入所述预设置的noVNC程序。Connect the cloud host console to the preset noVNC program.
  17. 根据权利要求15所述的计算机可读存储介质,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,包括:The computer-readable storage medium according to claim 15, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and resolve the cloud host console Login information, including:
    将所述云主机控制台转发至虚拟机内;Forward the cloud host console to the virtual machine;
    在所述虚拟机内接入所述预设置的noVNC程序。Access the preset noVNC program in the virtual machine.
  18. 根据权利要求15所述的计算机可读存储介质,其中,所述将云主机控制台接入预设置的noVNC程序,其中,所述预设置的noVNC程序用于获取和解析所述云主机控制台的登录信息,所述预设置的noVNC程序的设置方法,包括:The computer-readable storage medium according to claim 15, wherein the cloud host console is connected to a preset noVNC program, wherein the preset noVNC program is used to obtain and resolve the cloud host console The login information of the said preset noVNC program setting method, including:
    通过Python编译noVNC程序;Compile noVNC programs through Python;
    将所述编译后的noVNC程序生成jar文件;Generate a jar file from the compiled noVNC program;
    将所述jar文件上传至部署服务器内;Upload the jar file to the deployment server;
    在所述部署服务器内解压所述jar文件后,配置环境变量;After decompressing the jar file in the deployment server, configure environment variables;
    所述配置环境变量通过预设命令启动,得到预设置的noVNC程序。The configuration environment variable is started by a preset command, and a preset noVNC program is obtained.
  19. 根据权利要求15所述的计算机可读存储介质,其中,所述通过所述预设置的noVNC程序获取相应登录信息,其中所述登录信息为与所述云主机控制台相对应的端口以及密码,包括:The computer-readable storage medium according to claim 15, wherein the corresponding login information is obtained through the preset noVNC program, wherein the login information is a port and a password corresponding to the cloud host console, include:
    通过调用云主机的接口获取用户名以及用户密码;Obtain the user name and user password by calling the interface of the cloud host;
    对所述获取用户名以及用户密码进行编排加密处理;Arrange and encrypt the acquired user name and user password;
    将所述编排加密处理采用noVNC程序进行解析获取登录信息。The arrangement and encryption process is parsed by noVNC program to obtain login information.
  20. 根据权利要求15所述的计算机可读存储介质,其中,所述根据所述登录信息获取可访问的URL登录所述云主机控制台,包括:The computer-readable storage medium according to claim 15, wherein the obtaining an accessible URL according to the login information to log in to the cloud host console comprises:
    通过将所述登录信息填充生成可访问的URL;Generate an accessible URL by filling in the login information;
    将所述可访问的URL返回到所述云主机控制台,且登录所述云主机控制台。Return the accessible URL to the cloud host console, and log in to the cloud host console.
PCT/CN2020/118892 2020-06-08 2020-09-29 Method, apparatus, and device for accessing cloud host console, and storage medium WO2021151297A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010513476.0A CN111683091A (en) 2020-06-08 2020-06-08 Method, device, equipment and storage medium for accessing cloud host console
CN202010513476.0 2020-06-08

Publications (1)

Publication Number Publication Date
WO2021151297A1 true WO2021151297A1 (en) 2021-08-05

Family

ID=72435534

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118892 WO2021151297A1 (en) 2020-06-08 2020-09-29 Method, apparatus, and device for accessing cloud host console, and storage medium

Country Status (2)

Country Link
CN (1) CN111683091A (en)
WO (1) WO2021151297A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683091A (en) * 2020-06-08 2020-09-18 平安科技(深圳)有限公司 Method, device, equipment and storage medium for accessing cloud host console
CN112800409B (en) * 2021-01-08 2023-03-24 杭州雾联科技有限公司 Method, device and medium for bypassing login protection

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702624A (en) * 2015-03-27 2015-06-10 深圳市研唐科技有限公司 Method and system for logging virtual machine based on Cloud Stack platform
US20150371032A1 (en) * 2014-06-18 2015-12-24 Dell Products, Lp Method to Securely Authenticate Management Server Over Un-Encrypted Remote Console Connection
CN106570352A (en) * 2015-10-12 2017-04-19 中国石油化工股份有限公司 Method and device for using software resource remotely without password
CN107846304A (en) * 2017-09-14 2018-03-27 浙江广播电视集团 A kind of automation engine of mixing cloud service architecture centralized management
CN108628716A (en) * 2017-03-21 2018-10-09 腾讯科技(深圳)有限公司 Information receives guard system, method and device
CN111683091A (en) * 2020-06-08 2020-09-18 平安科技(深圳)有限公司 Method, device, equipment and storage medium for accessing cloud host console

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019080010A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Cloud computing-based virtual machine control system and method therefor
CN110502315A (en) * 2019-08-26 2019-11-26 浪潮云信息技术有限公司 A kind of method, apparatus and system remotely accessing physical machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150371032A1 (en) * 2014-06-18 2015-12-24 Dell Products, Lp Method to Securely Authenticate Management Server Over Un-Encrypted Remote Console Connection
CN104702624A (en) * 2015-03-27 2015-06-10 深圳市研唐科技有限公司 Method and system for logging virtual machine based on Cloud Stack platform
CN106570352A (en) * 2015-10-12 2017-04-19 中国石油化工股份有限公司 Method and device for using software resource remotely without password
CN108628716A (en) * 2017-03-21 2018-10-09 腾讯科技(深圳)有限公司 Information receives guard system, method and device
CN107846304A (en) * 2017-09-14 2018-03-27 浙江广播电视集团 A kind of automation engine of mixing cloud service architecture centralized management
CN111683091A (en) * 2020-06-08 2020-09-18 平安科技(深圳)有限公司 Method, device, equipment and storage medium for accessing cloud host console

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TAN YUFEI: "The Design and Implementation of Cloud Management Platform Based on Intelligent Test System", CHINESE MASTER’S THESES FULL-TEXT DATABASE (ELECTRONIC JOURNALS), 15 January 2019 (2019-01-15), XP055832863 *

Also Published As

Publication number Publication date
CN111683091A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
US9391801B2 (en) Virtual private networks distributed across multiple cloud-computing facilities
US9430256B2 (en) Method and apparatus for migrating virtual machines between cloud computing facilities using multiple extended local virtual networks and static network addresses
CN109670297B (en) Method and device for opening service permission, storage medium and electronic equipment
US9720800B2 (en) Auto-generating representational state transfer (REST) services for quality assurance
US9560052B2 (en) Installing virtual machines within different communication pathways to access protected resources
WO2019125709A1 (en) Methods and systems for managing internet preferences
US9338053B1 (en) Automatically configuring virtual private networks
US10574724B2 (en) Automatic discovery of management nodes and generation of CLI using HA module
US10397051B1 (en) Configuration and testing of network-based service platform resources using a service platform specific language
EP3391216A1 (en) Packaging tool for first and third party component deployment
CN106648838B (en) Resource pool management configuration method and device
WO2021151297A1 (en) Method, apparatus, and device for accessing cloud host console, and storage medium
JP6445710B2 (en) Multi-mode system on chip
US20140330875A1 (en) Method and system for processing data files using distributed services
CN104702624A (en) Method and system for logging virtual machine based on Cloud Stack platform
CN113626133A (en) Virtual machine control method, device, equipment and computer readable storage medium
JP2022094938A (en) Method for monitoring and controlling data access, computer program, and security system agent equipment
JP2022530440A (en) Debugging on-premises and off-premises
CN104601666A (en) Log service method and cloud platform
WO2019082015A1 (en) Search engine optimization techniques
CN108595169B (en) Visual programming method, cloud server and storage medium
Wei et al. A VDI system based on cloud stack and active directory
CN112287017A (en) OpenSSH-based Impala cluster visual management method
CN113806724B (en) User login request processing method and device
CN111142887B (en) Automatic CDH installation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20916496

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20916496

Country of ref document: EP

Kind code of ref document: A1