Chapter 10 SSH Flashcards

(14 cards)

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does SSH stand for?

A

Secure Shell

SSH allows you to log into a remote system securely.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What service must be running on the remote system for SSH to work?

A

sshd

You issue a command from your workstation to connect to the remote system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To connect to a remote system called serverb, what command would you use?

A

$ssh serverb

You will be asked for the password of the account.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you log out of a remote system using SSH?

A

Type ‘exit’

This command ends the SSH session.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command can you run on serverb without logging in?

A

$ssh serverb who

This command retrieves information about users currently logged in.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or false: SSH is a secure tunnel between client and server.

A

TRUE

The communication is encrypted using keys.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What command is used to generate SSH keys?

A

$ssh-keygen

This command creates a private and public key pair.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where is the private key created?

A

~/.ssh/id_rsa

The private key must have permission of 600.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where is the public key created?

A

~/.ssh/id_rsa.pub

The public key must have permission of 644.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command do you use to copy the public key to the server?

A

$ssh-copy-id studentb@serverb

This command allows for key-based authentication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the configuration file for OpenSSH?

A

/etc/ssh/sshd_config

This file contains settings for the SSH daemon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you prohibit root from SSH logins?

A

Change ‘PermitRootLogin yes’ to ‘PermitRootLogin no’

This is a major security concern.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What must you change to prohibit passwords from SSH logins?

A

Change ‘PasswordAuthentication yes’ to ‘PasswordAuthentication no’

This forces public key authentication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly