Rhcsa Openssh
Rhcsa Openssh
*To verify the fingerprint of the server's SSH host key, you can use the command
: ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub.
Configure key-based authentication for SSH and securely access rem ote systems
without entering a password each time
1.ssh-keygen
2.Run the following command to copy your public key to the remote system:
========================================
Creating ~/.ssh/config file:
With ~/.ssh/config, you don't need to manually specify command parameters each time
you connect to a host.
Configuring multiple hosts:
The configuration file can set up connections for multiple hosts with different
settings.
Direct login as root presents security risks due to the root user's unrestricted
privileges.
Use PermitRootLogin in /etc/ssh/sshd_config to disallow root login (PermitRootLogin
no), or permit private key-based authentication (PermitRootLogin without-password).
Prohibit Password-based Authentication for SSH: