Access Systems and Get Support Flashcards

1
Q

Which command is used to start the advanced text editor in enchanced mode?

A

vim filename

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

Which file is used to adjust configuration options for vim?

A

~/.vimrc

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

Which command is used to create a key pair?

A

ssh-keygen

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

Where does ssh-keygen command save public and private keys by default?

A

private: ~/.ssh/id_rsa
public:~/.ssh/id_rsa.pub

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

What is used to locally cache a passphrase on first use in a login session?

A

ssh-agent

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

How to specify the files to save the key in?

A

ssh-keygen -f .ssh/key-with-pass

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

Default octal permissions for private key

A

600

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

Default octal permissions for public key

A

644

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

How to copy the public key of the SSH key pair to the remote system?

A

ssh-copy-id -i .ssh/key-with-pass.pub user@remotehost

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

How to test remote access with the corresponding private key?

A

ssh -i .ssh/key-with-pass user@remotehost

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

What key manager is used to cache passphrases?

A

ssh-agent

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

What command manually starts the ssh-agent program?

A

eval $(ssh-agent)

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

How to manually load a private key passphrase to the key manager?

A

ssh-add or ssh-add/key-with-pass

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

What command prevents ssh from prompting for passphrase?

A

ssh -i .ssh/key-with-pass user@remotehost

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

What command option adds verbosity to ssh?

A

ssh -v user@remotehost

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

What file can be created to preconfigure SSH connections?

A

~/.ssh/config

17
Q

What command installs the sos report utility with the sos package?

A

dnf install sos

18
Q

After becoming root what command generates the reports?

A

sos report

19
Q

What command obfuscates personal information for the report?

A

sos clean

20
Q

What command sends an sos report to Red Hat Technical Support?

A

sos report –upload

21
Q

What command can start the cockpit.socket service for downloading a diagnostic report?

A

systemctl start cockpit.socket

22
Q

What is Red Hat Insights?

A

An SaaS predictive analytics tool

23
Q

What is the URL for insights?

A

console.redhat.com/insights

24
Q

What command is used to refresh the client’s metadata?

A

insights-client

25
Q

What command is used to register a system with the Red Hat Subscription Management service?

A

subscription-manager register –auto-attach

26
Q

What command installs insights-client package on a system?

A

dnf install insights-client

27
Q

What command registers the system with the Insights service and uploads initial metadata?

A

insights-client –register

28
Q

What command is used to set the time zone on a server?

A

timedatectl set-timezone <time/zone>