From the course: Linux System Engineer: Networking and SSH
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Copy files across the network over SSH
From the course: Linux System Engineer: Networking and 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.