Method and apparatus for recovering sessions
First Claim
1. A method for recovering a secure shell (SSH) session upon interruption of the SSH session, the method, comprising:
- sending, by a client, all state information before the interruption of the SSH session and session information of the session to a server, wherein all the state information comprises a completion ratio of data transmission, wherein the SSH session comprises a plurality of channels and wherein the session information includes information for one or more of the respective plurality of channels; and
recovering, by the server, the SSH session upon the session information and all the state information before the interruption of the SSH session;
wherein before the SSH session is interrupted, the method further comprises;
receiving, by the client, a first key encrypted and the session information encrypted from the server after the SSH session is established between the server and the client, wherein the first key is shared by the client and the server, and the first key and the session information are encrypted through a local key of the server; and
storing, by the client, the encrypted first key and the encrypted session information;
wherein the step of the client sending all state information before interruption of the SSH session to the server when the SSH session needs to be recovered upon interruption comprises;
encrypting, by the client, all the state information before the interruption of the SSH session with the first key, andsending, by the client, the encrypted state information, the encrypted first key, and the encrypted session information received from the server, to the server.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for recovering sessions includes storing, by a client, session information after a session is established between the server and the client. When the session needs to be recovered upon interruption, the client sends all state information before interruption of the session and the session information to the server, and the server recovers the session upon the received session information and all state information before interruption of the session. After a session is interrupted, the server does not need to store any session-related information, thus saving the resources of the server, and all information about the previous session can be recovered completely.
17 Citations
17 Claims
-
1. A method for recovering a secure shell (SSH) session upon interruption of the SSH session, the method, comprising:
-
sending, by a client, all state information before the interruption of the SSH session and session information of the session to a server, wherein all the state information comprises a completion ratio of data transmission, wherein the SSH session comprises a plurality of channels and wherein the session information includes information for one or more of the respective plurality of channels; and recovering, by the server, the SSH session upon the session information and all the state information before the interruption of the SSH session; wherein before the SSH session is interrupted, the method further comprises; receiving, by the client, a first key encrypted and the session information encrypted from the server after the SSH session is established between the server and the client, wherein the first key is shared by the client and the server, and the first key and the session information are encrypted through a local key of the server; and storing, by the client, the encrypted first key and the encrypted session information; wherein the step of the client sending all state information before interruption of the SSH session to the server when the SSH session needs to be recovered upon interruption comprises; encrypting, by the client, all the state information before the interruption of the SSH session with the first key, and sending, by the client, the encrypted state information, the encrypted first key, and the encrypted session information received from the server, to the server. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for recovering a secure shell (SSH) session upon interruption of the SSH session, the method, comprising:
-
sending, by a client, all state information before the interruption of the SSH session and session information of the SSH session to a server, wherein all the state information comprises a completion ratio of data transmission, wherein the SSH session comprises a plurality of channels and wherein the session information includes information for one or more of the respective plurality of channels; and recovering, by the server, the SSH session upon the session information and all the state information before the interruption of the SSH session; wherein the step of the client sending all state information before interruption of the SSH session to the server when the SSH session needs to be recovered upon interruption comprises; encrypting, by the client, all state information before interruption of the SSH session with a first key shared with the server, and sending the encrypted state information to the server. - View Dependent Claims (8, 9)
-
-
10. A method for recovering a secure shell (SSH) session, the method comprising:
- encrypting, by a server, session information of a client to generate first encrypted information through a local key when the Secure Shell (SSH) session is established between the server and the client, wherein the first encrypted information comprises the session information and a first key shared between the client and the server, wherein the SSH session comprises a plurality of channels and wherein the session information includes information for one or more of the respective plurality of channels;
sending, by the server, the first encrypted information to the client;
receiving, by the server, the first encrypted information and second encrypted information sent by the client when the SSH session needs to be recovered upon SSH interruption, the second encrypted information is generated, by the client, through encrypting all state information before the interruption of the SSH session with the first key, wherein all the state information comprises a completion ratio of data transmission;
decrypting, by the server, the first encrypted information with the local key to obtain the first key and the session information; and
decrypting, by the server, the second encrypted information with the first key to obtain the state information before the interruption of the SSH session and recover the SSH session. - View Dependent Claims (11, 12, 13, 14, 15)
- encrypting, by a server, session information of a client to generate first encrypted information through a local key when the Secure Shell (SSH) session is established between the server and the client, wherein the first encrypted information comprises the session information and a first key shared between the client and the server, wherein the SSH session comprises a plurality of channels and wherein the session information includes information for one or more of the respective plurality of channels;
-
16. A non-transitory computer-readable storage medium containing a program, the program comprising instructions that when executed by a processor cause:
-
a first encrypting unit to encrypt session information of a Secure Shell (SSH) session with a first key to generate first encrypted information when the SSH session is established between an apparatus and a client, wherein the first encrypted information comprises a second key shared by the apparatus and the client, the first key is privately owned by the apparatus, and the client is unaware of the first key, wherein the SSH session comprises a plurality of channels and wherein the session information includes information for one or more of the respective plurality of channels; a first sending unit to send the first encrypted information to the client; a first receiving unit to receive second encrypted information and the first encrypted information when the SSH session between the apparatus and the client needs to be recovered upon SSH interruption, wherein the second encrypted information is generated by encrypting all state information before interruption of the SSH session with the second key, wherein all the state information comprises a completion ratio of data transmission; a first decrypting unit to decrypt the first encrypted information received by the first receiving unit through the first key and obtain the second key; and a second decrypting unit to decrypt the second encrypted information with the second key to obtain all state information before interruption of the SSH session and recover the SSH session. - View Dependent Claims (17)
-
Specification