Skip to main content

OpenSSH Server

Install OpenSSH Server

sudo apt install openssh-server

Configure the SSH server

sudo nano /etc/ssh/sshd_config

Check for and adjust existing occurrences of these configuration directives, or add new ones, as required:

PermitRootLogin no
PasswordAuthentication no

check the configuration after changing it and before restarting the server:

sudo sshd -t -f /etc/ssh/sshd_config

Restart the ssh service to pick up configuration changes:

sudo systemctl try-reload-or-restart ssh

import ssh key from github

ssh-import-id-gh <github-username>

In your host pc generate ssh key pair

ssh-keygen -t ed25519

can also add comment to the key

ssh-keygen -t ed25519 -C "renesas-ssh-key"

Connect to the server using ssh

ssh <username>@<server-ip>

Note: Check the server ip address using ip a

ip a