cli

Login to your server as root. As the root user, edit the sshd_config file found in /etc/ssh/sshd_config: vi /etc/ssh/sshd_config Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there. PermitRootLogin yes Save and exit the file. Restart the SSH server: systemctl restart sshd or service sshd restart  ...

Read More
cli

$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/Users/soumitrakayal/.ssh/id_rsa): /Users/soumitrakayal/.ssh/id_rsa already exists. Overwrite (y/n)? Y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/soumitrakayal/.ssh/id_rsa. Your public key has been saved in /Users/soumitrakayal/.ssh/id_rsa.pub. The key fingerprint is: SHA256:vjEspXxl177C1ksL2Q3iKmnKl6/WtAJnYkEuxSsddtA soumitrakayal@CodeDevX.int.hslc.org The key's randomart image is: +---[RSA 2048]----+ | ..o | | * E | | * + | | o = . | | o .S o...

Read More