Access Systems and Get Support Flashcards
Which command is used to start the advanced text editor in enchanced mode?
vim filename
Which file is used to adjust configuration options for vim?
~/.vimrc
Which command is used to create a key pair?
ssh-keygen
Where does ssh-keygen command save public and private keys by default?
private: ~/.ssh/id_rsa
public:~/.ssh/id_rsa.pub
What is used to locally cache a passphrase on first use in a login session?
ssh-agent
How to specify the files to save the key in?
ssh-keygen -f .ssh/key-with-pass
Default octal permissions for private key
600
Default octal permissions for public key
644
How to copy the public key of the SSH key pair to the remote system?
ssh-copy-id -i .ssh/key-with-pass.pub user@remotehost
How to test remote access with the corresponding private key?
ssh -i .ssh/key-with-pass user@remotehost
What key manager is used to cache passphrases?
ssh-agent
What command manually starts the ssh-agent program?
eval $(ssh-agent)
How to manually load a private key passphrase to the key manager?
ssh-add or ssh-add/key-with-pass
What command prevents ssh from prompting for passphrase?
ssh -i .ssh/key-with-pass user@remotehost
What command option adds verbosity to ssh?
ssh -v user@remotehost
What file can be created to preconfigure SSH connections?
~/.ssh/config
What command installs the sos report utility with the sos package?
dnf install sos
After becoming root what command generates the reports?
sos report
What command obfuscates personal information for the report?
sos clean
What command sends an sos report to Red Hat Technical Support?
sos report –upload
What command can start the cockpit.socket service for downloading a diagnostic report?
systemctl start cockpit.socket
What is Red Hat Insights?
An SaaS predictive analytics tool
What is the URL for insights?
console.redhat.com/insights
What command is used to refresh the client’s metadata?
insights-client
What command is used to register a system with the Red Hat Subscription Management service?
subscription-manager register –auto-attach
What command installs insights-client package on a system?
dnf install insights-client
What command registers the system with the Insights service and uploads initial metadata?
insights-client –register
What command is used to set the time zone on a server?
timedatectl set-timezone <time/zone>