Skip to content

  • Home

Connect to a host via SSH without entering the password

May 27, 2025
 |  No Comments

generate a new ssh key if you don’t have one

ssh-keygen -t ed25519

copy the content displayed with

cat ~/.ssh/id_ed25519.pub

enter the host via SSH

In the root there should be a hidden folder called .ssh, if it doesn’t exist create it

mkdir -p ~/.ssh

copy the generated ssh-key into

~/.ssh/authorized_keys

Done, then you can connect to the host without entering a password

Post Views: 1,127
Tags: authorized_key, host, key, login, password, ssh

Post navigation

← communicate 2 PCs via public IP with TCP or UDP
host on LAN access through the Internet →

Categories

Theme By SKT Minimal