About the solution to the connection timed out of the scp file on the Mac that needs to go through the springboard to the remote Centos server

demand:

There is a requirement in the project, and the local jar package and Dockfile need to be sent to the remote Centos server to build the image

problem:

I found the scp command directly on the Internet that can be sent remotely, and then it has always been lose connection. At that time, I was looking for tutorials on the Internet to see where the problem appeared. After searching for a long time, I didn’t find the reason. I suddenly thought that the company’s server was required After a layer of springboard or fortress machine to ensure the safety of the internal network, this problem will arise.

solution:

You can scp to the springboard first, and then scp to the target server.

There will be a problem here, I scp to the root directory of the springboard machine, and then scp to the specified folder of the target server, here it will show that my permissions are not enough to allow operation. Permission denied

The solution to this is:
you can first send the file to the /tmp folder, and then move mv to the folder you specify.

Guess you like

Origin blog.csdn.net/xiaole060901/article/details/112780126