In the past two days, files need to be uploaded to two Linux instances, and SCP is used.
I found that I had to open the shell all the time, or I stopped it.
Uploading a large file is exhausted and the network cannot be disconnected.
So I found the method to switch the program running on the front-end to the back-end.
First
Http://www.cnblogs.com/xd502djj/archive/2009/06/25/1510966.html
You need to use SSH-keygen to create a trust certificate between two machines
Oh, it's too troublesome to discard it.
I found a method.
Http://trace.javaeye.com/blog/255726
Stop the process first and then use BG to transfer the process to the background
It seems like this is simple ~~~
Of course, you can also use the screen command to avoid program shutdown due to SSH shutdown.
But try again? I found myself a dumb. In fact, I only need to press Ctrl + Z and then BG and press Enter. = _ = |
Record this article for later users to check. Don't worry about the problem of a shortcut key just like me.