Method and device for adjusting ID copy area to adapt to different user scenes
By establishing an encrypted relationship and password-free login between the server and the client, and determining the target printer based on the printing demand information, the problem of data leakage and low management security in shared printer network communications is solved, and efficient and safe printing tasks are achieved. manage.
Patent Information
- Application Number
- CN202310167310.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
Under the Internet of Things technology, network communication of shared printers can easily lead to data leakage and loss, and the security of printer management is low, especially under open network conditions.
By establishing an encryption relationship between the server and the client, using a password-free login protocol (such as ssh-keygen and ssh-copy-id) to generate a public key and private key pair, the password-free login between the client and the remote proxy server is realized, and Determine the target printer according to the printing demand information to ensure the confidentiality of data transmission and the management efficiency of printing tasks.
It reduces the risk of leakage during multi-printer and multi-client file transfer, improves the security and efficiency of printing task management, and ensures printer management under large network conditions.
Smart Images

Figure CN118551391A
Abstract
Description
Technical Field
[0001] The present application relates to the field of printer management technology, and is a method and device for adjusting an ID copy area to adapt to different user scenarios. Background Art
[0002] With the development of Internet of Things technology, it is possible to share printers under the same network conditions. However, in order to reduce the communication channels occupied by data transmission and the pressure on the server's storage, the printer and the server do not communicate in real time, but establish and maintain communication when the printing task is initiated and the printing task is in progress. Therefore, in order to reduce the redundancy of the printer's communication channel and the cost of data storage for shared printers, it is necessary to provide a method for printer network connection, which can reduce the redundancy of the network channel while ensuring the establishment of the printer network.
[0003] However, under the same network conditions, because multiple clients communicate with the server and the network is an open network, it is easier to cause data leakage and loss under this condition, and the security is low. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a method and device for adjusting the ID copy area to adapt to different user scenarios, by establishing an encryption relationship between the server and the client in the network, and establishing task issuance and task management between the client and the server through a password-free login method, thereby improving the encryption management between the server and the client, reducing the problem of leakage in the process of file transmission between multiple printers and multiple clients, and improving the management of printer printing tasks by determining printing tasks.
[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows: In the first aspect, a method for adjusting an ID copy area to adapt to different user scenarios is applied to a remote proxy server, wherein the remote proxy server is connected to multiple user terminals and multiple printers, wherein the multiple user terminals are used to initiate print tasks, and the print tasks are sent to corresponding printers through the remote proxy server. The method includes: establishing a communication relationship between the multiple user terminals and the remote proxy server, generating a unified public key and a corresponding private key pair based on the multiple user terminals corresponding to the regional network label through a first protocol, copying the unified public key to the remote proxy server through a second protocol, and the multiple user terminals and the remote proxy server implement password-free login based on the unified public key and the private key pair; based on the communication relationship established between the multiple user terminals and the remote proxy server, sending the print task to the corresponding printer, including: obtaining the print demand information sent by the user terminal, and extracting the first label in the print demand information, wherein the first label is used to characterize the characteristic information in the print demand information; determining the print task completed by the target printer among the multiple printers based on the characteristic information.
[0006] Furthermore, the first protocol includes an ssh-keygen protocol, and a corresponding ssh-keygen file is generated on the user side.
[0007] Furthermore, the second protocol includes ssh-copy-id.
[0008] Furthermore, the unified public key is copied to the remote proxy server through a second protocol, including: creating a .ssh directory under the root directory of the remote server, and storing the unified public key in a corresponding file under the directory.
[0009] Furthermore, the multiple user terminals and the remote proxy server implement password-free login based on a unified public key and the private key pair, including the remote proxy server generating an encryption password corresponding to the public key, the user terminal generating a decryption password corresponding to the public key, and determining whether to log in based on the comparison between the encryption password and the decryption password.
[0010] Furthermore, the remote proxy server generates an encryption password corresponding to the public key, including: the user terminal sends a login request to the remote proxy server based on the SSH protocol; the remote proxy server searches for the public key corresponding to the user terminal according to the public key record stored in the corresponding file where the unified public key is stored, and encrypts the public key based on the corresponding public key encryption password to obtain an encrypted public key.
[0011] Furthermore, the user terminal generates a decryption password corresponding to the public key, including: sending the encrypted public key to the corresponding user terminal, and the user terminal decrypting the encrypted public key based on the private key to obtain a decryption password; sending the decryption password to the remote proxy server, and comparing the decryption password with the encryption password to determine whether the two are consistent, and performing a login operation based on the comparison result.
[0012] Furthermore, the printing requirement information includes the quantity of printing paper, the specifications of printing paper, and printing attribute information.
[0013] Further, determining the printing task completed by the target printer among the plurality of the printers based on the characteristic information includes: obtaining the target printer based on comparing the operating status of the plurality of the printers with the printing requirement information. In the second aspect, a device for adjusting the ID copy area to adapt to different user scenarios is applied to a remote proxy server, wherein the remote proxy server is connected to multiple user terminals and multiple printers, and the multiple user terminals are used to initiate print tasks, and the print tasks are sent to the corresponding printers through the remote proxy server. The device includes: a password-free login setting module, which is used to establish a password-free login relationship between the user terminal and the remote proxy server; and a print task sending module, which is used to send the print tasks issued by the user terminal to the corresponding printer.
[0014] In the technical solution provided by the embodiment of the present application, a communication relationship is established between the server and the user end and multiple printers, and confidentiality is achieved during data and file transmission between the server and the user end through encryption and password-free login, which reduces the printing management in the process of printer management in an open network. In addition, by extracting the printing features in the printing task, matching between multiple printers and user end printing tasks is achieved, the optimal printer is selected for different printing tasks, and management of multiple printers under large network conditions is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] The methods, systems and / or programs in the accompanying drawings will be further described according to exemplary embodiments. These exemplary embodiments will be described in detail with reference to the drawings. These exemplary embodiments are non-limiting exemplary embodiments, wherein example numbers represent similar mechanisms in the various views of the accompanying drawings.
[0017] Figure 1 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application.
[0018] Figure 2 It is a flowchart of a method for adjusting the ID copy area to adapt to different user scenarios shown in some embodiments of the present application.
[0019] Figure 3 It is a schematic block diagram of a device provided according to an embodiment of the present application. Implementation
[0020] In order to better understand the above technical scheme, the technical scheme of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0021] In the following detailed description, numerous specific details are set forth by way of example in order to provide a comprehensive understanding of the relevant guidance. However, it will be apparent to those skilled in the art that the present application may be practiced without these details. In other cases, well-known methods, procedures, systems, compositions and / or circuits have been described at a relatively high level, without detail, in order to avoid unnecessarily obscuring aspects of the present application.
[0022] Flowcharts are used in the present application to illustrate the execution process performed by the system according to the embodiment of the present application. It should be clearly understood that the execution process of the flowchart may not be performed in order. On the contrary, these execution processes may be performed in reverse order or simultaneously. In addition, at least one other execution process may be added to the flowchart. One or more execution processes may be deleted from the flowchart.
[0023] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0024] (1) In response to, it is used to indicate the conditions or states on which the executed operation depends. When the dependent conditions or states are met, one or more operations executed may be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0025] (2) Based on: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0026] The embodiment of the present application provides a terminal device, which communicates with a user terminal 120 through a link channel, and determines multiple initial target printers according to the labels in the link channel, and is also used to receive a print task issued by the user terminal, and receive the operating status of the printer 130, and compare the print task with the operating status to obtain the target printer, and establish a network connection between the target printer and the user terminal, that is, establish communication, and issue the task to the corresponding printer to complete the printing. In this embodiment, the terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0027] In this embodiment, the terminal is a server 110, which includes a memory, a processor, and a communication unit with respect to the physical structure of the server. The memory, the processor, and the communication unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The memory is used to store specific information and programs, and the communication unit is used to send the processed information to the corresponding user terminal.
[0028] In this embodiment, the storage module is divided into two storage areas, one of which is a program storage unit and the other is a data storage unit. The program storage unit is equivalent to the firmware area, and the read and write permissions of this area are set to read-only mode, and the data stored in it cannot be erased or changed. The data in the data storage unit can be erased or read and written. When the capacity of the data storage area is full, the newly written data will overwrite the earliest historical data.
[0029] Among them, the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0030] The processor may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0031] The technical solution provided by the embodiment of the present application is mainly applied in the management of multiple printers and multiple user terminals, mainly in the management of printers in a large network, i.e., a large local area network. A connection is established between each printer and a server in the large local area network, and the print task is sent to the corresponding printer through the server for printing processing. Because in a local area network, all data are stored in the corresponding server, this storage method can easily lead to the loss and leakage of data stored in the public area, i.e., the server. Therefore, it is necessary to store the print tasks and print information issued by the user terminal in this local area network in a confidential manner to reduce the loss and leakage of data in an open network. Moreover, under the condition that multiple printers are working, the print task is executed for a single printer, i.e., the communication with the printer is established for a certain printer. In this case, it is necessary to obtain a target printer that meets the printing requirements so as to establish communication between the target printer and the user terminal, i.e., establish a network between the server and the target printer to realize the network connection between the target printer and the server, thereby establishing the network connection between the target printer and the user terminal, and realizing the start and execution of the print task.
[0032] Therefore, with respect to the printer management in the prior art, this embodiment provides a method for adjusting the ID copy area to adapt to different user scenarios, which is applied to a remote proxy server, wherein the remote proxy server is connected to multiple client terminals and multiple printers, and the multiple client terminals are used to initiate print tasks, and the print tasks are sent to corresponding printers through the remote proxy server. The method includes: Step S210. Establishing a communication relationship between the plurality of said clients and the said remote proxy server.
[0033] In this embodiment, it is relatively simple to establish communication between the user terminal and the remote proxy server. However, in order to avoid leakage of data and printing information during communication and data storage, it is necessary to establish an encrypted communication relationship between the user terminal and the remote proxy server in this embodiment to achieve encryption of the data transmission process and the data in the data storage, thereby reducing the problem of data loss caused by leakage.
[0034] For this process, the main logic is to generate a unified public key and a corresponding private key pair based on the first protocol for multiple user terminals corresponding to the regional network tag, copy the unified public key to the remote proxy server through the second protocol, and realize password-free login with multiple user terminals and the remote proxy server based on the unified public key and the private key pair.
[0035] In this embodiment, the first protocol includes the ssh-keygen protocol, and a corresponding ssh-keygen file is generated on the user side. The second protocol includes ssh-copy-id.
[0036] The method for copying the unified public key to the remote proxy server through the second protocol includes: creating a .ssh directory under the root directory of the remote server, and storing the unified public key in a corresponding file under the directory.
[0037] A plurality of the user terminals and the remote proxy server implement password-free login based on a unified public key and the private key pair, including the remote proxy server generating an encryption password corresponding to the public key, the user terminal generating a decryption password corresponding to the public key, and determining whether to log in based on a comparison between the encryption password and the decryption password.
[0038] The encryption password corresponding to the public key generated for the remote proxy server includes: The client sends a login request to the remote proxy server based on the SSH protocol; The remote proxy server searches for the public key corresponding to the client according to the public key record stored in the corresponding file in which the unified public key is stored, and encrypts the public key based on the corresponding public key encryption password to obtain an encrypted public key.
[0039] Generate a decryption password corresponding to the public key for the user, including: Sending the encrypted public key to the corresponding user terminal, and the user terminal decrypting the encrypted public key based on the private key to obtain a decryption password; The decrypted password is sent to the remote proxy server, and the decrypted password is compared with the encrypted password to determine whether the two are consistent, and a login operation is performed based on the comparison result.
[0040] In this embodiment, in step S210, an encrypted communication relationship between the user terminal and the remote proxy server is established to achieve an encrypted communication relationship between the user terminal and the remote proxy server, thereby avoiding the leakage of data and printing information during the communication process and improving the confidentiality of the overall system.
[0041] In this embodiment, in order to reduce the leakage of data during the data storage process, the data storage method adopted in this embodiment is also based on the shh-id-copy method, that is, a folder matching the corresponding user terminal is established in the remote proxy server, wherein the folder uses a private key and a public key to realize data storage and encryption during data retrieval.
[0042] Step S220: Based on the communication relationship established between the plurality of client terminals and the remote proxy server, the print task is sent to a corresponding printer.
[0043] In this embodiment, because there are multiple printers, in order to improve the optimal effect of printing results during the printing task processing, the target printer is determined by screening the printing task in the user terminal and the printer that best matches the printing task among multiple printers.
[0044] The specific processing process is: The printing requirement information sent by the user terminal is acquired, and a first tag in the printing requirement information is extracted, where the first tag is used to characterize characteristic information in the printing requirement information.
[0045] A print task to be completed by a target printer among the plurality of printers is determined based on the characteristic information.
[0046] In this embodiment, the printing requirement information includes the number of printing papers, printing paper specifications, and printing attribute information. Determining the printing task completed by the target printer among the multiple printers based on the characteristic information includes: obtaining the target printer based on comparing the operating status of the multiple printers with the printing requirement information.
[0047] The above process specifically includes: In this embodiment, collecting the operation status information of the plurality of initial target printers and matching the operation status information with the printing demand information to obtain the target printer includes: Acquire an idle printer among the initial target printers as a first target printer, and acquire a printing status feature of the first target printer; The printing status characteristics are compared with the printing requirement information to obtain a target printer that meets the conditions.
[0048] The printing demand information includes the number of printing papers, printing paper specifications, and printing attribute information. The printing status characteristics include the printing paper specification information in the printer, the corresponding number of printing papers, printer attribute information, and the service life information of the printing components corresponding to the printer attribute information.
[0049] Specifically, the printing state characteristics are compared with the printing demand information to obtain a target printer that meets the conditions, including comparing the printing attribute information with the printer attribute information and the service life information of the printing component, specifically: Acquire the printing attribute information and extract attribute features in the attribute information, compare the attribute features with parameter features in a plurality of first target printers, and obtain a second target printer that meets the printing attributes; Acquire the operation data corresponding to the attribute feature based on a preset attribute model; The operation data is compared with the corresponding real-time status data in the second target printer, and the comparison result is the service life information.
[0050] In this embodiment, the attribute characteristics include characteristics other than basic printing requirements, such as color, paper type, whether it is sealed with plastic, and other attribute information. When the above characteristics are executed on the printer side, they are implemented through the corresponding specific components. For example, the color is based on the toner of multiple colors in the toner cartridge, and the color attribute characteristics are the content of each color in the toner cartridge. This data can be achieved based on the monitoring method for toner cartridges in the prior art and will not be described in this embodiment. Whether it is sealed with plastic is determined based on the stock of raw materials in the plastic sealing component in the printer.
[0051] In this embodiment, the determination of attribute features is implemented based on multiple methods. For example, the determination of color attribute features is based on image recognition technology. Through the picture or document in the printing attribute information sent by the user terminal, image recognition is performed on the image and the document to identify the color distribution in the image and the document. For example, the color is identified by image recognition technology, specifically: The image is detected using the threshold recognition criteria based on the RGB color model to accurately obtain the effective area of the image. The color analysis and recognition of multiple effective areas are performed through the preset deep learning model to generate a color ratio map. The specific color ratio map generation process includes the following steps: Perform color recognition on the effective area of the image to determine multiple target colors contained in the effective area of the image.
[0052] After determining the effective area of the image, the colors contained in the effective area of the image are detected, for example, red, blue, and yellow, which are three target colors.
[0053] Each target color is quantitatively detected to determine the proportional relationship between multiple target colors.
[0054] A color ratio map is generated according to the ratio relationship between multiple target colors.
[0055] For example, after determining that the effective area of the image contains three target colors of red, blue, and yellow, the three target colors are quantitatively detected to detect the color quantity of each color, and then the ratio of the color quantity of each target color to the total color quantity is determined, and the proportional relationship between the multiple target colors is obtained. Further, according to the proportional relationship between the multiple target colors determined above, a color ratio diagram is generated.
[0056] Acquiring the operation data corresponding to the attribute feature based on the preset attribute model specifically includes: For example, a color ratio diagram is obtained, and the colors in the color ratio diagram and the corresponding toner amounts in the corresponding toner cartridges are obtained based on the color attribute model. Because the toner in the printer is not a variety of colors, it generally includes four colors. The corresponding target color is obtained based on the ratio of the colors. A color mixing ratio curve is configured in the attribute model, especially in the color model. The color of the toner used and the specific ratio can be inferred based on the target color. This data is the corresponding operating data.
[0057] Through the processing of this process, the operation data of each attribute execution component in the printer corresponding to the attribute feature can be obtained, and the result of whether the service life information meets the printing requirement can be obtained by comparing the operation data with the real-time status data. When it is determined that the service life information in the second target printer meets the printing requirement, this printer is the final target printer, and communication with the final target printer is established through the server.
[0058] Step S230: Send the target printer information to the user terminal, and send a print connection establishment request, and establish a communication link between the user terminal and the target printer based on the print connection establishment request.
[0059] In this embodiment, the communication link is established through the remote proxy server. Similarly, the communication link between the remote proxy server and the user end is established in an encrypted manner. The communication relationship between the remote proxy server and the printer can be established in the same encrypted manner, thereby ensuring encrypted communication and processing between the printer host and the remote proxy server.
[0060] Also, see Figure 3 This embodiment provides a device 300 for adjusting the ID copy area to adapt to different user scenarios, which is applied to a remote proxy server, wherein the remote proxy server is connected to multiple client terminals and multiple printers, wherein the multiple client terminals are used to initiate print tasks, and the print tasks are sent to corresponding printers through the remote proxy server. The device includes: a password-free login setting module 310, which is used to establish a password-free login relationship between the client terminal and the remote proxy server. A print task sending module 320, which is used to send the print task sent by the client terminal to the corresponding printer.
[0061] The embodiment of the present application establishes a communication relationship between the server, the user end and multiple printers, and realizes confidentiality in the data and file transmission process through encryption and password-free login between the server and the user end, thereby reducing the printing management in the process of printer management in the open network. In addition, by extracting the printing features in the printing task, it realizes the matching between multiple printers and user-end printing tasks, realizes the selection of the best printer for different printing tasks, and realizes the management of multiple printers under large network conditions.
[0062] It should be understood that, for technical terms that are not explained in the above content, those skilled in the art can unambiguously determine their meanings by deducing from the above disclosed content and are not limited here.
[0063] Those skilled in the art can unambiguously determine some preset, benchmark, predetermined, set and preferred labeled technical features / technical terms based on the above disclosed content, such as thresholds, threshold intervals, threshold ranges, etc. For some unexplained technical feature terms, those skilled in the art are fully capable of reasonably and unambiguously deducing based on the logical relationship of the context, so as to clearly and completely implement the above technical solutions. The prefixes of unexplained technical feature terms, such as "first", "second", "example", "target", etc., can be unambiguously deduced and determined based on the context. The suffixes of unexplained technical feature terms, such as "set", "list", etc., can also be unambiguously deduced and determined based on the context.
[0064] The above contents disclosed in the embodiments of the present application are clear and complete for those skilled in the art. It should be understood that the process of deducing and analyzing the unexplained technical terms based on the above disclosed contents by those skilled in the art is based on the contents recorded in the present application, and therefore the above contents are not a judgment on the creativity of the overall solution.
[0065] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0066] At the same time, the present application uses specific terms to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different parts of this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in at least one embodiment of the present application can be appropriately combined.
[0067] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as a "unit", "component" or "system". In addition, various aspects of the present application may be represented as a computer product located in at least one computer-readable medium, the product including a computer-readable program code.
[0068] A computer readable signal medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer readable signal medium may be any computer readable medium other than a computer readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer readable signal medium may be propagated through any suitable medium, including radio, cable, fiber optic cable, RF, or similar medium, or a combination of any of the above mediums.
[0069] The computer program code required for the execution of various aspects of the present application can be written in any combination of one or more programming languages, including object-oriented programming, such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., or similar conventional programming languages, such as "C" programming language, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy or other programming languages. The programming code can be executed entirely on the user's computer, or as an independent software package on the user's computer, or partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0070] In addition, unless expressly stated in the scope of the patent application, the order of the processing elements and sequences described in this application, the use of digital letters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached patent scope is not limited to the disclosed embodiments. On the contrary, the scope of the patent application is intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of the present application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0071] It should also be understood that in order to simplify the description disclosed in this application and thus help understand at least one embodiment of the invention, in the above description of the embodiments of the application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of the application are more than the features mentioned in the claims. In fact, the features of the embodiment are less than all the features of the single embodiment disclosed above.
Claims
1. A method for adjusting the ID copy area to adapt to different user scenarios, characterized in that: Applied to a remote proxy server, the remote proxy server is connected to multiple client terminals and multiple printers, the multiple client terminals are used to initiate print tasks, and the print tasks are sent to corresponding printers through the remote proxy server, the method includes: Establishing a communication relationship between the plurality of client terminals and the remote proxy server, generating a unified public key and a corresponding private key pair based on the plurality of client terminals corresponding to the regional network tags through a first protocol, copying the unified public key to the remote proxy server through a second protocol, and realizing password-free login between the plurality of client terminals and the remote proxy server based on the unified public key and the private key pair; Based on the communication relationship established between the plurality of client terminals and the remote proxy server, the printing task is sent to the corresponding printer, including: Acquire the printing requirement information sent by the user terminal, and extract a first tag in the printing requirement information, where the first tag is used to characterize characteristic information in the printing requirement information; A print task to be completed by a target printer among the plurality of printers is determined based on the characteristic information.
2. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 1, characterized in that: The first protocol includes an ssh-keygen protocol, and a corresponding ssh-keygen file is generated on the user end.
3. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 1, characterized in that: The second protocol includes ssh-copy-id.
4. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 3, characterized in that: The unified public key is copied to the remote proxy server through the second protocol, including: creating a .ssh directory under the root directory of the remote server, and storing the unified public key in a corresponding file under the directory.
5. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 4, characterized in that: The multiple user terminals and the remote proxy server implement password-free login based on a unified public key and the private key pair, including the remote proxy server generating an encryption password corresponding to the public key, the user terminal generating a decryption password corresponding to the public key, and determining whether to log in based on a comparison between the encryption password and the decryption password.
6. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 5, characterized in that: The remote proxy server generates an encrypted password corresponding to the public key including: The client sends a login request to the remote proxy server based on the SSH protocol; The remote proxy server searches for the public key corresponding to the client according to the public key record stored in the corresponding file in which the unified public key is stored, and encrypts the public key based on the corresponding public key encryption password to obtain an encrypted public key.
7. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 6, characterized in that: The user terminal generates a decryption password corresponding to the public key, including: Sending the encrypted public key to the corresponding user terminal, and the user terminal decrypting the encrypted public key based on the private key to obtain a decryption password; The decrypted password is sent to the remote proxy server, and the decrypted password is compared with the encrypted password to determine whether the two are consistent, and a login operation is performed based on the comparison result.
8. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 1, characterized in that: The printing requirement information includes the number of printing papers, printing paper specifications, and printing attribute information.
9. The method for adjusting the ID copy area to adapt to different user scenarios according to claim 8, characterized in that: Determining a printing task to be completed by a target printer among the plurality of printers based on the characteristic information includes: A target printer is obtained based on comparison of the operating status of the plurality of printers with the printing requirement information.
10. A device for adjusting the ID copy area to adapt to different user scenarios, characterized in that: Applied to a remote proxy server, the remote proxy server is connected to multiple client terminals and multiple printers, the multiple client terminals are used to initiate print tasks, and the print tasks are sent to corresponding printers through the remote proxy server, the device comprises: A password-free login setting module, used to establish a password-free login relationship between the user terminal and the remote proxy server; The printing task sending module is used to send the printing task sent by the user end to the corresponding printer.
