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