Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use SSH exit symbol to switch SSH session under Linux

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "how to use SSH exit symbol to switch SSH session under Linux", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use SSH exit symbol to switch SSH session under Linux" article.

When logging in to a remote host from the local computer using ssh, you may want to switch to the local computer to do something, and then go back to the remote host. At this time, there is no need to win.

To disconnect the ssh, you only need to follow these steps:

1. Log in to the remote host:

Localhost$ ssh 172.16.1.165

Oracle@172.16.1.165's password:

Last login: fri mar 26 14:48:08 2010 from euos

two。 Connected to the remote host:

Remotehost$

3. To temporarily return to the local host, enter the exit symbol: combination of "~" and "control-z".

When typing "~" will not be immediately seen on the screen, when pressed and press enter to display together.

Enter "~" on the remote host as follows

Remotehost$ ~ ^ z [suspend ssh]

[1] + stopped ssh 172.16.1.165

Localhost$

4. Now that you have returned to the local host, the ssh remote client session runs in the unix background and can be viewed as follows:

Localhost$ jobs

[1] + stopped ssh 172.16.1.165

5. You can switch the ssh session process running in the background to the foreground and return to the remote host without entering a password

Localhost$ fg 1

Ssh 172.16.1.165

Remotehost$

The above is about the content of this article on "how to use SSH exit symbol to switch SSH session under Linux". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report