What does SSH stand for?
Secure Shell
SSH allows you to log into a remote system securely.
What service must be running on the remote system for SSH to work?
sshd
You issue a command from your workstation to connect to the remote system.
To connect to a remote system called serverb, what command would you use?
$ssh serverb
You will be asked for the password of the account.
How do you log out of a remote system using SSH?
Type ‘exit’
This command ends the SSH session.
What command can you run on serverb without logging in?
$ssh serverb who
This command retrieves information about users currently logged in.
True or false: SSH is a secure tunnel between client and server.
TRUE
The communication is encrypted using keys.
What command is used to generate SSH keys?
$ssh-keygen
This command creates a private and public key pair.
Where is the private key created?
~/.ssh/id_rsa
The private key must have permission of 600.
Where is the public key created?
~/.ssh/id_rsa.pub
The public key must have permission of 644.
What command do you use to copy the public key to the server?
$ssh-copy-id studentb@serverb
This command allows for key-based authentication.
What is the configuration file for OpenSSH?
/etc/ssh/sshd_config
This file contains settings for the SSH daemon.
How do you prohibit root from SSH logins?
Change ‘PermitRootLogin yes’ to ‘PermitRootLogin no’
This is a major security concern.
What must you change to prohibit passwords from SSH logins?
Change ‘PasswordAuthentication yes’ to ‘PasswordAuthentication no’
This forces public key authentication.