Working with the SSH Utilities on SUSE Linux Enterprise

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you’ll establish a secure shell connection between two remote systems: the main lab system and a second server. You’ll learn how to run commands on those remote systems, how to “drop ship” a command from one system to another and harvest the output locally, and how to copy via the `scp` and `sftp` commands.

Additionally, we’ll show how to ensure you can send and receive files and directories into the proper locations, either putting files from system1 to system2 or pulling files from system1 from system2.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Establish a Secure Shell Connection Between Two SUSE Linux Enterprise Servers
  1. Use the ssh command and lab-specific system information to establish an SSH client session between your main lab system and a second lab system.
  2. Run commands on the remote system just as if you were on the console.
  3. Disconnect and run ssh commands in "hands-off" mode on the second system without actually creating a shell session, just dropping the command off and getting output on your first system.

SSH from Server1 to Server2

ssh cloud_user@10.0.1.20

Send and Receive Files and Directories Between Two SUSE Linux Enterprise Servers via `scp` and `sftp`
  1. Use the scp command to send and receive files between two servers, either pushing from the main system to the secondary, or being signed on the secondary and pulling the files to that system.
  2. Use the sftp command to establish a secure FTP session between the two systems and both send and receive files and directories between the systems, along with some interesting options.
Automate the Keyscanning of Other Hosts, Reporting Any Mismatches
  1. View your system’s known_hosts initial state, then keyscan another system, and redirect that information to a master file for future reference.
  2. Connect to the remote system via SSH and view the changes that occur in your known_hosts file locally.
  3. Build an automated keyscanning setup that will scan a list of hosts for the proper key information, sort and make unique that info, and compare it against the known good master list, reporting any mismatches.

Additional Resources

Being able to work with the SSH utilities between your system and another or even between two systems remotely is an important skill for a system operator to possess. Much, if not all, of the sysadmin tasks these days are on remote systems, even if the remote part of it means it's a local server you connect to via SSH or, most often now, a remote system that is in the public or private cloud.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?