Module 12 Live Virtual Machine Labs 1-4 Flashcards

1
Q

lab 12-1

Which file is used for defining the hostname?

/etc/hosts
/etc/netwrok
/etc/hostname
/etc/names

A

/etc/hostname

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

Which command is used to view the full hostname?

hostname -d
hostname -f
hostname
hostname -n

A

hostname -f

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

Which command is used to display the hostname and its related information?

sysconfig
show-name
hostname
hostnamectl

A

hostnamectl

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

Which command displays the short name of a system?

hostname -d
hostname -s
hostname -n
hostname -f

A

hostname -s

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

Which of the following is the correct command to display the hostname?

nmcli general name
nmcli hostname
nmcli general host
nmcli general hostname

A

nmcli general hostname

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

lab 12-2

Which command should you use to query databases for information on various components including password, group, hosts, services, and protocols

where
find
which
getent

A

getent

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

In a Linux system, which two files are used for name resolution? [Choose two.]

/etc/network
/etc/dns
/etc/resolv.conf
/etc/hosts

A

/etc/hosts
/etc/resolv.conf

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

Which file defines the order, files, dns, myhostname?

/etc/nsswitch.conf
/etc/dns
/etc/resolv.conf
/etc/network
/etc/hosts

A

/etc/nsswitch.conf

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

Which file defines the order in which the name resolution is to be performed?

/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts
/etc/dns
/etc/network

A

/etc/nsswitch.conf

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

Which command provides more information than the host command and provides information on the nameservers?

netstat
nslookup
dig
host

A

dig

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

lab 12-3

Which protocol is the underlying protocol for OpenSSH?

RDP
TLS
SSH
SSL

A

SSH

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

What is the service name for SSH?

ssh.confg
ssh
sshd.service
ssh.service

A

sshd.service

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

When creating a rule in Iptables, which parameter allows to define a specific port?

–dport
–pport
–serviceport
–port

A

-dport

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

lab 12-4

Which two remote connectivity programs are replaced by SSH? [Choose two.]

RDP
telnet
rlogin
http

A

telnet
rlogin

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

The _________ file contains the configuration settings for the OpenSSH Server

/etc/ssh/config
/etc/ssh/sshdconfig
/etc/ssh/sshd
/etc/ssh/sshd_config

A

/etc/ssh/sshd_config

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

If you need to enable the OpenSSH server to listen on a specific interface, which parameter should you edit in the /etc/ssh//sshd_config file?

Ipaddress
ListenAddress
Listinterface
Interface

A

ListenAddress

15
Q

You can use the ssh-keygen to generate the keys, which are then stored in ________.

~/.ssd
Ssh
Sshd_config
sshconfig

A

~/.ssd

16
Q

Which of the following is the private key?

Id.key
id_dsa.pub
id_dsa
id_dsa.sec

A

id_dsa

17
Q

If you use RSA instead of DSA, what will be the filename?

Id.key
id_rsa
id_dsa.pub
id_dsa
id_dsa.sec

A

id_rsa

18
Q

You execute the following command:
cat ../id_dsa.pub&raquo_space; authorized_keys
What will be the output?

The contents of the public ID will be added to authorized_keys.

A new file named authorized_keys will be created.

The authorized_keys file will contain the name of the public ID.

A duplicate file of id_dsa.pub will be created.

A

The contents of the public ID will be added to authorized_keys.