课程: Linux System Engineer: Networking and SSH

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Copy files across the network over SSH

Copy files across the network over SSH

- [Narrator] One of the coolest features of SSH is the ability to execute commands remotely. This works best with SSH keys, as we won't have to enter a password. Also, using the per user configuration files that we covered earlier in this course will keep us from having to type in too many configuration options on the command line. For this exercise, you will need both VMs running and the IP address for rhhost2 VM. We will be typing these commands into a terminal on rhhost1. Executing a remote command is super simple with SSH. Here's the basic syntax. In a terminal type in ssh, space, user1 @, the IP address of the rhhost2 VM. In my case, it's 192.168.0.21. You'll want to substitute your IP address here. Space, "who" and hit enter. If we still have our keys setup from chapter eight, this will execute the who command on rhhost2 and the results will be printed in the terminal on rhhost1. The interesting thing is that the standard out of the who command gets redirected back through the…

内容